Search:

Type: Posts; User: bab27

Search: Search took 0.01 seconds.

  1. Thread: Binary files

    by bab27
    Replies
    5
    Views
    205

    Thanks a lot for the tips. Especially the fread...

    Thanks a lot for the tips. Especially the fread and fwrite. I will try different codes using both ways and see how they work out.
  2. Thread: Binary files

    by bab27
    Replies
    5
    Views
    205

    Still, when I call the function it does not write...

    Still, when I call the function it does not write the content in the new file.
  3. Thread: Binary files

    by bab27
    Replies
    5
    Views
    205

    I didn't even realize not calling it. Thanks!!...

    I didn't even realize not calling it. Thanks!!
    The function calls fread to get the the contents of the first file and uses fwrite to copy it to the new file
  4. Thread: Binary files

    by bab27
    Replies
    5
    Views
    205

    Binary files

    Hello,
    I am trying to copy the contents from file fp to fout using fread and fwrite only but it is not working. Please can someone help me figure out what i am doing wrong. The issue is with the...
  5. Thread: dynamic stack

    by bab27
    Replies
    5
    Views
    159

    - The input is the first value pushed in because...

    - The input is the first value pushed in because the stack is originally empty with a capacity of one.
    - When the stack gets full the program has to create another stack whose capacity is twice...
  6. Thread: dynamic stack

    by bab27
    Replies
    5
    Views
    159

    dynamic stack

    Hello Please i need help with this code. I am not sure of what i did wrong but it does not generate the required result, and I am trying to do it without using a struct. Can someone help me figure...
  7. Replies
    3
    Views
    240

    For example if the first string is 'burger' and...

    For example if the first string is 'burger' and the second string is 'b' it should report 0, which is the index of the first occurrence in the first string. But 'u' reports not found instead of 1 ....
  8. Replies
    3
    Views
    240

    functions with char pointer

    Hi i need help please,
    the main program below uses a ”helper” function substr() to determine and report if the secondstring that the user enters is ”contained in” the first string. I need to use a...
  9. Replies
    5
    Views
    256

    It ran fine when i used scanf() but i will try...

    It ran fine when i used scanf() but i will try with fgets(). Thanks for the tip!
  10. Replies
    5
    Views
    256

    I was able to implement it with a while loop and...

    I was able to implement it with a while loop and nested if but i do not have access to code now.
  11. Replies
    5
    Views
    256

    char pointer with for loops

    Hi, I need help with this please.
    I am trying to get the function to determine if the second string entered by the user is contained in the first string by defining the substr() function. I was able...
Results 1 to 11 of 11