| View previous topic :: View next topic |
| Author |
Message |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Mon Oct 22, 2007 4:25 am Post subject: |
|
|
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 |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Mon Oct 22, 2007 6:04 am Post subject: |
|
|
| 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 |
|
 |
Hackerdevelopment Advanced Cheater
Reputation: 0
Joined: 11 Oct 2007 Posts: 55
|
Posted: Mon Oct 22, 2007 1:08 pm Post subject: |
|
|
| Thanks evry1 for ur help!
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Mon Oct 22, 2007 2:11 pm Post subject: |
|
|
| 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
|
|
| Back to top |
|
 |
|