View previous topic :: View next topic |
Author |
Message |
paupav Master Cheater
Reputation: 13
Joined: 15 Apr 2011 Posts: 314 Location: P. Sherman 42, Wallaby Way, Sydney
|
Posted: Sat Oct 15, 2011 2:54 pm Post subject: c++ version |
|
|
is this:
http://www.learncpp.com/cpp-tutorial/11-structure-of-a-program/
outdated version of c++?
its something like this:
Code: | #include <iostream>
int main()
{
int PaupavIsSmarterThanYouAndYouAreStupid, b, c;
using namespace std;
cout << "Enter number!\n";
cin >> PaupavIsSmarterThanYouAndYouAreStupid;
cout << "Enter number\n";
cin >> b;
c = PaupavIsSmarterThanYouAndYouAreStupid + b;
cout << " I+II= : " << c <<"\n\n";
system("PAUSE");
return 0;
} |
|
|
Back to top |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Sat Oct 15, 2011 3:19 pm Post subject: |
|
|
I don't really know what you're asking, but yes that is a valid program you posted..
This site has more credibility if youre trying to learn: http://www.cplusplus.com/doc/tutorial/ _________________
|
|
Back to top |
|
 |
paupav Master Cheater
Reputation: 13
Joined: 15 Apr 2011 Posts: 314 Location: P. Sherman 42, Wallaby Way, Sydney
|
Posted: Sat Oct 15, 2011 3:24 pm Post subject: |
|
|
ty 4 site... im asking because i was before learning outdated version of iostream...
Code: | #include <iostream.h>
int main()
{
cout << "Im paupav ";
}
system("pause")
return 0; |
|
|
Back to top |
|
 |
|