User Profile

Collapse

Profile Sidebar

Collapse
euniceno1
euniceno1
Last Activity: Nov 16 '06, 06:16 AM
Joined: Oct 25 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • euniceno1
    replied to i need your help Banfa!!!!
    in C
    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'...
    See more | Go to post

    Leave a comment:


  • euniceno1
    replied to i need your help Banfa!!!!
    in C
    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 <=...
    See more | Go to post

    Leave a comment:


  • euniceno1
    replied to i need your help Banfa!!!!
    in C
    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!!!!
    See more | Go to post

    Leave a comment:


  • euniceno1
    replied to i need your help Banfa!!!!
    in C
    But if I only use single array I can't count the sequence? And the question need 2 D array!
    See more | Go to post

    Leave a comment:


  • euniceno1
    replied to i need your help Banfa!!!!
    in C
    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!
    See more | Go to post

    Leave a comment:


  • euniceno1
    replied to i need your help Banfa!!!!
    in C
    I mean the capital and small letter doesnt count as seperately!
    See more | Go to post

    Leave a comment:


  • euniceno1
    started a topic i need your help Banfa!!!!
    in C

    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...
    See more | Go to post

  • euniceno1
    started a topic Count the letters and sequence from a file
    in C

    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...
    See more | Go to post

  • euniceno1
    started a topic I raelly need yours help to corrcted my code!!!!
    in C

    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...
    See more | Go to post

  • euniceno1
    replied to counting letters and sequence
    in C
    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.
    See more | Go to post

    Leave a comment:


  • euniceno1
    started a topic counting letters and sequence
    in C

    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...
    See more | Go to post
No activity results to display
Show More
Working...