I have the following code: fonts = dir(\'fonts\') strcmp(\'BELL.TTF\',font开发者_Go百科s.name) where dir(\'fonts\') returns a 33x1 struct where each entry has name (string), date, and a few other th
I\'m learning C. I find I learn programming well when I try things and received feedback from established programmers in the language.
I\'ve this assignment to implement strcmp function. Sometimes it runs okay but other times it crashes. Please help me.
I\'m newbie in C. I want to compare string that I use \'#DEFINE\' and char buf[256]. This is my code. #define SRV_SHOWMENU \"SRV_SHOWMENU\"
Is this if( (FileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) &a开发者_StackOverflowmp;&
For reasons I completely disagree with but \"The Powers (of Anti-Usability) That Be\" continue to decree despite my objections, I have a sorting routine which does basic strcmp() compares to sort by i
I am trying to find the location of an element in the array. I have tried to use this code i generated
C bothers me with its handling of strings. I have a pseudocode like this in my mind: char *data[20]; char *tmp; int i,j;
In C, I have a character array: d[20] 开发者_如何学JAVAWhich is assigned the value \'if\' with a null termination character:
strcmp, when fed the resul开发者_JS百科ts of strtok, in the following code seems to be blatantly lying to me.