There are two ways to write code. One is think of something you want to create and after try to figure out how to do it. That does a great job of exercising your creativity. The second way is to start coding and see where it leads. This can make interesting...
The first concept that I will introduce is the variable. Variable serve as a huge and important part in programs. A variable can be a string (words,letters,and even paragraphs) or a number. You have to declare a variable before you use it. In other words,...
The next concept I will write about is the function. Functions are also highly important for effective programs. You only have to write what the function does once. After you tell the computer what the function does all you have to do is call the function....
All the programming that I do involves making outputs in the console. What appears in the console is the purpose of all the coding you write. Simply, write the coding and click “run”. You will see the output in the console. Many times you will make a...
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...
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...
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...
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...
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...
// // main.cpp // Run Your Business // // Created by Kelly Click on 11/10/14. // Copyright (c) 2014 Kelly Click. All rights reserved. // #include
// // main.cpp // Run Your Business / // Created by Arisis on 11/10/14. // Copyright (c) 2014 Kelly Click. All rights reserved. // #include
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....
My blog will be changed to www.learntocodefromkc.com
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!56...