View Single Post
Old 10-15-2013, 02:54 PM   #6
dAnceguy117
new hand moves = dab
FFR Simfile AuthorFFR Veteran
 
dAnceguy117's Avatar
 
Join Date: Dec 2002
Location: he/they
Age: 33
Posts: 10,094
Default 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.
dAnceguy117 is offline   Reply With Quote