settings/compile question [message #163181] |
Sun, 05 February 2006 10:29 |
Eclipse User |
|
|
|
Originally posted by: huubvanniekerk.gmail.com
Hi,
I'm running the latest Eclipse with CDT on Fedora Core 4. I managed to
create a C++ project, but building/compiling gives problems. I followed
the online help for settings and compiling (which is unfortunately for
Windows) and can't build or run anything so far.
Help and hints are appreciated.
Thanks,
Huub
|
|
|
|
Re: settings/compile question [message #164085 is a reply to message #163273] |
Fri, 17 February 2006 17:26 |
Eclipse User |
|
|
|
Originally posted by: huubvanniekerk.gmail.com
Norbert Ploett wrote:
> Huub,
>
> you should post the output from the build console so we can know more
> details of your problems.
>
> Bye,
>
>
> Norbert Ploett
>
>
OK, this is the simple code:
#include <iostream>
using namespace std;
int x = 0;
int main()
{
cout << " 2 Robot" << endl; // was: 1 Robot
cout << "Geef getal: ";
cin >> x;
if (x < 5)
{
cout << "Kleiner dan 5" << endl;
}
else if (x == 5)
{
cout << "Gelijk aan 5" << endl;
}
else
{
cout << "Groter dan 5" << endl;
}
}
and this is the output I still get:
3
1 Robot
Geef getal: Kleiner dan 5
Oddly, it asks for the input before printing the text on screen.
|
|
|
Powered by
FUDForum. Page generated in 0.03238 seconds