Whenever I try to run a compiled group of code that should bring up a console, the console just flases onto the screen and is gone...I've copied a few programs from this forum onto it to check and see if its just me but it does it every time.
Kiba Ookami
0
Junior Poster in Training
Recommended Answers
Jump to Postthat is half c, half c++. If you want a code in C++, it would look like this:
#include <iostream> #include <string> using namespace std; int main( void ) { string name; char buff[257]; cout << "Your name: "; cin.getline( buff, 257 ); name = buff; cout …
Jump to Post>I use the Turbo C++ 3.0(dont judge it by graphics) as its easier to use.
Then your outdated suggestions are likely to be useless to the majority of people here. C++ has grown since then, and most modern compilers will simply refuse to compile your code.
Jump to PostDo yourself a favour: don't use
system("pause");
Usecin.get ();
All 10 Replies
ludesign
0
Newbie Poster
Kiba Ookami
0
Junior Poster in Training
ludesign
0
Newbie Poster
Kiba Ookami
0
Junior Poster in Training
ludesign
0
Newbie Poster
brahle
0
Newbie Poster
themaster
-7
Newbie Poster
mvmalderen
commented:
Wow! Such a fast reply, after three years!!! Man you're fast!
-1
Nick Evan
commented:
This thread is almost as old as Turbo...
-4
Narue
5,707
Bad Cop
Team Colleague
Bladtman242
8
Junior Poster
siddhant3s
commented:
This post should have been the immediate answer to post#2
+8
Stefano Mtangoo
455
Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.