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 


Need help!
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Mon Oct 22, 2007 4:25 am    Post subject: Reply with quote

my bad, i refer to directx headers a libs sometimes, my mistake...

and if you take the approach you are taking right now, by adding more headers then when you get into problems in big projects (where they always occur) and the headers your using can do the job but another header can do it easier, then your gonna have like 10 headers when you could've used around 2.

its in my opinion that in teaching someone the language you should use as little headers and code as possible to get effecient programs. I also think you should teach them good habits, such as using a pure conio.h or a pure iostream program.

_________________
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Mon Oct 22, 2007 6:04 am    Post subject: Reply with quote

blankrider wrote:
don't use __getch()
why?
you have to include more headers = more program size
why use 1 thing when another works just as well being more effecient
The real reason: it isn't portable! -> not all compilers support it.

blankrider wrote:
cin.ignore();
Remember to sync the stream too (if you're going to continue executing your program...).
Code:
std::cin.ignore();
std::cin.sync();
Back to top
View user's profile Send private message
Hackerdevelopment
Advanced Cheater
Reputation: 0

Joined: 11 Oct 2007
Posts: 55

PostPosted: Mon Oct 22, 2007 1:08 pm    Post subject: Reply with quote

Thanks evry1 for ur help!
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon Oct 22, 2007 2:11 pm    Post subject: Reply with quote

blankrider wrote:
my bad, i refer to directx headers a libs sometimes, my mistake...


Heh, np, I wasn't trying to attack you, but when you said that I was like wtf?

Hackerdevelopment wrote:
Thanks evry1 for ur help!


Glad we could help Smile
Back to top
View user's profile Send private message Visit poster's website
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
Page 2 of 2

 
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