first program not working!

ive been reading the tuts on this website and i made my first program but it doesnt work! here iz my program
1
2
3
4
#include <cstdlib>
int main(){
        cout<<"my fost program!"<<endl;
}

it says sumthing about cout not being defined and endl not being defined?
The "cstdlib" header is not what you want. Use "iostream" instead.
Last edited on
still doesnt work :(
You'll need to add "using namespace std;" after the include, though.

EDIT: it's "iostream".
Last edited on
it works! thanks fili!
Topic archived. No new replies allowed.