| View previous topic :: View next topic |
| Author |
Message |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Mon Aug 11, 2008 7:19 am Post subject: |
|
|
Because it's C++ not C. And fullyawesome stop saying that people should learn vb.net in every thread like this. It's exactly the opposite.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Mon Aug 11, 2008 7:40 am Post subject: |
|
|
| Jani, screw you XD. That's what i get for typing it in the reply box.
|
|
| Back to top |
|
 |
dEEznutz Grandmaster Cheater
Reputation: 0
Joined: 29 Nov 2007 Posts: 514
|
|
| Back to top |
|
 |
Zand Master Cheater
Reputation: 0
Joined: 21 Jul 2006 Posts: 424
|
Posted: Mon Aug 11, 2008 10:09 am Post subject: |
|
|
| Screw your compiler.
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Mon Aug 11, 2008 10:21 am Post subject: |
|
|
Wtf?
What Compiler/IDE are you using?
What Project type did you choose?
_________________
|
|
| Back to top |
|
 |
dEEznutz Grandmaster Cheater
Reputation: 0
Joined: 29 Nov 2007 Posts: 514
|
Posted: Mon Aug 11, 2008 10:23 am Post subject: |
|
|
| lurc wrote: | Wtf?
What Compiler/IDE are you using?
What Project type did you choose? |
I'm using Microsoft Visual 2008 Express edition, and the project type I picked Win32 project.
_________________
Learning C++ |
|
| Back to top |
|
 |
Zand Master Cheater
Reputation: 0
Joined: 21 Jul 2006 Posts: 424
|
Posted: Mon Aug 11, 2008 10:42 am Post subject: |
|
|
Win32 project what??
Check empty project also.
Make sure you're using C++ build environment.
|
|
| Back to top |
|
 |
dEEznutz Grandmaster Cheater
Reputation: 0
Joined: 29 Nov 2007 Posts: 514
|
|
| Back to top |
|
 |
Zand Master Cheater
Reputation: 0
Joined: 21 Jul 2006 Posts: 424
|
Posted: Mon Aug 11, 2008 11:04 am Post subject: |
|
|
Yes.
Put
| Code: |
std::cin.sync();
std::cin.ignore();
|
before return 0;
|
|
| Back to top |
|
 |
dEEznutz Grandmaster Cheater
Reputation: 0
Joined: 29 Nov 2007 Posts: 514
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Mon Aug 11, 2008 11:11 am Post subject: |
|
|
They just stop the command line and wait for user-input.
sync - Synchronize input buffer with source of characters
ignore - Extract and discard characters
(Taken from cplusplus)
_________________
Last edited by lurc on Mon Aug 11, 2008 11:12 am; edited 1 time in total |
|
| Back to top |
|
 |
dEEznutz Grandmaster Cheater
Reputation: 0
Joined: 29 Nov 2007 Posts: 514
|
|
| Back to top |
|
 |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Mon Aug 11, 2008 12:55 pm Post subject: |
|
|
| dEEznutz wrote: |
double edit: Hmm, I think it's working now because when I clicked start debugging it opened up a CMD and I got no errors. However, the cmd closed to fast for me to see anything. Is this what supposed to happen? |
Or you can just use
Sleep ();
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon Aug 11, 2008 1:50 pm Post subject: |
|
|
| kitterz wrote: | | dEEznutz wrote: |
double edit: Hmm, I think it's working now because when I clicked start debugging it opened up a CMD and I got no errors. However, the cmd closed to fast for me to see anything. Is this what supposed to happen? |
Or you can just use
Sleep (); |
Er no, don't do this. It's just going to sit there, stalled and unresponsive until it's time is up.
|
|
| Back to top |
|
 |
dEEznutz Grandmaster Cheater
Reputation: 0
Joined: 29 Nov 2007 Posts: 514
|
|
| Back to top |
|
 |
|