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...
Type: Posts; User: jed
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...
The devil's in the details, should have seen that! thanks a bunch..
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>
...
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...
If the file doesn't open, shouldn't it tell me so?
I have the text file in the same directory and name is correct. Can I specify a path to my desktop?
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...
Will the
ofstream a_file("example.txt");
automatically create a text file in the same folder?
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...
How does a parser take the tokens and arrange them into a tree? Does anyone have a generic code with good notes?
When using
ifstream a_file("text.txt"); where does the text.txt file have to be located in order for it to be read?
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?
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...
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>
...
Would anyone have some simple lex and pars codes that I can look at and get an idea? thanks
Where could I find a generator for C++ environment? Are there any sharewares out there? thanks a bunch.
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...