![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
Newbie
|
Hello,
I have written my wirst program in c. For you, it is probably trivial but learning by doing. The code is: #include <stdio.h>
int main()
{
printf("Hello World!\n");
return 0;
}I saved it as area51.c Then I opened my console and put in: (I am using OpenSuse as OS) gcc area51.c -o area51 and I got this message: Quote:
In case, I set grammatical mistakes or improper vocabulary, please feel free to correct me. Thanks for help all the best |
|
|
|
|
|
|
#2 |
|
Game engine designer
Join Date: May 2005
Location: Sweden
Posts: 314
Rep Power: 4
![]() |
Re: my first c program - problems & questions
Place the cursor after the '}' and press the enter key - the warning will be gone!
![]()
__________________
http://www.klarre.se |
|
|
|
|
|
#3 |
|
Newbie
|
Re: my first c program - problems & questions
|
|
|
|
|
|
#4 |
|
12 years old
Join Date: Nov 2007
Posts: 105
Rep Power: 0
![]() |
Re: my first c program - problems & questions
for some reason all C source files that are not empty require a new line at the end or 'undefined' behavior may result. i knew why but i forgot
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Language display in program | Prm753 | C++ | 3 | May 30th, 2006 6:45 PM |
| Inheritance and polymorphism exercise problems, plus other questions | codylee270 | C++ | 1 | Apr 19th, 2006 11:29 PM |
| ucf cs student has some questions | raspberryh | Coder's Corner Lounge | 33 | Sep 12th, 2005 3:49 PM |
| crack these questions if u can!!! | shagan | C++ | 18 | Apr 3rd, 2005 7:47 AM |
| ATM Program Assignment problems | sammyturncoat | C++ | 1 | Mar 14th, 2005 7:37 PM |