C/C++ Programming Help Thread
This is a discussion on C/C++ Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I recommend Dev-C++ which can be found here . It is an excellent IDE (Source editor, compiler, debugger) for windows. ...
-
06-25-2007, 01:19 PM #5161QJ Gamer Green
- Registriert seit
- Dec 2006
- Ort
- main();
- Beiträge
- 1.071
- Points
- 11.300
- Level
- 70
- Downloads
- 0
- Uploads
- 0
I recommend Dev-C++ which can be found here. It is an excellent IDE (Source editor, compiler, debugger) for windows. As for C++ I recommend you read and do this tutorial, Teach Yourself C++ In 21 Days.
-
06-25-2007, 02:26 PM #5162QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Beware of that tutorial link as the Second edition was before the C++ standards (ie it uses iostream.h instead of iostream). Try to buy the latest version of the book.
DevCpp hasn't been updated for a while, use wxDevCpp instead. It is more up to date and is actively improved.[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
06-25-2007, 02:28 PM #5163QJ Gamer Green
- Registriert seit
- Dec 2006
- Ort
- main();
- Beiträge
- 1.071
- Points
- 11.300
- Level
- 70
- Downloads
- 0
- Uploads
- 0
I don't use C++ and I am on a Mac, so that was in reference to when I ran windows. Thanks for the corrections, yaustar.
-
06-25-2007, 02:49 PM #5164
i have a c++ book but ty
-
06-25-2007, 03:02 PM #5165QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Out of interest, what is the name of the book?
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
06-25-2007, 04:46 PM #5166words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
bilzoo - Beware of yaustar's ability to force you to read his recommended book list ;)

...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here
-
06-25-2007, 09:30 PM #5167
Teach Yourself C++ in 21 Days
by Jesse Liberty and Bradley Jones
(c)2005 by Sams publishing
-
06-26-2007, 11:40 AM #5168QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
That's a good book for beginners. Just don't take the 21 days part seriously.
Zitat von bilzoo2000
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
06-26-2007, 11:47 AM #5169QJ Gamer Bronze

- Registriert seit
- Jun 2006
- Beiträge
- 144
- Points
- 7.047
- Level
- 55
- Downloads
- 0
- Uploads
- 0
The way I went is:
1)Learn C using K&R books.
2)Learn more C and read all the usenet C FAQs
3)Read C++ Programming by Stroutstrup
4)Read Effective C++ from A&W publishing
5)Read More Effective C++ from A&W publishing
6)Read Design Patterns from A&W publishing
7)Read Design Patterns Explained from A&W publishing
8)Read C++ Coding Standards from A&W publishing
9)Read C++ Gotchas from A&W publishing
10)Read Modern C++ Design from A&W publishing
[...]
And I'm reading even more of these A&W books (got 12 of them).Adrahil - Software architect and specialist in Reverse Engineering.
Spoiler for Guilt of a Dev:
Spoiler for me:
-
06-26-2007, 11:55 AM #5170QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Those are damn good books (the A & W series). Take a look at Pragmatic Programmer or Code Complete. Great generic books. C++ for Games Programmers is also a good read.
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
06-26-2007, 11:59 AM #5171Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
I just did buy C , the programming language , but its written by a belgain so you wont know it , but i dindt have much time so i am still stuck at page 92
-
06-26-2007, 12:48 PM #5172QJ Gamer Green
- Registriert seit
- Dec 2006
- Ort
- main();
- Beiträge
- 1.071
- Points
- 11.300
- Level
- 70
- Downloads
- 0
- Uploads
- 0
How encouraging... :/
Zitat von hallo007
-
06-26-2007, 10:45 PM #5173QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
jw is their a way to take a number thats in a string and convert it to an int or float for example:
instead of doing:
if(strcmp(string,"1")){
number = 1;
}else if(strcmp(string,"2")){
number = 2
etc etc
can i do:
number = string;
i know you can't do that but something similar it would save me alot of time1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects
3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been
-
06-26-2007, 11:12 PM #5174QJ Gamer Bronze

- Registriert seit
- Jul 2006
- Beiträge
- 90
- Points
- 4.912
- Level
- 44
- Downloads
- 0
- Uploads
- 0
-
06-26-2007, 11:14 PM #5175QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
o thats very nice thanks a million nataku
1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects
3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been
-
06-27-2007, 12:09 AM #5176Retired PSP Developer

- Registriert seit
- Feb 2007
- Ort
- Canada
- Beiträge
- 407
- Points
- 11.885
- Level
- 71
- Downloads
- 0
- Uploads
- 0
Can someone give me the best and safest way to flash a file to flash0?
eg. a topmenu_plugin from 'ms0:\' to 'flash0:\vsh\resource' (i think :P)
-
06-27-2007, 12:24 AM #5177words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
With a modchip where you can write to flash regardless of the software missing on it. Next best thing would be to use maybe X-Flash or some other app programmed well and has alot of security measures taken, or you could use USB flashing through recovery menu, but you'll need to do all the security measures.

...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here
-
06-27-2007, 02:36 AM #5178QJ Cool 300th Member
- Registriert seit
- Jul 2006
- Beiträge
- 173
- Points
- 4.347
- Level
- 41
- Downloads
- 0
- Uploads
- 0
I think he meant how to flash a file to flash0 in C++ since this is the C++ help thread, AdjutantReflex.
-
06-27-2007, 04:44 AM #5179Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
I pm'ed him already
-
06-27-2007, 07:20 AM #5180QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
ok i keep gettin an array subscript error with the following code: (bolded lines with error)
error:Code:float vertexs[MAX_VERTICES][7]; float *vertexs; int *polygons; vertexs = (float*) malloc (sizeof(float)*300); polygons = (int*) malloc (sizeof(int)*300); int number=0; int actual_polygon=0; for(int i=0;i<current_mesh;i++){ for(int b=0;b<3;b++){ if(b==0){ test.vertexs[number][1] = vertexs[polygons[actual_polygon]]; }else if(b==1){ test.vertexs[number][2] = vertexs[polygons[actual_polygon]]; }else if(b==2){ test.vertexs[number][3] = vertexs[polygons[actual_polygon]]; } actual_polygon++; } number++; }
./functions/loadxfile.txt:200: error: invalid types 'float [5000][7][1][float]'
for array subscript
i've never seen this error so any help would be appreciated1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects
3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been
-
06-27-2007, 07:23 AM #5181QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
vertexs is a 2D array, you are trying to access it as a 1D array here:
Zitat von slicer4ever
Code:vertexs[polygons[actual_polygon]]
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
06-27-2007, 07:27 AM #5182QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
from my understanding it shouldn't really matter i have a number stored in vertexs[polygons[actual_polygon]] and i'm trying to place that number in test.vertexs[number][1] however i am most likly wrong and it isn't working like i am thinking it should so should i change vertexs[polygons[actual_polygon]] to something like vertexs[polygons[actual_polygon]][1]
1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects
3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been
-
06-27-2007, 07:37 AM #5183QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
It does.
Zitat von slicer4ever
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
06-27-2007, 07:53 AM #5184
Is there any alternative to drawLineScreen(); ?
It started to fail for some reason [used to work fine before]...
-
06-27-2007, 08:53 AM #5185QJ Gamer Green
- Registriert seit
- Dec 2006
- Ort
- main();
- Beiträge
- 1.071
- Points
- 11.300
- Level
- 70
- Downloads
- 0
- Uploads
- 0
drawLineScreen();? From what?
Zitat von Mr305
-
06-27-2007, 09:21 AM #5186
graphics.c
Zitat von FistPump
牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
06-27-2007, 09:28 AM #5187QJ Gamer Green
- Registriert seit
- Dec 2006
- Ort
- main();
- Beiträge
- 1.071
- Points
- 11.300
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Oh, then I doubt that it is failing on you. Rather, you are doing something retarded. Code?
-
06-27-2007, 09:49 AM #5188The Unique Developer

- Registriert seit
- Oct 2006
- Ort
- Canada
- Beiträge
- 1.059
- Points
- 7.101
- Level
- 55
- Downloads
- 0
- Uploads
- 0
Alternative , no. Make sure the Gu is initialized, that's all I can think of.
Zitat von Mr305
Malloc.Us Network Administrator
Decryption of the Encrypted
You are the unseen, the unstoppable and in power of your code. The God of your software.
-
06-27-2007, 10:04 AM #5189QJ Gamer Green
- Registriert seit
- Dec 2006
- Ort
- main();
- Beiträge
- 1.071
- Points
- 11.300
- Level
- 70
- Downloads
- 0
- Uploads
- 0
drawLineScreen() uses VRAM manipulation, so the GU really isn't a factor, I don't think.
-
06-27-2007, 11:21 AM #5190QJ Gamer Silver

- Registriert seit
- Jan 2006
- Ort
- Germany
- Beiträge
- 926
- Points
- 14.087
- Level
- 77
- Downloads
- 0
- Uploads
- 0
Good guess.
Zitat von FistPump
Raphs board rules #31: Excessive use of punctuation is either a sign of a lesser ego or a small mind. Avoid it if you don't want to look like a total moron.
Raphs board rules #17: When you need to ask whether you are capable of doing something, you are not.
Raphs board rules #2: Exploits aren't found by changing version numbers, blindly merging data into a file or turning your PSP upside down.
Raphs board rules #1: If you have no clue how exploits work, don't come up with ideas about them.


LinkBack URL
About LinkBacks
Mit Zitat antworten


Hello everyone I am new here and I am glad to be part of this amazing community and I think there...
New to forum