By continuing your visit to this site, you accept the use of cookies. They ensure the proper functioning of our services and display relevant ads. Learn more about cookies and act

Not yet registered? Create a OverBlog!

Create my blog

Kelly Click

Kelly Click

Blogs

Learn to Code with KC

Learn to Code with KC

teaching c++.
Kelly Click Kelly Click
Articles : 14
Since : 01/10/2014
Category : Tech & Science

Articles to discover

Flashcards

This way you can edit the code to have more flashcards, more than two sides of a card, or only show one side at a time. Be creative! Here is a link to the word document for the code: https://onedrive.live.com/redir?page=view&resid=F98DCACF6B23E894!566&authkey=!AEYWXZkPfDkN1gM

Classes Part One

Classes can be used to organize things such as functions. You can first name the classes you are using. After, list the functions within the class. There are three ways to put things in a class: public, protected, and private. Using the word public allows for more availability. With two classes such as the next example two functions can have the ex

New address

My blog will be changed to www.learntocodefromkc.com

Arrays

Arrays are collections of strings or numbers. There are several ways to use arrays. To use an array of strings use the word char first. Put a * before the name of the array. Put the number of items in the array in brackets after the name. This is a used array in a for loop. #include <iostream> using namespace std; char *words[3] = {"red", "green",

Classes Part Two, Hierarchies

Class hierarchies are important to use and organize a large amount of info. A class can have a subclass or subclasses. In order to make a hierarchy start with making a class as normal. An example would be making a public function under the first class. Make a second class like SecondClass: public FirstClass. Put another function in the next class.A

Run Your Business Version 2

// // main.cpp // Run Your Business / // Created by Arisis on 11/10/14. // Copyright (c) 2014 Kelly Click. All rights reserved. // #include <iostream> using namespace std; string name; int nw; void EnterNameofCompany() { cout << "What is the name of your company?" << endl; cin >> name; cout << "Ok." << name << endl; } void start() { cout << "You wi

Operators

This part is simple. I will be using operators that will probably be used in most of your programs. We have used the = to set values to integers or strings. There are many more: + addition - substraction * multiplication / division != not equal to % remainder >= bigger than or equal to <= smaller than or equal to > bigger than < smaller than % modu

if/else statements

The next topic is writing logical statements using if/ else if/ else. For example, if you want the program to perform a certain task when a certain condition is met and something else when another is met instead you simply use an if statement. These if statements allow for you to put in an input and get the appropriate output. In if statements, whe

Check out my new game!

// // main.cpp // Run Your Business // // Created by Kelly Click on 11/10/14. // Copyright (c) 2014 Kelly Click. All rights reserved. // #include <iostream> using namespace std; string name; int nw; void EnterNameofCompany() { cout << "What is the name of your company?" << endl; cin >> name; cout << "Ok." << name << endl; } void start() { cout << "

Loops

Loops will save a bunch of time. They simply repeat what you ask for it to do. There are many things you can use loops with. For example: variables, functions, and array(which I will be doing next). There are two types of loops that I will do. The two are the for loop and the while loop. To use a for loop you type three things in parentheses which