Search:

Type: Posts; User: axe

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    2,171

    they are in separate lines.. as: it to and...

    they are in separate lines..
    as:
    it
    to
    and
    and
    on
    to
  2. Replies
    11
    Views
    2,171

    int main() { FILE *fp; FILE *fq; ...

    int main()
    {
    FILE *fp;
    FILE *fq;
    char c[100],raw_data[10000];
    char *get;
    char file_data[50000];
    int n,i,j; int line, *found;
    struct Inode *head=NULL, *tail;
    ...
  3. Replies
    11
    Views
    2,171

    i also tried using array of chars but got the...

    i also tried using array of chars but got the same results...
  4. Replies
    11
    Views
    2,171

    I used the following but still gave the same...

    I used the following but still gave the same results... U have an idea why?
    for(i=0;i<count;i++)
    {
    for(j=0;j<k;j++)
  5. Replies
    11
    Views
    2,171

    Both inputs are in from a file.... i tried...

    Both inputs are in from a file.... i tried correcting the strcmp "if(!strcmp(aqq[i],arr[j]))" but they and all the counts print only zeros.. something like ...

    The output
    *********
    0 times for: ...
  6. Replies
    11
    Views
    2,171

    Counting elements in array

    I need some help in finding elements in array "aqq" that matchs with those in "arr"
    My code just prints found as zero...

    say aqq has {and, go, to, the, nowhere}
    arr has {it, to, and, and,...
  7. Replies
    13
    Views
    15,385

    wow!! sweet!! thanks!!

    wow!! sweet!! thanks!!
  8. Replies
    13
    Views
    15,385

    But i need to reset found to =0 but i am...

    But i need to reset found to =0 but i am comparing using more that one string

    say aqq has {and, go, to, the, nowhere}
    arr has {it, to, and, and, and, on, to, the, and, go, go, go}
  9. Replies
    13
    Views
    15,385

    How to Compare elements in arrays

    I need some help in finding elements in array "aqq" that matchs with those in "arr"
    My code just prints found as zero

    for(i=0;i<count;i++)
    {
    found=0;
    for(j=0;j<k;j++)
    {...
  10. Thread: Help with Arrays

    by axe
    Replies
    2
    Views
    809

    okay!! i got it!!

    okay!! i got it!!
  11. Thread: Help with Arrays

    by axe
    Replies
    2
    Views
    809

    Help with Arrays

    I am tryin to store strings in an array "aqq" but when i copy to **ar and print it only prints the last element... lets strings are :

    we
    you
    it
    not

    only prints "not" 4 times

    ...
  12. Replies
    3
    Views
    1,080

    How set every entry in your big array

    who knows why the while loop prints correctly while does not proceed to print with the for loop ??...


    char *aqq[30000];
    while(fgets(c,sizeof(c),fq)!=NULL)
    {
    aqq[count]=c; count++;...
  13. Replies
    5
    Views
    1,244

    note

    note
  14. Replies
    5
    Views
    1,244

    yes... i did look at the first one and i had a...

    yes... i did look at the first one and i had a problem applying strcpy thatz why i tried alil different one... it compiled but when i try to print in a separate loop, it prints only the last...
  15. Replies
    5
    Views
    1,244

    Character pointer arrays

    I am tryin to store strings in an array **ro in vain.... any idea why it gives a compile time error..

    char **ro;
    while(fgets(c,sizeof(c),fq)!=NULL)
    {
    *ro=c;
    ro++;
    }
  16. Replies
    1
    Views
    918

    Character pointer arrays

    who knows why the while loop prints correctly while does not proceed to print with the for loop ??...
    char *aqq[30000];
    while(fgets(c,sizeof(c),fq)!=NULL)
    {
    aqq[count]=c; count++;
    ...
  17. Replies
    2
    Views
    1,950

    here are the array declarations... don't know how...

    here are the array declarations... don't know how to stop posting entire post in code tags..




    char *arr[30000];

    temp=strtok(NULL,delimiters);
    arr[k]= (char*)temp;
  18. Replies
    2
    Views
    1,950

    Comparing elements of character pointer arrays

    I have arrays *arr and *aqq. I am trying to find the occurence of similar elements(strings) in the arrays...

    this won't work..
    for(i=0;i<=count;i++)
    {
    found=0;
    ...
  19. Replies
    2
    Views
    1,272

    thanks.... that worked!!

    thanks.... that worked!!
  20. Replies
    2
    Views
    1,272

    Character array pointer

    I am trying to store tokens in the 'arr' array but it prints wrong stuff... do you mind also explaining why it prints garbage?

    char *arr[30000];
    const char *delimiters=";,.1234567890 ";
    ...
  21. Replies
    2
    Views
    4,466

    Wow!! that worked...... thanks zacs7

    Wow!! that worked...... thanks zacs7
  22. Replies
    2
    Views
    4,466

    Help with character array pointer and strcmp

    It gets words from a file, each word from each line and i want to find out if the word "and" is in the list... can someone help me?

    int z=0;
    char *word="and";
    ...
  23. Replies
    5
    Views
    1,361

    hey, I have tried to fix the code but i still...

    hey,

    I have tried to fix the code but i still get erros from the static fuctions, any idea?
  24. Replies
    5
    Views
    1,361

    I need Help with Double linked list

    i have a problem trying to fix the following errors with dll.h . I need assistance.

    dll.h:46: two or more data types in declaration of `dllInit'
    dll.h:46: two or more data types in declaration of...
  25. Thread: scanf and getchar

    by axe
    Replies
    7
    Views
    2,603

    hi, ok how about the following that i cannot...

    hi,

    ok how about the following that i cannot get the Longest run count:

    main()
    {
    int x,c;
    int count,num=0,best=0 ;
    char *tok, buff[BUFSIZ];
    count = 0 ;
Results 1 to 25 of 37
Page 1 of 2 1 2