|
|
|
|
|||||||
| Google Site Search | Get RDSSGet RDSS | Sartin Library | RDSS FAQs | Conduct | Register | Site FAQ | Members List | Search | Today's Posts | Mark Forums Read
| General Discussion General Horse Racing Discussion |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
AlwNW2X
Join Date: Jun 2008
Posts: 24
|
c++ programming question
Hi. I don't know which forum I should post this on, so I posted here.
I've written a program based on MPH. In C++. However, I'm a novice at programming. I haven't created files or done sorting. I get the numbers from my screen and sort manually. I'd like to create files. The question is: How do I do so? I've googled and have come up with info that doesn't seem to work. Example: // basic file operations #include #include using namespace std; int main () { ofstream myfile; myfile.open ("example.txt"); myfile << "Writing this to a file.\n"; myfile.close(); return 0; } This does not work. I cannot find a file after running this little program called 'example.txt'. I'm not a programmer; I just need to do this. |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Answering Mike's Question - My Learning Experience With Richie P. | barb craven | RDSS | 14 | 11-26-2011 07:54 PM |
| A Question Posed 1986 | Bob Cochran | General Discussion | 12 | 08-30-2009 08:29 PM |
| Question Concerning "About" Distances... | lueylump | RDSS | 2 | 05-13-2009 05:45 PM |
| QUESTION for the group | Tim Y | General Discussion | 6 | 03-30-2009 12:04 AM |
| Question concerning RDSS screen captures | Dallas4lr | RDSS | 3 | 10-31-2008 11:19 AM |
|