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.
Printable View
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.
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.
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.
i have a c++ book but ty
Out of interest, what is the name of the book?
bilzoo - Beware of yaustar's ability to force you to read his recommended book list ;)
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.Zitat:
Zitat von bilzoo2000
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).
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.
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:p
How encouraging... :/Zitat:
Zitat von hallo007
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
o thats very nice thanks a million nataku
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)
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.
I think he meant how to flash a file to flash0 in C++ since this is the C++ help thread, AdjutantReflex.
I pm'ed him already
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 appreciated
vertexs is a 2D array, you are trying to access it as a 1D array here:Zitat:
Zitat von slicer4ever
Code:vertexs[polygons[actual_polygon]]
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]
It does.Zitat:
Zitat von slicer4ever
Is there any alternative to drawLineScreen(); ?
It started to fail for some reason [used to work fine before]...
drawLineScreen();? From what?Zitat:
Zitat von Mr305
graphics.cZitat:
Zitat von FistPump
Oh, then I doubt that it is failing on you. Rather, you are doing something retarded. Code?
Alternative , no. Make sure the Gu is initialized, that's all I can think of.Zitat:
Zitat von Mr305
drawLineScreen() uses VRAM manipulation, so the GU really isn't a factor, I don't think.
Good guess.Zitat:
Zitat von FistPump