PDA

View Full Version : Teach programming


roe-ur-boat
05-12-2007, 07:00 PM
I was just wondering if there was anyone out there who would like to help me get started with programming in C or C++. I tried some of the psp-programming.com tutorials but I didn't really get going with it. I was just hoping that someone would teach me over messenger or something like that. Thanks

- roe-ur-boat

MenaceInc
05-13-2007, 01:55 PM
I was just wondering if there was anyone out there who would like to help me get started with programming in C or C++. I tried some of the psp-programming.com tutorials but I didn't really get going with it. I was just hoping that someone would teach me over messenger or something like that. Thanks

- roe-ur-boat

really it would be best to sign up to a college course or something that specializes in this kinda thing but obviously that costs money...

another way is self-teaching through reading articles and using references which is what i do.
a good reference book i would recommend is C++ for Dummies (http://www.dummies.com/WileyCDA/DummiesTitle/productCd-0764568523.html). it doesn't deal with the windows API but i would definately recommend it for a begginer.

it's all about building up your knowledge.also,as a warning,it is very maths and algelbra related.if you didnt/don't do well with those then you might have problems with this.

roe-ur-boat
05-13-2007, 04:42 PM
really it would be best to sign up to a college course or something that specializes in this kinda thing but obviously that costs money...

another way is self-teaching through reading articles and using references which is what i do.
a good reference book i would recommend is C++ for Dummies (http://www.dummies.com/WileyCDA/DummiesTitle/productCd-0764568523.html). it doesn't deal with the windows API but i would definately recommend it for a begginer.

it's all about building up your knowledge.also,as a warning,it is very maths and algelbra related.if you didnt/don't do well with those then you might have problems with this.
Thanks for the advice MenaceInc its just that I was more looking for someone who knows it and has a bit of free time that might like to teach me

GoldLine9x
05-13-2007, 06:15 PM
C+ is very very hard to learn if you want to make games teh quick and easy way use lua

roe-ur-boat
05-13-2007, 06:19 PM
I was using lua but it hasn't got that many options. Does anyone think the 3d gamemaker program is good

MenaceInc
05-14-2007, 02:25 PM
C+ is very very hard to learn if you want to make games teh quick and easy way use lua

it isnt THAT hard....the basics are alright but implement the windows API to display results is getting me in a spin....i can make like basic programs but they run in a DOS box... :\

ah well :)

x3sphere
05-14-2007, 03:25 PM
do you have the PSPSDK installed? there are various samples that can be found at usr\local\pspdev\psp\sdk\samples

taking a look at these should help you get a grasp on most of the functions.

I really suggest making some small apps for PC before heading straight to PSP though

MenaceInc
05-14-2007, 04:01 PM
do you have the PSPSDK installed? there are various samples that can be found at usr\local\pspdev\psp\sdk\samples

taking a look at these should help you get a grasp on most of the functions.

I really suggest making some small apps for PC before heading straight to PSP though

ditto :P

although you're giving tips on a linux setup there in regards to the PSPSDK....i think he was looking to try and make it in a windows envioment...although not really possible.. :\ so yea,that bit might of confused him....ah well :)

but you're right,should make some apps for pc first.

roe-ur-boat
05-14-2007, 04:27 PM
ditto :P

although you're giving tips on a linux setup there in regards to the PSPSDK....i think he was looking to try and make it in a windows envioment...although not really possible.. :\ so yea,that bit might of confused him....ah well :)

but you're right,should make some apps for pc first.
No, he didn't confuse me I know that I have to install cygwin and setup the pspdsk by usig some sort of psp toolchain or something. And is it easier to make apps for the pc or the psp. Because if it is I could start making things on the pc then I could work on to making stuff for the psp. I probably could get a basic knowledge of C on making pc apps then move on to psp and get better. What do you think?

MenaceInc
05-14-2007, 09:11 PM
No, he didn't confuse me I know that I have to install cygwin and setup the pspdsk by usig some sort of psp toolchain or something. And is it easier to make apps for the pc or the psp. Because if it is I could start making things on the pc then I could work on to making stuff for the psp. I probably could get a basic knowledge of C on making pc apps then move on to psp and get better. What do you think?

well,i would say the psp as the windows API is just like whaaaaaa....haha....nah,i'm not 100% really as i havent tried any on the PSP and i havent made any graphical programs on the PC so cant really say.any of the developers here wanna say?

canadajames
05-25-2007, 10:54 PM
The thing I really wanna do is learn how to code emulators anyone have any idea?

Darkchild
05-26-2007, 02:24 AM
canadajames to make emulators not only do you have to know the language very well, but also, how the emulated machine works (like the palm of your hand) Roe-ur-boat If I were you I'd develop some programing logic first try learning "Softer" programming languages :)

roe-ur-boat
05-26-2007, 07:51 AM
canadajames to make emulators not only do you have to know the language very well, but also, how the emulated machine works (like the palm of your hand) Roe-ur-boat If I were you I'd develop some programing logic first try learning "Softer" programming languages :)
What would you classify a softer language to be, if you mean something like lua I'm practicing a bit of that.

Darkchild
05-26-2007, 12:09 PM
Err... where I am from, people usually start with pascal, then Visual basic then c++/Java

that's the path I'd advise you to follow =)

MenaceInc
05-26-2007, 01:44 PM
Err... where I am from, people usually start with pascal, then Visual basic then c++/Java

that's the path I'd advise you to follow =)

i just started off on C++... :\ and doing alright i think...although still nothing big and graphical for Windows....but in the middle of remaking Space Invaders on PSP... :)

roe-ur-boat
05-26-2007, 04:00 PM
Err... where I am from, people usually start with pascal, then Visual basic then c++/Java

that's the path I'd advise you to follow =)
Do you know of any good sites for compilers or tutorials for pascal.

Darkchild
05-27-2007, 02:49 AM
I know only 2:

Borland Pascal (I think this one is commercial) (english)
Pascalzim (Free)(Brazillian)


If you need tutorials I'm a good teacher ;)

shadowforte
05-27-2007, 12:58 PM
If I was you, I would start with Python, then work up to Java/c#/C++

Darkchild
05-27-2007, 01:48 PM
xD python??? XD!!!

let them learn from simple languages xD

shadowforte
05-27-2007, 04:06 PM
What do meen by that? That Python is not simple, or it is? Because if that is not simple for them(good god), then go with Lua or Pascal I geuss. Python is not THAT hard.

roe-ur-boat
05-27-2007, 04:29 PM
Can you use python or pascal for the psp, because I want to program for the psp.

Darkchild
05-27-2007, 04:51 PM
for the PSP...that's a different story xD

There is python though...they used that for that Online FF8 card game homebrew

roe-ur-boat
05-27-2007, 04:58 PM
for the PSP...that's a different story xD

There is python though...they used that for that Online FF8 card game homebrew
Ok then I'll try Python, anyone know of anywhere I can learn that?

Darkchild
05-27-2007, 07:09 PM
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)

roe-ur-boat
05-27-2007, 07:18 PM
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)
Hmmmm maybe I'll stick with LUA for now then move onto C and C++ later. Thanks anyway,:smile:

Darkchild
05-27-2007, 07:25 PM
sorry 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

roe-ur-boat
05-27-2007, 07:28 PM
sorry 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
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. lol

Darkchild
05-27-2007, 08:28 PM
well then...here ya go


******************************
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!Be gratefull!!!
</folder></bla.h>

roe-ur-boat
05-27-2007, 08:40 PM
well then...here ya go


******************************
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>
Thank you.:D

MenaceInc
05-27-2007, 10:29 PM
"* to give a value to a variable you have to use "=" not ":=" or "==" "

that explains some of the glitches i have sometimes in Space Invaders... :\

Darkchild
05-28-2007, 12:34 AM
xD I'm surprised you actually read my notes XP