10-15-2013, 02:54 PM
|
#6
|
new hand moves = dab
Join Date: Dec 2002
Location: he/they
Age: 33
Posts: 10,094
|
Re: Requesting help for programming/ CS majors?
Quote:
char i;
for(i=0; i<12; i++) name[i] = i;
|
that's no good haha. you've declared your variable as a char type, but you're assigning int values to it.
you're looking for something like:
Code:
char name[12];
char c;
for(int i=0; i<12; i++) name[i] = c;
that's still not everything you need, though, because no value is ever assigned to c.
|
|
|