![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jun 2007
Posts: 2
Rep Power: 0
![]() |
C++ in vista issue
I just installed vista yesterday and i use bloodshed compiler. Im doing standard iostream coding right now and the window wont stay open.
For example: A simple hello world program wont stay open and a return value of 0 wont help, i dont know what to do. |
|
|
|
|
|
#2 |
|
Sexy Programmer
|
This has nothing to do with Vista. Include the <cstdlib> header and then append this line to your source.
system("PAUSE");
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#3 | |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
If you're concerned about portability, "system (PAUSE);" isn't. The perception that a window should remain open until it notices that the user has finished reading the screen is incorrect. It is one of the most commonly expressed "problems" on any forum. A previous answer from this forum:
Quote:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vista Sound Driver Issues (Creative Cards) | Ghost | Coder's Corner Lounge | 3 | May 31st, 2007 3:36 PM |
| Vista prices leaked | niteice | Coder's Corner Lounge | 27 | Sep 1st, 2006 3:37 PM |
| Windows vista download!!, im doing it!!! | hervens48 | Coder's Corner Lounge | 80 | Jun 28th, 2006 7:02 PM |
| .NET, Vista and runtime. | Booooze | C# | 4 | Apr 25th, 2006 7:57 PM |
| Windows Vista, well sort of | coldDeath | Coder's Corner Lounge | 21 | Sep 6th, 2005 2:00 PM |