
but anyways thanks for helping, this forum is great!
best resource i have seen in a long time!!
thanks!!!!!
p.s i will make my self clearer with source code next time and take more consideration with my posts!
-chris
Just to be sure, I would look at the standard functions strtol() and sprintf() - perhaps you are making your life more difficult than necessary.cjhawley001 wrote:any help or comments(bad or good) welcome..
As a game programmer we're entirely C++. Even the animators take an introductory course (they only get as far as STL), although the game design students have to do prototyping in Dark BasicOmega wrote:Cargo Cult is just being nice. The Uni CS classes (at least where I am at) are just ridiculously weak. I don't buy books or even go to my CS classes, except for the exams (we turn our work in via Black Board) and I still get A's and B's.
Thankfully that won't help hereCombuster wrote:From my own experience, university C++ courses tend to teach cargo cult programming
Code: Select all
throw new Block();
Code: Select all
int atoi(char* string)
{
int i = 0;
int value = 0;
int zeroValue = '0';
const int slen = len(string);
for (i = 0; i < slen; ++i)
{
char c = string[i];
if (c < '0' || c > '9')
{
return -1;
}
value = 10 * value + (c - zeroValue);
}
return value;
}
Code: Select all
printf("Return = %d","1337");