Java

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2002
Posts: 1,135
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Solved Threads: 5
Team Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor
 
0
  #11
Mar 14th, 2003
What do you mean by the latest version? The beta version? 5? I'm using 4 and the code I posted with "<iostream.h>" works and has always worked for me.
Check out my blog at http://www.shinylight.com for more stuff about web dev.
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 129
Reputation: Bob is an unknown quantity at this point 
Solved Threads: 1
Team Colleague
Bob Bob is offline Offline
Team Member
 
0
  #12
Mar 14th, 2003
4.9.7.0
Reply With Quote Quick reply to this message  
Join Date: Mar 2003
Posts: 11
Reputation: boohoo is an unknown quantity at this point 
Solved Threads: 0
boohoo boohoo is offline Offline
Newbie Poster
 
0
  #13
Mar 15th, 2003
I'm downloading updates as I type... will post with result after!
Regards,
Matt :D
Reply With Quote Quick reply to this message  
Join Date: Mar 2003
Posts: 11
Reputation: boohoo is an unknown quantity at this point 
Solved Threads: 0
boohoo boohoo is offline Offline
Newbie Poster
 
0
  #14
Mar 15th, 2003
Nope :

The top line of

#include <iostream>
using namespace std;
int main()
{
cout << "hello, world" << endl;
cin.get();
}


is made all red and a load of errors appear like :
C:\Dev-Cpp\include\c++\iostream:44
bits/c++config.h: No such file or directory.


According to dev cpp, i'm using version 4.9.7.8 .

Any help will be appreciated, and I know this is a great program and I wanna use it
Regards,
Matt :D
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 129
Reputation: Bob is an unknown quantity at this point 
Solved Threads: 1
Team Colleague
Bob Bob is offline Offline
Team Member
 
0
  #15
Mar 15th, 2003
Have you checked the compiler options that I wrote about?
Reply With Quote Quick reply to this message  
Join Date: Mar 2003
Posts: 11
Reputation: boohoo is an unknown quantity at this point 
Solved Threads: 0
boohoo boohoo is offline Offline
Newbie Poster
 
0
  #16
Mar 15th, 2003
I am missing the last one, I was hoping the update may fix this. Any other ideas? I do have a copy of Metrowerks Codewarrior 5, but it's slightly different.
Regards,
Matt :D
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 129
Reputation: Bob is an unknown quantity at this point 
Solved Threads: 1
Team Colleague
Bob Bob is offline Offline
Team Member
 
0
  #17
Mar 15th, 2003
Just add the last path to your compiler options and it should compile OK. The dev-cpp directory will be the same as for the others.
Reply With Quote Quick reply to this message  
Join Date: Mar 2003
Posts: 11
Reputation: boohoo is an unknown quantity at this point 
Solved Threads: 0
boohoo boohoo is offline Offline
Newbie Poster
 
0
  #18
Mar 18th, 2003
You star It's all working and hoo.exe ran but the window closed before I could see hello world .
Any line of code i should add to get a 'press any button to continue'?

Thank you ever so much, I am really looking forward to programming in C++ now, my first compiled language

  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. cout << "Hello World From About\n";
  6. return (0);
  7. }
Regards,
Matt :D
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 129
Reputation: Bob is an unknown quantity at this point 
Solved Threads: 1
Team Colleague
Bob Bob is offline Offline
Team Member
 
0
  #19
Mar 18th, 2003
The answer is in the previous posts. Dev-c++ will close the console window as soon as the program terminates, so all you have to do is out in a command that stops it from terminating until you're ready. Simplest is just:

cin.get();

This will wait for you to press enter. In some instances you may want to add the following:

cin.ignore(1000,'\n');
cin.get();

Good luck!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC