Go Back   Pace and Cap - Sartin Methodology & The Match Up > General Discussion
Get RDSS
Google Site Search Get RDSS Sartin Library RDSS FAQs Conduct Register Site FAQ Members List Today's Posts

General Discussion General Horse Racing Discussion

Reply
 
Thread Tools Display Modes
Old 05-30-2011, 09:31 PM   #1
smilingtiger
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.
smilingtiger is offline   Reply With Quote
Old 05-31-2011, 01:44 PM   #2
mikesal57
Grade 1
 
mikesal57's Avatar
 
Join Date: May 2008
Location: Staten Island, NY
Posts: 3,952
you might try paceadvantage.com

theres more programmers there than here
__________________
Never bet a favorite doing something for the first time-Harvey Pack
mikesal57 is offline   Reply With Quote
Old 05-31-2011, 04:09 PM   #3
Ted Craven
Grade 1
 
Ted Craven's Avatar
 
Join Date: Jun 2005
Location: Nanaimo, British Columbia, Canada
Posts: 9,265
Hi,

I second Mike's advice. You may also wish to try a Private Message to member 'The Programmer', Randy Kovach, who I believe currently develops software in C++. I myself don't use that language.

Good luck!

Ted
__________________

R
DSS -
Racing Decision Support System™
Ted Craven is offline   Reply With Quote
Old 06-04-2011, 04:47 PM   #4
smilingtiger
AlwNW2X
 
Join Date: Jun 2008
Posts: 24
I found the file. In my compiler, when I went to look for the file, the button on the bottom said 'All Known Files' are shown. My file wasn't there in that directory. I assumed that I was being shown 'ALL' files. I wasn't. I clicked the arrow on the button on the bottom; then I clicked 'All files'. My file was in there.
smilingtiger is offline   Reply With Quote
Old 06-04-2011, 10:15 PM   #5
TheProgrammer
AlwNW3X
 
Join Date: Apr 2008
Posts: 37
No, I code in C#, haven't used C++ for years.
__________________
If living life were easy, everyone would be doing it. - anon
TheProgrammer is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

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


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.

All times are GMT -4. The time now is 08:45 PM.