0 Members and 1 Guest are viewing this topic.
"sub(str1,A,1->vFor(A,1,Length(str1If v="commandDo stuffIf v="other commandDo other stuffEnd
FILE* f;int fsize;char* buf;f = fread("/documents/Examples/thegame.tns");fsize = filesize(f);buf = (char*) malloc(fsize);fread(buf, 1, fsize, f);close(f);
Isn't c++ backwrds compatible with C code?
I've been thinking about doing this, although it would probably be easier to port one._player1537, you access files by using filesize() (in the utils.h in skeleton.zip attached to the first post on the Routines thread) to get the size, the fread to read it into an array, like so:Code: [Select]...f = fread("/documents/Examples/thegame.tns");...close(f);
...f = fread("/documents/Examples/thegame.tns");...close(f);
*facepalm* C# isn't interpreted...At compile-time, it is compiled almost all the way. Then, at run-time, it is JIT compiled (Just-In-Time) the rest of the way. You can do the second step whenever you like and save the binary, thus making it not interpreted.I have been planning for a while to make a .NET Framework-like thing and object oriented C# based language for the TI-83+/84+ (SE).