Mekanto
July 17th, 2007, 09:41 PM
Ive only had Ubuntu a couple of days and i want to get into learning C.
The majority of tutorials i found on the internet went into both C and C++, I would prefer to learn C++ after C.
The tutorials seemed to go striaght from history into programming, but i am having trouble compiling.
I don't know if this is right, I tryed to make a program to say 'hello world' or something :guitar:
#include <stdio.h>
main()
{
printf("hello, world\n");
}
And saved it as hello.c
Then i used the terminal command "cc hello.c" which did nothing it seems.
So i right clicked on the file (hello.c) and selected open with "gcc" which made a new file called 'a.out'.
I click on 'a.out' and nothing happends, I have no idea what im doing could someone help me out please?
The majority of tutorials i found on the internet went into both C and C++, I would prefer to learn C++ after C.
The tutorials seemed to go striaght from history into programming, but i am having trouble compiling.
I don't know if this is right, I tryed to make a program to say 'hello world' or something :guitar:
#include <stdio.h>
main()
{
printf("hello, world\n");
}
And saved it as hello.c
Then i used the terminal command "cc hello.c" which did nothing it seems.
So i right clicked on the file (hello.c) and selected open with "gcc" which made a new file called 'a.out'.
I click on 'a.out' and nothing happends, I have no idea what im doing could someone help me out please?