| | |
Java
![]() |
•
•
Join Date: Mar 2003
Posts: 11
Reputation:
Solved Threads: 0
Thanx for everyone's reply. I'm more and more being put off Java, although it looks like a good language in practise, the way it looks as a GUI doesn't appeal. Anyone know of a good free C++ IDE ? I have tried Devc++ from bloodshed, but it wont let me compile for some reason.
You may move this thread to C++ if you wish to keep things tidy
Thanks In Advance,
Matt
You may move this thread to C++ if you wish to keep things tidy

Thanks In Advance,
Matt
Regards,
Matt :D
Matt :D
0
#3 Mar 12th, 2003
What error are you getting when you try to compile in Dev-C++? It's always worked fine 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
#4 Mar 13th, 2003
[Warning] In function 'int main()'
'cout' undeclared (first use this function}
And here is the code I am using to build Hi World proggy, testing Dev cpp :
#include <windows.h>
using namespace std;
int main()
{
cout << "Hello World From About\n";
}
I think the header maybe iostream , but when I try this I get about 150 (not kidding) errors, reporting on lines that excede the amount used ( 6 ).
Anyone help ?
'cout' undeclared (first use this function}
And here is the code I am using to build Hi World proggy, testing Dev cpp :
#include <windows.h>
using namespace std;
int main()
{
cout << "Hello World From About\n";
}
I think the header maybe iostream , but when I try this I get about 150 (not kidding) errors, reporting on lines that excede the amount used ( 6 ).
Anyone help ?
Regards,
Matt :D
Matt :D
0
#5 Mar 13th, 2003
When you have int main() it means that the function main() is returning a value of type int (an integer). Right after your cout statement you have to add a return (0); statement.
0
#6 Mar 13th, 2003
And yes, use iostream.h ... Sometimes Windows likes #include<iostream> instead of iostream.h though!
0
#8 Mar 13th, 2003
Really? Hmm... what version of Dev-C++ are you using? The following works for me on Dev-C++ 4.0:
C++ Syntax (Toggle Plain Text)
#include <iostream.h> int main() { cout << "Hello World From About\n"; return 0; }
Check out my blog at http://www.shinylight.com for more stuff about web dev.
•
•
Join Date: Feb 2003
Posts: 129
Reputation:
Solved Threads: 1
0
#9 Mar 14th, 2003
The latest version of dev-cpp doesn't recognise <iostream.h>, you need to use the standard version of the same header - <iostream>. When you do, you need to qualify any entities from namespace std.
Here are two versions that do that, and should compile and run OK. If they don't, post back with your error messages.
or this:
Two things to note:
[1] The return statement is optional in main() (though some older compilers will complain)
[2] I added the cin.get() to stop your console window from disappearing before you've seen the output.
Here are two versions that do that, and should compile and run OK. If they don't, post back with your error messages.
C++ Syntax (Toggle Plain Text)
#include <iostream> using namespace std; int main() { cout << "hello, world" << endl; cin.get(); }
or this:
C++ Syntax (Toggle Plain Text)
#include <iostream> int main() { std::cout << "hello, world" << std::endl; std::cin.get(); }
Two things to note:
[1] The return statement is optional in main() (though some older compilers will complain)
[2] I added the cin.get() to stop your console window from disappearing before you've seen the output.
•
•
Join Date: Feb 2003
Posts: 129
Reputation:
Solved Threads: 1
0
#10 Mar 14th, 2003
One more thing, there was an installation problem with a recent version of dev-cpp - it missed a path from the compiler options (which leads to hundreds of error message when you try to compile pretty much anything at all).
Go to:
Tools ~ Compiler Options ~ Directories ~ C++ Includes and check that it lists the paths for:
..\include
..\include\c++
..\include\c++\mingw32
It's the last one that you may have missing, if so, add it.
And don't be put off, there's really very little wrong with dev-cpp and I'm sure you'll get a lot of pleasure out of using it. Good value for money IMHO.
Go to:
Tools ~ Compiler Options ~ Directories ~ C++ Includes and check that it lists the paths for:
..\include
..\include\c++
..\include\c++\mingw32
It's the last one that you may have missing, if so, add it.
And don't be put off, there's really very little wrong with dev-cpp and I'm sure you'll get a lot of pleasure out of using it. Good value for money IMHO.
![]() |
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 based binary bitmap business c++ c/c++ char class classes code codesamplerunwhilecommands coding commentinghelp compile console conversion count decide delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error faq file forms fstream function functions game givemetehcodez graph guess gui hash homeworkhelp homeworkhelper iamthwee ifpug ifstream incrementoperators infinite input int integer java lib linkedlist linker listing loop looping loops map math matrix memory multiple news node output pointer port problem proficiency program programming project python random read recursion reference rpg string strings temperature template test text text-file tree url variable vector video win32 windows winsock wordfrequency wxwidgets






