What next?

Nov 16, 2011 at 11:22pm
Hi guys.I just wanted to know what I should learn next.I can already do cout,cin,basic calculators" really basic",if and if else statement,I can do 2 functions in one program now like void,and the switch statement.any suggestions on what to do next would be nice.soon I'll post my most advanced program - thanks,moot
Nov 16, 2011 at 11:26pm
here is my most advanced program

#include <iostream>

using namespace std;

void goodbye();



void title(){
cout << " IM A QUIZ CALCULATOR!!!" << endl << endl;

}

int main(){

title();

int number1;
int number2;
int number3;
int average;


cout << "enter three quiz grades that you want to find the average of";
cout << endl;

cin >> number1;
cin >> number2;
cin >> number3;

average = (number1 + number2 + number3) /3;

cout << "here is the average of you first 3 quiz grades: " << average;
cout << endl;

switch(average){
case 100:
cout << "wow!!! you have a 100 average" << endl;
break;
case 65:
cout << "utoh!!you just passed" << endl;
break;
}
if(average > 89){
cout << "you have good grades,keep it up!" << endl;
cout << "set goals and keep on working hard" << endl << endl;
}else{
cout << "your average is below a 90,you need to work harder...";
cout << endl << endl;
cout << "if you want to get into a good college!" << endl;
cout << endl;
}

cout << "have a nice day and stay in school!!" << endl;



system("pause");

return 0;

}
Nov 16, 2011 at 11:28pm
Don't use system.

Learn classes and inheritance.
Get familiar with the STL.
Then get very comfortable with libraries, and the tools you'll need to build anything that comes in more than a single source file.

Nov 16, 2011 at 11:33pm
closed account (1vRz3TCk)
Work you way through the site tutorial: http://www.cplusplus.com/doc/tutorial/

Or buy a book* and work your way through that.

*Something like C++ Primer by by Stanley B. Lippman et al
Nov 16, 2011 at 11:52pm
What is Stl and inheritance
Nov 17, 2011 at 12:02am
What is Stl and inheritance


By asking that question, I think you're answering your original one, the one that prompted this thread in the first place > . <
Topic archived. No new replies allowed.