Good point - too early in the morning for coding :)
Type: Posts; User: john runchey
Good point - too early in the morning for coding :)
This might give you some ideas. It isn't complete by any means, but is a general approach.
char numerals[80];
int numeralCount,i;
int firstValue,secondValue;
scanf("%s",numerals);...
As the poster said:
strcpy(data.message,"AAA");
This copies the string AAA into data.message, and appends the null at the end of the 3 characters.
strcpy(testString," now I am learning programming");
char * tmp = testString;
int i;
while (*tmp == ' ') {
*tmp++;
}
i = 0;
while (*tmp != NULL) {