| | |
Java
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
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.
•
•
Join Date: Mar 2003
Posts: 11
Reputation:
Solved Threads: 0
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
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
Matt :D
•
•
Join Date: Mar 2003
Posts: 11
Reputation:
Solved Threads: 0
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
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
C++ Syntax (Toggle Plain Text)
#include <iostream> using namespace std; int main() { cout << "Hello World From About\n"; return (0); }
Regards,
Matt :D
Matt :D
•
•
Join Date: Feb 2003
Posts: 129
Reputation:
Solved Threads: 1
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!
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!
![]() |
Similar Threads
- FT Junior Java Developer Needed for Major Media firm in NYC (Software Development Job Offers)
- Java/J2EE Senior Software Engineer (Software Development Job Offers)
- Front-end Java Software Engineer for Digital Video/Media Market Leader (Software Development Job Offers)
- Senior Software Engineer (Java) (Web Development Job Offers)
- Java Software Engineer (Software Development Job Offers)
- Java Front-end Developer Engineer for Stealth Media Start-up (Software Development Job Offers)
- Java Developer Required (Software Development Job Offers)
Other Threads in the C++ Forum
- Previous Thread: Duplication
- Next Thread: Games
| Thread Tools | Search this Thread |
api array arrays based beginner binary c++ c/c++ calculator char class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news number output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






