If you were good enough at generic C/C++ then you wouldn't need a 'real' book for PSP programming since you will be looking at White papers most of the time. There is no "real HandHeld books that are written specifically dealing with PSP development". The knowledge comes from White papers, a solid knowledge of C++, software design, base concepts such as math and networking and most of all, experience.Originally Posted by Mr305
Thinking in C++ is a great C++ free ebook covering advanced aspects of the language. Effective C++ is a must read for every C++ programmer.
No it won't, it will attempt to divide an int by an int which results in another int before casting (with a warning) to a float.Will try that code...
Wouldn't this work in the same way?Code:float m; m= (rand() % 9)/10;
Other ?n, I 've been seeing many 'f' s at the end of number lately... looking at PSP Gu tutorials! What are they used for?
My codeCode:rand() returns 4 4 % 9 = 4 4 / 10 = 0 (works with whole numbers only) type cast 0 to a float = 0.0f Therefore m = 0.0f
The 'f' at the end means that this literal value is a float, without the f, it is a double.Code:rand() returns 4 4 % 9 = 4 type cast 4 to a float = 4.0f 4.0f / 10.0f = 0.4f Therefore m = 0.4f
Code:1.0f // float (usually 32 bit) 1.0 // double (usually 64 bit)