PDA

View Full Version : [SOLVED] Trouble with CodeLite...



RudeSoup
January 24th, 2011, 08:17 PM
Hello,
I am an absolute beginner to programming, and I am beginning by learning C++. I installed the Codelite compiler, and to test it, I used some sample code from the book I'm using as an instructor, and entered it into the compiler, as a .cpp file. however, no matter what I place between the quotes in the following code, "Build and run" always produces the same thing, saying hello world.

#include <stdafx.h>
#include <iostream>
using namespace std;

int main() {
cout << "dfhgfsg";
return 0;
}

Anyone have any idea what's going on?

fct
January 25th, 2011, 11:39 AM
Check that you're actually compiling and running that file. Is the open project the right one? Is that file set as the main() in the project?

RudeSoup
January 26th, 2011, 10:51 PM
fct,

Hello, thank you for answering the question, and I attempted to ensure that it was being built and run, but I find myself unable to work with the compiler, being rather inexperienced. I downloaded a different compiler, and it seems to work, so I think I'll have to work with something else. Thank you anyway, however :)