Search:

Type: Posts; User: code_lover

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,186

    I have sorted it out . Thanks .

    I have sorted it out .
    Thanks .
  2. Replies
    3
    Views
    1,186

    Sorting Strings

    I am trying to sort names .I don,t really know whats wrong with the
    below code. I will appreciate any help.Thanks.




    char copy_name[sir_count];
    int j;
    for( counter = 0 ;...
  3. Replies
    3
    Views
    1,035

    Since arguments are strings ....Is there not any...

    Since arguments are strings ....Is there not any how I can pass an argument or string as a parameter to my function above ???
  4. Replies
    3
    Views
    1,035

    Reading Characters of an argument.

    Greetings ,
    I wrote a function that will be removing non alpha characters and copy name or word for name .My problem is I am confused how to pass the argument or string to my function so that...
  5. Replies
    21
    Views
    15,223

    Thanks , I understand that . That shouldn't be...

    Thanks , I understand that .
    That shouldn't be the problem because the argc of the argument i am trying to access is not even close to the end of the file .
    well thanks all .
  6. Replies
    21
    Views
    15,223

    I don,t understand . passing argv[i+2] , lets say...

    I don,t understand . passing argv[i+2] , lets say i at that moment is 2 , then argv[i+2] is still the same with argv[4]
    Please clear me on this ,Thanks
  7. Replies
    21
    Views
    15,223

    If I can't do argv[i+1] , how do I get access to...

    If I can't do argv[i+1] , how do I get access to the next argv if I can,t wait for the statement to return to the loop.
  8. Replies
    21
    Views
    15,223

    I get errors on the second file.

    I get errors on the second file.
  9. Replies
    21
    Views
    15,223

    Hello can I get a help on this please, The...

    Hello can I get a help on this please, The program complied and ran , it worked and outputed something on the first file , but I get errors saying


    Program received signal EXC_BAD_ACCESS, Could...
  10. Replies
    21
    Views
    15,223

    Ok. I gat it , I thank I need to count what am...

    Ok.
    I gat it , I thank I need to count what am trying to copy , then allocate memory for that .
    I think that will solve my problem .
  11. Replies
    21
    Views
    15,223

    Thanks , I want to copy many argv , i.e i want to...

    Thanks , I want to copy many argv , i.e i want to copy the names


    mr james and john .
    mr james , isaac .


    the names (james, john , isaac )
    my problem is that I don,t know the size of what...
  12. Replies
    21
    Views
    15,223

    Hi, Thanks for your reply. Can you please...

    Hi, Thanks for your reply.


    Can you please explain this a little bit to me .


    dest = malloc( strlen( argc[ x ] ) + 1 );


    Is malloc allocating memory locating memory enough for one...
  13. Replies
    21
    Views
    15,223

    copying argv

    Hello ,
    I want to copy argv as strings , I don,t know the size of the arguments .
    example .
    these are command line arguments


    mr james and john .
    mr james , isaac .
  14. Thread: Loop

    by code_lover
    Replies
    18
    Views
    1,996

    from my code .....I expected after the inner...

    from my code .....I expected after the inner while loop ,It will return to the upper while loop ....Thats what i am confuse about!!
  15. Thread: Loop

    by code_lover
    Replies
    18
    Views
    1,996

    while(ch!=' ') { ...

    while(ch!=' ') {

    fseek ( input_file , go , SEEK_SET );
    ch=fgetc( input_file );
    fputc (ch, output_file);
    go++;
    ...
  16. Thread: Loop

    by code_lover
    Replies
    18
    Views
    1,996

    In the above code, I am only getting the last...

    In the above code, I am only getting the last word from the input file instead of whole word.......
  17. Thread: Loop

    by code_lover
    Replies
    18
    Views
    1,996

    This is my code #include ...

    This is my code



    #include <ctype.h>
    #include <stdbool.h>
    #include <stdio.h>
    #include <stdlib.h>

    int main(int argc , char **argv[ ] ) {
  18. Thread: Loop

    by code_lover
    Replies
    18
    Views
    1,996

    Loop

    Can someone clear me on this .....I have a while loop inside an if statement...






    while(......) { // First while loop
    ......;
    ......;
  19. Replies
    12
    Views
    6,683

    I thought I will get ideas here ,well its...

    I thought I will get ideas here ,well its unfortunate !!
  20. Replies
    12
    Views
    6,683

    I understand I have to stop reading a word after...

    I understand I have to stop reading a word after i see '\n' but I am confused going from the beginning of the word to the end and copying the word!!
  21. Replies
    12
    Views
    6,683

    No reversing words not character .....

    No reversing words not character .....
  22. Replies
    12
    Views
    6,683

    Thats why I am here ...I need idea what to do...

    Thats why I am here ...I need idea what to do next ...
  23. Replies
    12
    Views
    6,683

    This is reading the data from input and outputing...

    This is reading the data from input and outputing it to output but my problem here is my code is reversing every characters instead of word.....
  24. Replies
    12
    Views
    6,683

    sorry ....I forgot to post what i have done so...

    sorry ....I forgot to post what i have done so far !!!





    #include <ctype.h>
    #include <stdbool.h>
    #include <stdio.h>
    #include <stdlib.h>
  25. Replies
    12
    Views
    6,683

    Reversing word in a file

    Hi all,

    I am really stuck with this problem, I need help ,ideas......I am reading data from a file and outputing it to another file in a reverse mode. my problem is how to reverse each word ....
Results 1 to 25 of 60
Page 1 of 3 1 2 3