PDA

View Full Version : Programming IDE's



Nolicus
March 5th, 2012, 02:54 AM
I program in C++ (for a class that I'm taking) and have attempted to use several IDE's, but none of them work. I downloaded them directly from the software center and I have been getting a problem with them not recognizing certain commands. Codelight would not recognize system ("pause"); and other basic functions. And in eclipse it wont even let me set up the headers without displaying errors. I suspect that I don't have a compiler set up right. Do you have any ideas where to start?

Lokireloaded
March 5th, 2012, 03:08 AM
system(""); is ok, the problem is the pause.
There are several ways of getting around this.

Nolicus
March 5th, 2012, 08:00 AM
I used a cin(cin()); and some other sequences and they all didn't work. I have used this bit of code in Visual Studio and other IDE's in window 7 and know that it is part of the language. Eclipse won't even take my header statements and I promise that they are syntactically correct. I am almost convinced that it is something under the hood that is malfunctioning. would i have to set up new functions within the IDE to over come this?

nothingspecial
March 6th, 2012, 11:38 AM
Thread moved to Programming Talk.

r-senior
March 6th, 2012, 12:18 PM
Have you installed the build-essentials package and tried compiling Hello World in C++ from the command line so that you take the IDE out of the equation?


$ cat hello.cpp
#include <iostream>

int main()
{
std::cout << "Hello" << std::endl;
}
$ g++ -o hello hello.cpp
$ ./hello
Hello

Barrucadu
March 6th, 2012, 12:53 PM
Give an example of something you believe is correct which is failing.

Your "system("pause")" is failing because there is no pause command on Linux. I am not a C++ programmer, but "cin(cin())" looks utterly wrong to me, the only usage I have seen is "cin >> variable".

overcast
March 6th, 2012, 08:55 PM
system ("pause") works on windows and not on linux. I think you need to find something that works on linux. YOu can use getchar() if you want instead of system("pause") or cin.get as explained earlier.

hakermania
March 6th, 2012, 09:50 PM
As for a good IDE for C++, QtCreator rulez