c programming language! ! ! ! ! ! ! ! ! 1

Category: C/C++ -> C Author: N773114820 Date: 2013-04-05 12:52:14
 
N773114820
2013-04-05 12:52:14
Write a function, the statistical argument came one by the string of letters, numbers, spaces, and the number of other characters, the main function of the input string, and output the results! ! (Source)
zhijianshazh
2013-04-05 13:02:21
# include <ctype.h>

void sum (char * pstr, int * a, int * b, int * c, int * d)
{
char * p = pstr;
;
* a = * b = * c = * d = 0;
while (* p)
{
if (isalpha (* p)) (* a) + +;
else if (isdigit (* p)) (* b) + +;
else if (issapce (* p)) (* c) + +;
else (* d) + +;
}
}

void main ()
{
char str [100];
int a, b, c, d;

gets (str);

sum (str, & a, & b, & ; c, & d);
}
erwan123
2013-04-05 13:16:58
up

keyier
2013-04-05 13:35:06
I weighs, so that the subject can say what this C language teaching books have examples!!
tiancanhao
2013-04-05 13:46:32
EASY!!!!!!!!!!!!!!!!!!!!!!
laughable people have! ! ! ! ! ! ! !
ru12345
2013-04-05 13:48:50
Hemopurification closer look at the second edition of the C, you will help the
nudtliw
2013-04-05 14:04:25
do you read the book, I advise you to send such a thing before, we must look at look book
jayli658
2013-04-05 14:14:29
book examples!!!!!!!!!!!!!!!!
disappointing
xiayu84
2013-04-05 14:25:13
....... I say a
you points too much ah!!!!
lixiang521a
2013-04-05 14:40:50
This is not a drain you?