Subversion Repositories svnkaklik

Rev

Rev 264 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 264 Rev 269
Line 9... Line 9...
9
int cti_radku(int* mala,int* velka,int* cisla)
9
int cti_radku(int* mala,int* velka,int* cisla)
10
{
10
{
11
int znaky = 0;
11
int znaky = 0;
12
char c;
12
char c;
13
 
13
 
-
 
14
*mala=*velka=*cisla=0;
-
 
15
 
14
  while ((c=getchar()) != '\n') 
16
  while ((c=getchar()) != '\n') 
15
  {
17
  {
16
    znaky++;
18
    znaky++;
17
  
19
  
18
    if('a'< c <'z') *mala++;
20
 //   if('a'< c <'z') (*mala)++;
19
    if('A'< c <'Z') *velka++;
21
 //   if('A'< c <'Z') (*velka)++;
20
    if('0'< c <'9') *cisla++;
22
 //   if('0'< c <'9') (*cisla)++;
-
 
23
 if (isdigit(c)) (*cisla)++;
-
 
24
 if (islower(c)) (*mala)++;
-
 
25
 if (isupper(c)) (*velka)++;
-
 
26
 
21
  }
27
  }
22
  
28
  
23
  return znaky;
29
  return znaky;
24
}
30
}
25
 
31