| | |
readout
Please support our C++ advertiser: Intel Parallel Studio Home
| View Poll Results: Is this a common problem | |||
| Yes | | 2 | 100.00% |
| No | | 0 | 0% |
| It's you | | 1 | 50.00% |
| noob | | 0 | 0% |
| Multiple Choice Poll. Voters: 2. You may not vote on this poll | |||
Thread Solved |
Hello people
I have jusrt recently started to study C/C++ and I am using Borland 5.02. I am having a problem examining my outputs. when I run a successfully compiled program the Dos window that I should read my print from flashes on then flashes off
and I do not get the time to examine the results. Can any body tell me how to adjust the settings in order to read it.
Thanks
Fazzer2
I have jusrt recently started to study C/C++ and I am using Borland 5.02. I am having a problem examining my outputs. when I run a successfully compiled program the Dos window that I should read my print from flashes on then flashes off
and I do not get the time to examine the results. Can any body tell me how to adjust the settings in order to read it.Thanks
Fazzer2
1
#2 Oct 8th, 2009
Put a
std::cin.get() (C++) or : getchar() (C) right before the return 0; in main(). C++ Syntax (Toggle Plain Text)
int main(){ // do stuff std::cin.get(); return 0; }
0
#3 Oct 9th, 2009
•
•
•
•
Put astd::cin.get()(C++) or :getchar()(C) right before thereturn 0;in main().
C++ Syntax (Toggle Plain Text)
int main(){ // do stuff std::cin.get(); return 0; }
Is it all there? Is it relavent to the post about my DOS window not staying open to examine results
cheers
Fazzer2
-1
#4 Oct 9th, 2009
•
•
•
•
Put astd::cin.get()(C++) or :getchar()(C) right before thereturn 0;in main().
C++ Syntax (Toggle Plain Text)
int main(){ // do stuff std::cin.get(); return 0; }
int ch;
ch = getc(stdin)
the window stays open
![]() |
Similar Threads
- Gateway Notebook Won't Boot, Fan Kicks On (Troubleshooting Dead Machines)
- What is a good fan controller and temp guide? (Cases, Fans and Power Supplies)
- GFX Card Help (Long post so be patient) (Monitors, Displays and Video Cards)
- Ram not Found (Motherboards, CPUs and RAM)
- Make your own javascript maze. (JavaScript / DHTML / AJAX)
- Someone please save me from About:Blank (Viruses, Spyware and other Nasties)
- Dns error (Viruses, Spyware and other Nasties)
- Windows 2003 MPEG Playback Problem (Hardware Acceleration) (Windows NT / 2000 / XP)
- Asus P4 P800 Overclocking.??? (Motherboards, CPUs and RAM)
- AGOBOT Worm (Viruses, Spyware and other Nasties)
Other Threads in the C++ Forum
- Previous Thread: Help With Pascal's Triangle in C++
- Next Thread: Live/Online Help
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion count data database delete desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game getline google graph homeworkhelp homeworkhelper iamthwee ifstream input int integer lib linkedlist linux list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text tree unix url vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






