PSP Hacks - Forums

Go Back   PSP Hacks - Forums > Tech Talk > PC Programming

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-13-2006, 03:48 AM
PSdonkey's Avatar
PSdonkey PSdonkey is offline
Lop-sided Testicule Admin
PSP Titan
 

Join Date: Dec 2005
Posts: 9,406
PSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond repute
Default

ok I have a little bit of time on my hands so like the title says, if people are really interested in programming in the language of C++, I will make some tutorials on the language. I will do this if I see that there is a substantial interest in making this tutorial. If you are interested, post in here letting me know that you would like for me to make tutorials on programming in C++

All of the programming I would show you is for your computer on a C++ compiler. I personally use Visual C++ 6.0
Once you can master all of these commands with C++, then you will be that much further with advance programming on the psp.

I would start with the basics like expalining variables and data types and showing input and output commands onto your computer screen. Then I would move up to loops such as the for loop, while loop and do-while loop. From there I would go on to operators, switch cases and factorials. From there I would go into the more important commands such as arrays and pointers and math functions where you can calculate volumes and quadratic equations. Then maybe move on to what is used most in psp programming which is functions and classes and structures.

Keep in mind that all I have mentioned so far is just the BASIC of C++ programming. If there is a demand for more programming lessons, I will go into the more advance lessons of C++ such as constructors and destructors, pointers, dynamic arrays, pointer casting, dynaimic varibles and templates.

Please note that in order to start any programming, You will need a C++ compiler.
__________________
Want to become a PSP Dev the easy way? Check out my tutorial for the PSP here http://www.psp-hacks.com/forums/f141...orial-t152466/
Want to learn how to create your own games on the PSP? Check out my tutorial here http://www.psp-hacks.com/forums/f141...-your-t153653/
Want to learn how to program C++ ? Check out that tutorial here http://www.psp-hacks.com/forums/f124...ram-c-t122337/
Reply With Quote
  #2  
Old 05-13-2006, 04:02 AM
Joe88's Avatar
Joe88 Joe88 is online now
#include<super_moderator>
PSP Titan
 
Join Date: Jun 2005
Location: Staten Island, New York City
Posts: 22,004
Joe88 will become famous soon enough
Default

I am interested in it. I use MS visual C++ 6.0 pro too.
I just finished taking starter classes in it but my teacher suckes and cant teach. So I didnt learn that much. O_o
__________________

[λ] The cake is a lie... [λ]
CWcheat DB's Update Thread
Spoiler:
Reply With Quote
  #3  
Old 05-13-2006, 05:58 AM
lord lord is offline
Senior Member
PSP Monk
 

Join Date: Sep 2005
Location: Next door
Posts: 2,657
lord Has a Beginner Reputation
Default

I'm interested as well, but give me a week to get my feet wet with LUA.
Reply With Quote
  #4  
Old 05-13-2006, 10:10 AM
dtjesus dtjesus is offline
PSP Smarty
 

Join Date: Feb 2006
Location: The City Beneath The Surface
Posts: 117
dtjesus Has a Beginner Reputation
Default

do you two not realise this is PsDonkey? what the hell? i thought you both would have had enough of this guy.
Reply With Quote
  #5  
Old 05-13-2006, 04:12 PM
PSdonkey's Avatar
PSdonkey PSdonkey is offline
Lop-sided Testicule Admin
PSP Titan
 

Join Date: Dec 2005
Posts: 9,406
PSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond repute
Default

So how far are you guys with your knowledge of C++ ? As soon as a couple more people come in that are interested, I will start the tutorials.
__________________
Want to become a PSP Dev the easy way? Check out my tutorial for the PSP here http://www.psp-hacks.com/forums/f141...orial-t152466/
Want to learn how to create your own games on the PSP? Check out my tutorial here http://www.psp-hacks.com/forums/f141...-your-t153653/
Want to learn how to program C++ ? Check out that tutorial here http://www.psp-hacks.com/forums/f124...ram-c-t122337/
Reply With Quote
  #6  
Old 05-13-2006, 06:15 PM
lord lord is offline
Senior Member
PSP Monk
 

Join Date: Sep 2005
Location: Next door
Posts: 2,657
lord Has a Beginner Reputation
Default

Quote:
Originally Posted by PSdonkey
So how far are you guys with your knowledge of C++ ? As soon as a couple more people come in that are interested, I will start the tutorials.
-10%

Quote:
Originally Posted by dtjesus
do you two not realise this is PsDonkey? what the hell? i thought you both would have had enough of this guy.
Eh, I don't care. If he's telling the truth YAY. If not who cares? There are an assload of other tutorials out there. I just want a slow easy going one.
Reply With Quote
  #7  
Old 05-13-2006, 06:21 PM
p4ch3c0 p4ch3c0 is offline
Senior Member
PSP Titan
 

Join Date: Sep 2005
Posts: 7,346
p4ch3c0 Has a Beginner Reputation
Default

PSdonkey, what do you mean by your sig? Why would you be banned?
Reply With Quote
  #8  
Old 05-13-2006, 07:44 PM
killaj killaj is offline
Senior Member
PSP Titan
 

Join Date: Nov 2005
Location: Daytona Beach
Posts: 12,855
killaj is on a distinguished road
Default

i'm game
__________________
Reply With Quote
  #9  
Old 05-13-2006, 08:26 PM
illfoundedmind illfoundedmind is offline
PSP Veteran
 

Join Date: Nov 2005
Location: WTF~~~~~~~~~~> Rank: %NULL
Posts: 1,476
illfoundedmind Has a Beginner Reputation
Default

Hmm... does this involve how to play videos on your psp? :paranoid:
__________________
july 19
Reply With Quote
  #10  
Old 05-13-2006, 08:31 PM
PSdonkey's Avatar
PSdonkey PSdonkey is offline
Lop-sided Testicule Admin
PSP Titan
 

Join Date: Dec 2005
Posts: 9,406
PSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond repute
Default

It's just my sig because I thought it was cool.

Since lord is at -10% I will start with the very beginning and basicis of programming in C++

OK Lesson #1

First thing is first. You need to create your own folder so you can put all your C++ programming files that you are going to make in here. Goto where you would like to store your files like in the C: drive or on your desktop and right click your mouse and goto new then click on folder. Go ahead and name your folder anything you want like C++ or programming or any name.

Now open up your C++ compiler program. Once again I use Visual C++ 6.0 so the steps I will give on operating the compiler program will be on Visual C++ 6.0. However, any C++ compiler should work almost the same. I believe you can download an express version here.

http://www.megaupload.com/?d=XA4XTOAR

Once you open your visual C++ program, goto file - new. Then goto the files tab and click on C++ source file. Then in the file name box, type in the name that you want your file to be called like Lesson1. Then in the location box, go ahead and find where you created your new folder and point it to that location.

Now we can begin programming. The very first line in all your programs will be this. #include <iostream> This is basicaly a header file that means input and output streaming. This is in order to use the command "cout" which is used to display text on your screen. The next line of command that you will use on most programs is int main() Don't worry about this as it just means that you will be able to view the results of your progam on your screen. The command "cout" is for when you want something to display on your screen and "<<" are called insert operations. ok, here is the very first program.
-------------------------
#include <iostream>
using namespace std;
int main()
{
cout << "This is my first C++ program";
}

------------------------

Your entire program after int main() must be between two braces {}. This is telling the compiler to do everything within the braces.
Also, after every command you give, you must place a semicolon after your command " ; "
Now every text that you want to be typed o your screen must also be between two quotation marks " "
I know this sounds complicated but believe me it will become alot easier once you get the hang of things

Now compile your program by pressing the compile or build button at the top or simply goto build on the top and click on compile lesson1. At the bottem of your screen you should see the message " 0 warnings and 0 errors" That means that you have successfully compiled your first program. Now you need to execute the program. Goto build again and then click on execute lesson1. Your screen should now read " This is my first c++ program"
Try creating your own small programs that displays any kind of text that you want on your screen. Place your questions that you have so far in your posts and then I will go into variables and data types in Lesson2
__________________
Want to become a PSP Dev the easy way? Check out my tutorial for the PSP here http://www.psp-hacks.com/forums/f141...orial-t152466/
Want to learn how to create your own games on the PSP? Check out my tutorial here http://www.psp-hacks.com/forums/f141...-your-t153653/
Want to learn how to program C++ ? Check out that tutorial here http://www.psp-hacks.com/forums/f124...ram-c-t122337/
Reply With Quote
Reply

 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:24 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©