| View previous topic :: View next topic |
| Author |
Message |
deleted19776 I post too much
Reputation: 11
Joined: 29 Apr 2007 Posts: 3838
|
Posted: Fri Oct 03, 2008 2:41 pm Post subject: |
|
|
| scuba111223 wrote: | im pretty sure they go right above return 0;
//terminate the program:
cin.sync();
cin.ignore();
return 0;
}
i think its suppose to look like that |
Yes, that is where you put it, think!
Also, do not forget the semicolons at the end of lines.
|
|
| Back to top |
|
 |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Fri Oct 03, 2008 2:49 pm Post subject: |
|
|
| HawwwaH wrote: |
I win now?
My view is that right now, people don't need to be the few milliseconds faster or the few bytes smaller. Yes, size does matter but, only big differences. (Like compiling in Release and not Debug...) |
Ya. Use this and kill you cpu.
_________________
|
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Fri Oct 03, 2008 3:26 pm Post subject: |
|
|
| What is this? A contest to show how unefficiently you can code?
|
|
| Back to top |
|
 |
Heartless I post too much
Reputation: 0
Joined: 03 Dec 2006 Posts: 2436
|
Posted: Fri Oct 03, 2008 3:37 pm Post subject: |
|
|
I can't believe as simple as this is still being argued over.
_________________
What dosen't kill you, usually does the second time. |
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Fri Oct 03, 2008 4:36 pm Post subject: |
|
|
| HornyAZNBoy wrote: | | I can't believe as simple as this is still being argued over. |
ahahhaha i know.
|
|
| Back to top |
|
 |
Wintermoot Expert Cheater
Reputation: 0
Joined: 08 Nov 2007 Posts: 198
|
Posted: Sat Oct 04, 2008 7:30 am Post subject: |
|
|
| I was just bored and decided to do it in less characters than anyone else. Jumping on programming bandwagons is fun!
|
|
| Back to top |
|
 |
1033430 Expert Cheater
Reputation: 0
Joined: 19 Mar 2007 Posts: 159 Location: Learning C++
|
Posted: Thu Oct 09, 2008 6:28 pm Post subject: |
|
|
| Code: | #include <iostream>
using namespace std;
int main ()
{
// declaring variables:
int a, b;
int result;
// process:
a = 5;
b = 2;
a = a + 1;
result = a - b;
// print out the result:
cout << result;
// keep program open:
cin.sync();
cin.ignore();
} |
I just do it like that. I just started coding also and i haven't even used and its worked out pretty well for me. But I just started xD
_________________
"Lifes a Bitch, because if it were a Slut, it would be to easy"
-Unknown |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Oct 09, 2008 6:33 pm Post subject: |
|
|
| 1033430 wrote: | | Code: | #include <iostream>
using namespace std;
int main ()
{
// declaring variables:
int a, b;
int result;
// process:
a = 5;
b = 2;
a = a + 1;
result = a - b;
// print out the result:
cout << result;
// keep program open:
cin.sync();
cin.ignore();
} |
I just do it like that. I just started coding also and i haven't even used and its worked out pretty well for me. But I just started xD |
INT main, use that return.
|
|
| Back to top |
|
 |
|