QT aint working.

Hello!

I simply try to program "Hello world" in C++ in Linux, and cant do it. if i put mouseover <iostream> i get an info "no such file or directory", look at the picture below. What could be wrong?

http://www.shrani.si/f/l/Zd/2MmhEqT2/screenshot.png
Are you sure that that is the error and it's not the fact that you put "use" instead of "using"?
Oh thank you that was a mistake, but still... i get the same result. Look at the picture.
I started this project by clicking "file/new file or project/" and chose "c++ source file".

Come-on i would like to learn C++ in Linux and this is frustrating. Maybee QT aint
good debugger at all.

Anyone knows any better debugger for Linux? If any...

http://www.shrani.si/f/2P/zz/1FI96d69/screenshot-1.png
NVM

i use netbeans now and i still cannot start program "hello world".

This is my program that is written below header as you can see in the picture.
1
2
3
4
5
6
7
#include <iostream>
using namespace std;

void f()
{
cout << "Hello world!;"
}


Here is the picture from what i get in console:
http://www.shrani.si/f/a/NI/2EPKqSKK/screenshot.png
Well, you include a library after the main has already ended, furthermore you don't even call the function you define. Try the following:
1
2
3
4
5
6
7
#include <iostream>
using namespace std;

int main()
{
    cout << "Hello world!";
}
Topic archived. No new replies allowed.