I just started teaching myself some basic things with this, but the simplest shit like strings seems impossible. Does anyone know any good sources, tutorials, or anything that might help me more?
As an example...I wrote this code to tell when a control button was pressed:
//ProcessKeys
int key;
string s;
s="";
scanKeys();
key = keysDown();
if (key & KEY_DOWN){
s="down";
}
if (key & KEY_UP){
s="up";
}
if (key & KEY_LEFT){
s="left";
}
if (key & KEY_RIGHT){
s="right";
}
if (s!=""){
iprintf(s);
}
I get this error:
'string' was not declared in this scope
It doesn't know what string is?