Search:

Type: Posts; User: jmoney

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    1,048

    thanks for the help.

    thanks for the help.
  2. Replies
    10
    Views
    1,048

    i understand what you mean but how do i keep it...

    i understand what you mean but how do i keep it from moving to a new character each time?
  3. Replies
    10
    Views
    1,048

    well it seems as if the first two things that are...

    well it seems as if the first two things that are supposed to be in the stack are there, but none of the others are going in. can you see a reason why this could be? is my loop messed up?
  4. Replies
    10
    Views
    1,048

    here is my attempt. i don't know if i'm doing any...

    here is my attempt. i don't know if i'm doing any of this right. i don't get any errors but it doesn't seem to be working right. how can i print my stack to see if the right stuff is going in?


    ...
  5. Replies
    10
    Views
    1,048

    more help reading characters and using stacks

    i need some help. i have to make a program that will read the characters "{ } [ ] ( ) < >" from a file and the pop only those characters onto a stack. can anyone help me with this?
  6. Replies
    10
    Views
    1,535

    nevermind, i figured it out. thanks to whoever...

    nevermind, i figured it out. thanks to whoever helped.
  7. Replies
    10
    Views
    1,535

    >>After that I would loop over a call to fgetc...

    >>After that I would loop over a call to fgetc until I reached EOF and if I see that certain character, increment a counter.

    how do i do that?

    this is what i have:


    int main ()
    {
    ...
  8. Replies
    6
    Views
    2,404

    yeah i guess it works either way

    yeah i guess it works either way
  9. Replies
    6
    Views
    2,404

    thanks

    thanks
  10. Replies
    6
    Views
    2,404

    well how would i be able to put a user specified...

    well how would i be able to put a user specified file in there? would it be c:filename?
  11. Replies
    6
    Views
    2,404

    file doesn't open

    when i try to open a file for example c:\file.txt it will not open. here is my code.



    int main ()
    {
    char c; /* User defined character */
    char filename[50];
    int num =...
  12. Replies
    10
    Views
    1,535

    thanks but i have another dumb question. say the...

    thanks but i have another dumb question. say the file i want to open is C:\file.txt. what would the user have to type in to use that file? i tried run what you showed me to see how it worked and i...
  13. Replies
    10
    Views
    1,535

    how exactly do you use fgetc and gets? sorry for...

    how exactly do you use fgetc and gets? sorry for the stupid questions.
  14. Replies
    10
    Views
    1,535

    reading from other files one char at a time

    i need help with:

    1) getting a string the user types in and using that string to open an input file.

    2) reading that input file one character at a time to print out how many times a certain...
Results 1 to 14 of 14