GP32 What Exactly Do You Do To The Source Code?


If we all developed in PASCAL, we wouldn't have these problems with lazy programming! :lol:

/me hides under a Nomex blanket ;)
 
ok ok, im a master in .net. i will try to port something to gp2x

i just want to know one thing: where is the controls???
:p

anyway, i just want to know the basics to start porting something to gp2x, like somebody here said, only a helloworld-HOWTO would be fine
 
yaustar posted on Dec 1 2005 at 05:37 AM said:
Does that actually compile? I think I can see at least three errors there?

#include <iostream.h> should be #include <iostream> (uses the newer library)
missing using namespace std or should have std:: at the beginning of cin and cout
main should have a return type of int.
No, that should work - the C++ headers with .h on the end are basically the non-namespaced versions (I think they're mainly a hangover from when C++ was still evolving, but IIRC, they are part of the standard).

As for the no return type on main(), I know Visual C lets you do that, but I'm not sure whether it is 'correct' or not :)
 
Last edited by a moderator:
Back
Top