Friends, we have a excelent source of information for C plus plus in this site....check it out, and learn a lot!!
weblogs.asp.net/kennykerr.....
or bye default: www.kennykerr.ca
This gay is deep into program developing and news for it!!!
lunes, 25 de octubre de 2010
miércoles, 13 de octubre de 2010
SAMPLE PROGRAM!!!!
It doesn't matter if tin the sample program we discuss today you use; DO-WHILE loop or a simple While LOOP
It looks like this:
current balance is a double.
current_balance=50;
while( balance<=100)
{ interest= current_balance * 0.02;
current_balance= interest + current_balance;
balance= current_balance;
}
This is simple example of the main body of the program which executes....The operation...rememember to put a counter variable at the end of the while loop to know hom many month is going to pass aster you reach top....($100)....
Enjoy....I did it before teacher run the progrmas......
It looks like this:
current balance is a double.
current_balance=50;
while( balance<=100)
{ interest= current_balance * 0.02;
current_balance= interest + current_balance;
balance= current_balance;
}
This is simple example of the main body of the program which executes....The operation...rememember to put a counter variable at the end of the while loop to know hom many month is going to pass aster you reach top....($100)....
Enjoy....I did it before teacher run the progrmas......
lunes, 4 de octubre de 2010
Program Layout!!!
When you are working with Programs Layout and in some way; SYNTAXIS you have to be carefull.
We got some tips:
MAKE A DESKTOP FLOWCHART OF WHAT YOU WANT YOUR PROGRAM TO DO.
After FlowChart!!!!
1.For begginers it may be useful have a program open. Bye this, it helps you not to forget the basic comands lines that makes program works, like, includes and "using namspace".
2. Take care of the uses of variables, that in all the program should have exactly the same spelling all over main body of program in which you are using it.
3. Take care of manage types for operation.....( you can't divide by zero in an int {integer} operation)
I hope this helps for begin, later on I will continue giving you tips!!!!
Be good, be youu...Oz
We got some tips:
MAKE A DESKTOP FLOWCHART OF WHAT YOU WANT YOUR PROGRAM TO DO.
After FlowChart!!!!
1.For begginers it may be useful have a program open. Bye this, it helps you not to forget the basic comands lines that makes program works, like, includes and "using namspace".
2. Take care of the uses of variables, that in all the program should have exactly the same spelling all over main body of program in which you are using it.
3. Take care of manage types for operation.....( you can't divide by zero in an int {integer} operation)
I hope this helps for begin, later on I will continue giving you tips!!!!
Be good, be youu...Oz
Suscribirse a:
Entradas (Atom)