Can you Help me!!!
The first fist half of the code are reading the File, that is correct, so I just post my main function which is incorrect somehow:
int main(void)
{
int count, c, i, spaces, char[27];
for (i = 0; i < 27; ++i) {
count = 0;
while((c=getcha r()) != EOF) /* count the letter */
if(isupper(c) && islower(c))
charArray[i]++;
while('a'<=c<=' z'...
User Profile
Collapse
-
The first fist half of the code are reading the File, that is correct, so I just post my main function which is incorrect somehow:
int main(void)
{
int count, c, i, spaces, char[27];
for (i = 0; i < 27; ++i) {
count = 0;
while((c=getcha r()) != EOF) /* count the letter */
if(isupper(c) && islower(c))
charArray[i]++;
while('a'<=c<=' z'
'A' <= c <=...Leave a comment:
-
Please some one help me! the first thing of the problem is to count letters, regardless about the capital or small and spaces, cormas, numbers as one catagories that means the array side are 27 second things is to count sequences, the 2 letters that are together for example aa, ab, ac etc that means I need a 2 D array, But I don't know how to correct my code. So some one please help me!!!!Leave a comment:
-
But if I only use single array I can't count the sequence? And the question need 2 D array!Leave a comment:
-
The code:
++char[c -> 'A' && c -> 'a' && c->’ ‘];
I want the code do the following things:
character can be counted as they are capital letter and small letter and spaces.
But the gcc compiler said this is parse errors before 'A', and 'a', and' ' . I don't know how to correct it!Leave a comment:
-
I mean the capital and small letter doesnt count as seperately!Leave a comment:
-
i need your help Banfa!!!!
the problem is to count the letters and sequence from a file. the fist thing of my code is to read file and in the main function i create is to count the characters and sequence by using 2 dimension array.
where the character include letters and spaces.
I am just learning c language at the moment, i have problem with following program:
#define TRUE 1
#define FALSE 0
#define MAX_LENGTH 100000 /* Max number of chars... -
Count the letters and sequence from a file
the problem is to count the letters and sequence from a file. the fist thing of my code is to read file and in the main function i create is to count the characters and sequence by using 2 dimension array.
where the character include letters and spaces.
I am just learning c language at the moment, i have problem with following program:
#define TRUE 1
#define FALSE 0
#define MAX_LENGTH 100000 /* Max number of chars... -
I raelly need yours help to corrcted my code!!!!
the problem is to count the letters and sequence from a file. the fist thing of my code is to read file and in the main function i create is to count the characters and sequence by using 2 dimension array.
where the character include letters and spaces.
I am just learning c language at the moment, i have problem with following program:
#define TRUE 1
#define FALSE 0
#define MAX_LENGTH 100000 /* Max number of chars... -
the problem is to count the letters and sequence from a file. the fist thing of my code is to read file and in the main function i create is to count the characters and sequence by using 2 dimension array.
where the character include letters and spaces.Leave a comment:
-
counting letters and sequence
I am just learning c language at the moment, i have problem with following program:
#define TRUE 1
#define FALSE 0
#define MAX_LENGTH 100000 /* Max number of chars read from file */
#include <stdio.h>
#include <ctype.h>
int Get_String_From _File(char filename[], char input[])
/* Reads in characters (including \n) from a file as one long string */
/* filename should give...
No activity results to display
Show More
Leave a comment: