Search:

Type: Posts; User: jed

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    2,267

    deleting ifstream line

    hello,
    I have a scanner that I need to tweak. This one section scans a line and I need it to delete what ever it takes in if its between the comment sign. { delete this}. here is the block of code...
  2. Replies
    2
    Views
    1,463

    The devil's in the details, should have seen...

    The devil's in the details, should have seen that! thanks a bunch..
  3. Replies
    2
    Views
    1,463

    Print to file issue

    After going through this numerous times and making changes, I can't seem to figure out why this is not printing to the ofstream file.




    #include <iostream>
    #include <fstream>
    ...
  4. Thread: Reading a word

    by jed
    Replies
    3
    Views
    915

    Reading a word

    I have this simple problem that I can't figure out. I'm trying scan in a text doc. and look for particular words. What would be the best way? I've tried using
    get() and put it in a loop but it only...
  5. Replies
    7
    Views
    1,143

    If the file doesn't open, shouldn't it tell me so?

    If the file doesn't open, shouldn't it tell me so?
  6. Replies
    7
    Views
    1,143

    I have the text file in the same directory and...

    I have the text file in the same directory and name is correct. Can I specify a path to my desktop?
  7. Replies
    7
    Views
    1,143

    text file won't show

    I'm trying to get this to read a text file that I have and print it out on the screen, when I run it, it shows a blank screen. What am I missing?

    #include <iostream>
    #include <fstream>
    #include...
  8. Thread: fstream

    by jed
    Replies
    5
    Views
    1,641

    Will the ofstream a_file("example.txt");...

    Will the

    ofstream a_file("example.txt");
    automatically create a text file in the same folder?
  9. Thread: fstream

    by jed
    Replies
    5
    Views
    1,641

    From the tutorial: why is it that it only outputs...

    From the tutorial: why is it that it only outputs "this", why is it that its not displaying the whole text. How can you get it to read and display the whole file?


    #include <fstream>
    #include...
  10. Replies
    1
    Views
    878

    Parser without a generator

    How does a parser take the tokens and arrange them into a tree? Does anyone have a generic code with good notes?
  11. Replies
    10
    Views
    1,251

    Location of ofstream

    When using

    ifstream a_file("text.txt"); where does the text.txt file have to be located in order for it to be read?
  12. Thread: fstream

    by jed
    Replies
    5
    Views
    1,641

    fstream

    When using
    ofstream a_file("example.txt"), how could you get that to save as a text file to your desktop? Do you have a specific place where that goes?
  13. Thread: simple Lexing

    by jed
    Replies
    2
    Views
    1,545

    simple Lexing

    From what I've gotten so far as to how the lex portion of a compiler works is this. Its not much at all but would this be what a simple scanner would look like? Anyone had experience with writing...
  14. Thread: Print problem

    by jed
    Replies
    3
    Views
    1,023

    Print problem

    I'm trying to figure what the problem might be with this. It is suppose to print a list of the tokens for what ever file is input but it won't.


    #include <iostream>
    #include <fstream>
    ...
  15. Thread: Refresher..

    by jed
    Replies
    6
    Views
    1,835

    Would anyone have some simple lex and pars codes...

    Would anyone have some simple lex and pars codes that I can look at and get an idea? thanks
  16. Thread: Refresher..

    by jed
    Replies
    6
    Views
    1,835

    Lex/parser generator for C++

    Where could I find a generator for C++ environment? Are there any sharewares out there? thanks a bunch.
  17. Thread: Refresher..

    by jed
    Replies
    6
    Views
    1,835

    Refresher..

    I haven't coded for a couple of years now and when I did, I wasn't the greatest but I got by. I have a couple of problems that I have to figure out. First being, how would you get a program to print...
Results 1 to 17 of 17