Ok then I'll try Python, anyone know of anywhere I can learn that?for the PSP...that's a different story xD
There is python though...they used that for that Online FF8 card game homebrew
Hmmmm maybe I'll stick with LUA for now then move onto C and C++ later. Thanks anyway,:smile:I went to google and found this:
http://docs.python.org/tut/
google for some more if this one won't do (Remember that is a tutorial for regular python not PSP's python so the part where it talks about preparation...ignore it XD)
Yes please. This whole thread started with me asking could someone teach me C/C++ and after all that I'm back at square one. lolsorry xP, I have a few C++ notes around my HD (containing the very basics of basics)
if you want them I'll put them as an attachment xD
******************************
Basic Notes
******************************
*c++ is case sensitive T_T
* c++ is like pascal, you have to put an ";" at the end of each command
* to give a value to a variable you have to use "=" not ":=" or "=="
* the if seem to be like the ones in PHP
syntax:
IF (value == 1 ) {code to execute }
else {code to execute else!! }
*Conditions :
>= Bigger or equal
<= Smaller or equal
== equal
<> Different
--------------------------------------------------------------------
******************************
Include
******************************
#include <bla.h><bla.h>
this is for including some sort of module with functions or declarations
in c++, where bla.h is the name of the file where the functions data is
if that file is in a sub folder (instead of the usual includes folder)
it has to be like this
#include <folder/bla.h><folder bla.h="">
--------------------------------------------------------------------
******************************
Defining Variables
******************************
After initializing main ("int main()" ), do:
int/double/char/string nameofthevariable;
example:
int num;
string name;
Int = integer (goes from -3 billions to 3 billions in value, more or less
than these will give you an error in the compiling process)
NUMERIC ONLY
Double = Like integer, only diference is that you can have decimal values in it
again.. NUMERIC ONLY!
char = For strage characters like @€ and etc..
String = in the string variables you can put whatever you wish to put, mind you though
the maximum number of characters in a string is 255!
Note : DECLARE ALL VARIABLES IN MAIN!!!!
----------------------------------------------------------------------
******************************
Giving Values to variables
******************************
variable = value;
Note : Strings have to be like this:
variable = "text";
if it's not between a pair of "" it will be identified as the name of a variable
-----------------------------------------------------------------------
******************************
Presenting values
******************************
cout << asd;
Cout is the command, ASD is the variable
In this case(according to a friend of mine) it works with all kinds of variables
if you do
cout << asd << asd1
He will present those 2 variables, separated in spaces
------------------------------------------------------------------------
******************************
Presenting Text
******************************
Q : WTF? Haven't we gone through this yet?
A : No...We saw how to PRESENT a value not text! :O
HERE WII GO! :D
printf("rawr");
The result:
rawr
Well I think this is self explanitory...
Now.. if you use a lot of printf's he will not break the line, to break the like
make a seperate printf like this one:
printf("\n");
Note : the "\n" is also used in PHP! :D
------------------------------------------------------------------------
******************************
Reading Dada
******************************
cin >> var;
This is very simple, the CIN command is to read
Var is the variable where the data is going to!
Note : Always be carefull with the kind of data
inputed!
ALWAYS PUT STRINGS! VALIDATE LATER!
Thank you.well then...here ya go
Code:****************************** Basic Notes ****************************** *c++ is case sensitive T_T * c++ is like pascal, you have to put an ";" at the end of each command * to give a value to a variable you have to use "=" not ":=" or "==" * the if seem to be like the ones in PHP syntax: IF (value == 1 ) {code to execute } else {code to execute else!! } *Conditions : >= Bigger or equal <= Smaller or equal == equal <> Different -------------------------------------------------------------------- ****************************** Include ****************************** #include <bla.h> this is for including some sort of module with functions or declarations in c++, where bla.h is the name of the file where the functions data is if that file is in a sub folder (instead of the usual includes folder) it has to be like this #include <folder bla.h=""> -------------------------------------------------------------------- ****************************** Defining Variables ****************************** After initializing main ("int main()" ), do: int/double/char/string nameofthevariable; example: int num; string name; Int = integer (goes from -3 billions to 3 billions in value, more or less than these will give you an error in the compiling process) NUMERIC ONLY Double = Like integer, only diference is that you can have decimal values in it again.. NUMERIC ONLY! char = For strage characters like @€ and etc.. String = in the string variables you can put whatever you wish to put, mind you though the maximum number of characters in a string is 255! Note : DECLARE ALL VARIABLES IN MAIN!!!! ---------------------------------------------------------------------- ****************************** Giving Values to variables ****************************** variable = value; Note : Strings have to be like this: variable = "text"; if it's not between a pair of "" it will be identified as the name of a variable ----------------------------------------------------------------------- ****************************** Presenting values ****************************** cout << asd; Cout is the command, ASD is the variable In this case(according to a friend of mine) it works with all kinds of variables if you do cout << asd << asd1 He will present those 2 variables, separated in spaces ------------------------------------------------------------------------ ****************************** Presenting Text ****************************** Q : WTF? Haven't we gone through this yet? A : No...We saw how to PRESENT a value not text! :O HERE WII GO! :D printf("rawr"); The result: rawr Well I think this is self explanitory... Now.. if you use a lot of printf's he will not break the line, to break the like make a seperate printf like this one: printf("\n"); Note : the "\n" is also used in PHP! :D ------------------------------------------------------------------------ ****************************** Reading Dada ****************************** cin >> var; This is very simple, the CIN command is to read Var is the variable where the data is going to! Note : Always be carefull with the kind of data inputed! ALWAYS PUT STRINGS! VALIDATE LATER!
Be gratefull!!!
</folder></bla.h>