Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C++] How to make it freeze on cmd window?
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
deleted19776
I post too much
Reputation: 11

Joined: 29 Apr 2007
Posts: 3838

PostPosted: Fri Oct 03, 2008 2:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Fri Oct 03, 2008 2:49 pm    Post subject: Reply with quote

HawwwaH wrote:
Code:

while(1){}


Code:

for(;;){}


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. Rolling Eyes

_________________
Back to top
View user's profile Send private message Send e-mail
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Fri Oct 03, 2008 3:26 pm    Post subject: Reply with quote

What is this? A contest to show how unefficiently you can code?
Back to top
View user's profile Send private message
Heartless
I post too much
Reputation: 0

Joined: 03 Dec 2006
Posts: 2436

PostPosted: Fri Oct 03, 2008 3:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Fri Oct 03, 2008 4:36 pm    Post subject: Reply with quote

HornyAZNBoy wrote:
I can't believe as simple as this is still being argued over.



ahahhaha i know.
Back to top
View user's profile Send private message
Wintermoot
Expert Cheater
Reputation: 0

Joined: 08 Nov 2007
Posts: 198

PostPosted: Sat Oct 04, 2008 7:30 am    Post subject: Reply with quote

I was just bored and decided to do it in less characters than anyone else. Jumping on programming bandwagons is fun!
Back to top
View user's profile Send private message
1033430
Expert Cheater
Reputation: 0

Joined: 19 Mar 2007
Posts: 159
Location: Learning C++

PostPosted: Thu Oct 09, 2008 6:28 pm    Post subject: Reply with quote

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
Code:
 return 0;
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
View user's profile Send private message AIM Address
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Oct 09, 2008 6:33 pm    Post subject: Reply with quote

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
Code:
 return 0;
and its worked out pretty well for me. But I just started xD


INT main, use that return.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites