PDA

View Full Version : Problem


UnnamedOne
03-17-2008, 07:44 PM
I saved this as main.cpp
#include <iostream>

using namespace std;

int main()
{
cout << "Hello World!" << endl;
return 0;
}I try to compile using this:
g++ main.cppand it says:
main.cpp:9:2 warning: no newline at end of fileWhats wrong?

Edit: Nvm found it. :) Time to code some sh*t for BT now :) Any suggestions on what to code are welcome ;)

luckyr13
04-15-2008, 09:49 PM
Well... i guess u fix it (u had only to add a newline, isnt?) ... why dont u start to code a program using GTK+ or gnome for a graphic interface?

There are a lot of good books around there where u can find very nice information, i recommend:

- Beginning Linux Programming, Fourth Edition, Neil Matthew - Richard Stones, Wiley publishing
- TCP/IP Internetworking (something like that lol), by Comer Douglas (the 3rd volume)

Im working in some programs but are in C... maybe u can find useful work with a library called pcap.h and playing with sockets (like client-server aplications)...

Anyway if u want to talk or something u can email me or send a PM, Im interested in linux programming :)

Good luck!