Seite 173 von 340 ErsteErste ... 73 123 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 223 273 ... LetzteLetzte
Zeige Ergebnis 5.161 bis 5.190 von 10174

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. ...

  
  1. #5161
    QJ Gamer Green
    Points: 11.300, Level: 70
    Level completed: 13%, Points required for next Level: 350
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Ort
    main();
    Beiträge
    1.071
    Points
    11.300
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    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.



  2. #5162
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    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.

  3. #5163
    QJ Gamer Green
    Points: 11.300, Level: 70
    Level completed: 13%, Points required for next Level: 350
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Ort
    main();
    Beiträge
    1.071
    Points
    11.300
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    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.

  4. #5164
    Points: 3.333, Level: 35
    Level completed: 89%, Points required for next Level: 17
    Overall activity: 0%

    Registriert seit
    Jun 2007
    Beiträge
    30
    Points
    3.333
    Level
    35
    Downloads
    0
    Uploads
    0

    Standard

    i have a c++ book but ty

  5. #5165
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Out of interest, what is the name of the book?

  6. #5166
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    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


  7. #5167
    Points: 3.333, Level: 35
    Level completed: 89%, Points required for next Level: 17
    Overall activity: 0%

    Registriert seit
    Jun 2007
    Beiträge
    30
    Points
    3.333
    Level
    35
    Downloads
    0
    Uploads
    0

    Standard

    Teach Yourself C++ in 21 Days

    by Jesse Liberty and Bradley Jones

    (c)2005 by Sams publishing

  8. #5168
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von bilzoo2000
    Teach Yourself C++ in 21 Days

    by Jesse Liberty and Bradley Jones

    (c)2005 by Sams publishing
    That's a good book for beginners. Just don't take the 21 days part seriously.

  9. #5169
    QJ Gamer Bronze
    Points: 7.047, Level: 55
    Level completed: 49%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Beiträge
    144
    Points
    7.047
    Level
    55
    Downloads
    0
    Uploads
    0

    Standard

    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:
    17:17 < InsertWittyName> Can't pin user error on a dev ;)
    17:18 < InsertWittyName> Lesson learnt on both sides I would say.
    17:18 < InsertWittyName> You learnt to treat the end-user as a retarded fish.
    17:18 < InsertWittyName> They learnt to read readme's ;)

    Spoiler for me:
    17:12 <+dot_blank> are you the long haired pimp ;)

  10. #5170
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    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.

  11. #5171
    Heroes never die
    Points: 8.645, Level: 62
    Level completed: 65%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    ...........
    Beiträge
    1.323
    Points
    8.645
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    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

  12. #5172
    QJ Gamer Green
    Points: 11.300, Level: 70
    Level completed: 13%, Points required for next Level: 350
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Ort
    main();
    Beiträge
    1.071
    Points
    11.300
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von hallo007
    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
    How encouraging... :/

  13. #5173
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    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 time
    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

  14. #5174
    QJ Gamer Bronze
    Points: 4.912, Level: 44
    Level completed: 81%, Points required for next Level: 38
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Beiträge
    90
    Points
    4.912
    Level
    44
    Downloads
    0
    Uploads
    0

  15. #5175
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    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

  16. #5176
    Retired PSP Developer
    Points: 11.885, Level: 71
    Level completed: 59%, Points required for next Level: 165
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Ort
    Canada
    Beiträge
    407
    Points
    11.885
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    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)

  17. #5177
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    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


  18. #5178
    QJ Cool 300th Member
    Points: 4.347, Level: 41
    Level completed: 99%, Points required for next Level: 3
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Beiträge
    173
    Points
    4.347
    Level
    41
    Downloads
    0
    Uploads
    0

    Standard

    I think he meant how to flash a file to flash0 in C++ since this is the C++ help thread, AdjutantReflex.

  19. #5179
    Heroes never die
    Points: 8.645, Level: 62
    Level completed: 65%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    ...........
    Beiträge
    1.323
    Points
    8.645
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    I pm'ed him already

  20. #5180
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    ok i keep gettin an array subscript error with the following code: (bolded lines with 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++;
         }
    error:

    ./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 appreciated
    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

  21. #5181
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von slicer4ever
    ok i keep gettin an array subscript error with the following code: (bolded lines with 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++;
         }
    error:

    ./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 appreciated
    vertexs is a 2D array, you are trying to access it as a 1D array here:
    Code:
    vertexs[polygons[actual_polygon]]

  22. #5182
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    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

  23. #5183
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von slicer4ever
    from my understanding it shouldn't really matter
    It does.

  24. #5184
    QJ Gamer Gold
    Points: 14.678, Level: 78
    Level completed: 57%, Points required for next Level: 172
    Overall activity: 0%

    Registriert seit
    Nov 2006
    Beiträge
    1.523
    Points
    14.678
    Level
    78
    Downloads
    0
    Uploads
    0

    Standard

    Is there any alternative to drawLineScreen(); ?
    It started to fail for some reason [used to work fine before]...

  25. #5185
    QJ Gamer Green
    Points: 11.300, Level: 70
    Level completed: 13%, Points required for next Level: 350
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Ort
    main();
    Beiträge
    1.071
    Points
    11.300
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Mr305
    Is there any alternative to drawLineScreen(); ?
    It started to fail for some reason [used to work fine before]...
    drawLineScreen();? From what?

  26. #5186
    Points: 24.247, Level: 94
    Level completed: 90%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    texas
    Beiträge
    2.803
    Points
    24.247
    Level
    94
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von FistPump
    drawLineScreen();? From what?
    graphics.c
    牧来栠摩琠敨映汩獥
    PSN: youresam
    From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
    --Mike Hollingsworth

  27. #5187
    QJ Gamer Green
    Points: 11.300, Level: 70
    Level completed: 13%, Points required for next Level: 350
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Ort
    main();
    Beiträge
    1.071
    Points
    11.300
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Oh, then I doubt that it is failing on you. Rather, you are doing something retarded. Code?

  28. #5188
    The Unique Developer
    Points: 7.101, Level: 55
    Level completed: 76%, Points required for next Level: 49
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Ort
    Canada
    Beiträge
    1.059
    Points
    7.101
    Level
    55
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Mr305
    Is there any alternative to drawLineScreen(); ?
    It started to fail for some reason [used to work fine before]...
    Alternative , no. Make sure the Gu is initialized, that's all I can think of.
    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.

  29. #5189
    QJ Gamer Green
    Points: 11.300, Level: 70
    Level completed: 13%, Points required for next Level: 350
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Ort
    main();
    Beiträge
    1.071
    Points
    11.300
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    drawLineScreen() uses VRAM manipulation, so the GU really isn't a factor, I don't think.

  30. #5190
    QJ Gamer Silver
    Points: 14.087, Level: 77
    Level completed: 10%, Points required for next Level: 363
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Ort
    Germany
    Beiträge
    926
    Points
    14.087
    Level
    77
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von FistPump
    Oh, then I doubt that it is failing on you. Rather, you are doing something retarded. Code?
    Good guess.
    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.


 

Tags for this Thread

Forumregeln

  • Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
  • Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
  • Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
  • Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
  •  





Alle Zeitangaben in WEZ -8. Es ist jetzt 09:14 PM Uhr.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © , Caputo Media, LLC. All Rights Reserved. Cluster .