hello!! i am a new programmer!! i started with turbo c 4.5.
just installed borland Turbo c++. the used same codes as 4.5 but got problem with output screen. i cant see the programs output screen after the program ends!!
can anybody tell me how to active it?
rockbd
0
Light Poster
Recommended Answers
Jump to PostTurbo C++ is really outdated... You could try downloading a newer (free) IDE like Visual Studio Express or Bloodshed .
For your problem:
Put a
std::cin.get();
just before youreturn 0;
…
Jump to PostYou have not included the library that cin comes from (iostream) and you have not told the compiler that when you use the word "cin", you are referring to the function "cin" from iostream.
Try adding these two lines at the top of your program:
#include …
All 7 Replies
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
rockbd
0
Light Poster
VernonDozier
2,218
Posting Expert
Featured Poster
rockbd
0
Light Poster
Duoas
1,025
Postaholic
Featured Poster
SNOWKID
0
Newbie Poster
obj7777
20
Newbie 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.