Search:

Type: Posts; User: Hana Nasser

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    629

    thank you guys but none of these really helped...

    thank you guys but none of these really helped me
    if any of you have idea about method #1 or #2 please help


    thanks
  2. Replies
    8
    Views
    629

    thank you C99tutorial but can you explain in c...

    thank you C99tutorial
    but can you explain in c how to implement it ? or in pseudocode ?

    thanks
  3. Replies
    8
    Views
    629

    correct word checking

    hello ..
    i have this problem i wanna find out how to do it :

    for example : if a have a list of ( incorrect words ):

    nce //should be nice // one letter missing
    heree // should be here // one...
  4. Replies
    3
    Views
    3,947

    check if the word exists in file

    hello ..
    i have a question
    i have file of words ( dictionary) and i have another file(list) with list of words that could be or could not be in (dictionary)
    so i need to read from (List) and...
  5. Thank you

    Thank you
  6. trying to read from file of integers into 2D array

    hello again ..
    so i have this text file of integers :


    3
    1
    -1
    4
    -9
    2
  7. Replies
    7
    Views
    487

    it's a text file containing : 3 1 -1 4...

    it's a text file containing :


    3
    1
    -1
    4
    -9
    2
    2
  8. Replies
    7
    Views
    487

    simple reading from file in C

    hello

    i want to read a file (text) of integers and print out the contents .

    here is my code


    #include<stdio.h>
    #include<stdlib.h>
  9. yes i fixed these errors ( semicolons , arguments...

    yes i fixed these errors ( semicolons , arguments ..)
    this is the code


    void printHistogram ( int *hist,int freq, int n );

    /**
    * This program requests data from the user and then
    *...
  10. thanks I fixed it .. but still not working :(

    thanks I fixed it ..
    but still not working :(
  11. hello again .. as i said i tried to declare a...

    hello again ..
    as i said i tried to declare a new array called freq .. to count the frequencies of each number enters the array
    here is what i have :


    void printHistogram ( int *hist,int...
  12. Ok I'm sure that i should use a counter after...

    Ok I'm sure that i should use a counter after reading each number into the array. the counter must be


    int count[i]=0;
    .
    .
    .
    after reading into array
    count[i]++;
  13. by using a sort of counter ? I'm thinking about...

    by using a sort of counter ?
    I'm thinking about a new counter array but i'm still thinking how to use it
  14. so now i understand there is not point of ...

    so now i understand there is not point of


    int hist [10]


    i deleted this tricky addition ..
    and fix the code to :
  15. i have read some of your replies to other people...

    i have read some of your replies to other people ... you don't have to insult people every time :)
    answering your questions :
    i didn't steal any one's code ( you always say that in your posts :) ) ...
  16. Replies
    16
    Views
    1,382

    my brain is literally stopped this is what i...

    my brain is literally stopped
    this is what i came with:


    for(i=0;i<10;i++)
    if (list[i]==s)
    {
    printf("%d is found at location %d\n", s,i+1);
    break;
    }
  17. Replies
    16
    Views
    1,382

    i think so .. but apparently sth is wrong since...

    i think so .. but apparently sth is wrong since it's not working in this case.
  18. Replies
    16
    Views
    1,382

    i tried using break statement after each printf...

    i tried using break statement after each printf statement


    for(i=0;i<10;i++)
    if (list[i]==s)
    {
    printf("%d is found at location %d\n", s,i+1);
    break;
    }
    else
  19. problem printing histogram about number frequencies

    hello everyone ...

    i have this program .. i tried to make it work to give me this result
    output:


    input array {1,3,5,1,1,8,6,6,1,3,2,1,6,8,8}
    [0]
    [1] *****
    [2]*
  20. Replies
    16
    Views
    1,382

    i tried to use curly braces {} before and after...

    i tried to use curly braces
    {} before and after the print statement ... i tried using break; statement nothing work !
    can you please be more specific and tell me what to do to avoid that ? thank...
  21. Replies
    16
    Views
    1,382

    i'm still getting wrong output .. if any one...

    i'm still getting wrong output .. if any one could help me fixing the problem..

    input example
    Please enter 10 positive numbers in ascending order:
    技12
    技14
    技20
    技30
    技36
    技100
  22. Replies
    16
    Views
    1,382

    you are right , it must return -1 and a msg says...

    you are right , it must return -1 and a msg says number isn't found if the search failed ... and return the location of the number if number was found.
  23. Replies
    16
    Views
    1,382

    this is what i get .. searching for number 3 ...

    this is what i get .. searching for number 3

    Please enter 10 positive numbers in ascending order:
    技1
    技2
    技3
    技4
    技5
    技6
    技7
  24. Replies
    16
    Views
    1,382

    this is the last modification : ...

    this is the last modification :


    #include<stdio.h>

    int searchLinear(int s,int *list, int n); //definition of first function..
    int searchBinary(int s,int *list, int n); //definition of second...
  25. Replies
    16
    Views
    1,382

    yes you are RIGHT ! i got rid of warnings now .....

    yes you are RIGHT !
    i got rid of warnings now .. but still have the other problems

    thanks !!
Results 1 to 25 of 45
Page 1 of 2 1 2