Is there any way I can make sure the buffer is cleared? I have used it before but somehow now its now working...
EDIT : *problem solved* - laserlight thanks for your help!!! I used %*c%[^\n]%*c...
Type: Posts; User: eleceng16
Is there any way I can make sure the buffer is cleared? I have used it before but somehow now its now working...
EDIT : *problem solved* - laserlight thanks for your help!!! I used %*c%[^\n]%*c...
I tried it but it's still not working... it's not letting me enter an input :/
Hi, I've been trying to read to a string with spaces using the following
scanf("%[^\n]%*c", student->name);
However, it is not working since it doesn't let me input any thing and just moves...
ahhh sorry i misunderstood, thanks!
@claudiu .. what is an alternative to malloc?
Hi, I'm trying to print the items in the list (a continuation from code above) however its not working..
void printList(listCode* startPtr){...
I did as you said but now it gave me these errors
1. warning C4090 =' : different 'const' qualifiers
2. error C2106: '=' : left operand must be l-value
I have no idea what they mean?
Hi, I'm new to C programming and I'm trying to create code ( it's part of a larger program) which creates linked list of country codes. Basically I'm getting the country codes inputted from the user...