10Zav01
January 24th, 2009, 08:15 PM
Okay, so i have a c++ book.
it talks about compilers. i understand the concept of what a compiler is. and i think Ubuntu comes with them already?
anyhow i wrote this with the text editor and saved it to my Desktop, naming it HELLO.cpp
#include <iostream>
int main ()
{
std::cout << "Hello World!\n";
return 0;
}
my main question is, how do i compile and run it? the book isn't so clear on the instructions.
do i need to download some packages off synaptic?
sorry I am a clueless n00b trying to correct my ignorance towards the programming world.
it talks about compilers. i understand the concept of what a compiler is. and i think Ubuntu comes with them already?
anyhow i wrote this with the text editor and saved it to my Desktop, naming it HELLO.cpp
#include <iostream>
int main ()
{
std::cout << "Hello World!\n";
return 0;
}
my main question is, how do i compile and run it? the book isn't so clear on the instructions.
do i need to download some packages off synaptic?
sorry I am a clueless n00b trying to correct my ignorance towards the programming world.