thanks but still confuse, the format string is 16 and store %250s, how can i know that %250s is 5 character long? and how can i convert 16 to %10000000000000s?
Type: Posts; User: yuuki
thanks but still confuse, the format string is 16 and store %250s, how can i know that %250s is 5 character long? and how can i convert 16 to %10000000000000s?
thanks i understand but not to sure about why format[16]?, if %250s means 250 char,why the array that it is stored to only consist of 16 char? if the user input larger than 16 char? i mean to change...
// enum { SZ = 250 } ;
char cstr[SZ] ;// prepare format string to read at most SZ-1 characters
char format[16] ;
sprintf( format, "%%%ds", SZ-1 ) ; // ie. "%249s" if SZ == 250
...
struct node* AppendNode(struct node** headRef, int num) {
struct node* current = *headRef;
// special case for the empty list
if (current == NULL) {
Push(headRef, num); ->why not use...