Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
c++ x 12
c x 1
Member Avatar for Analogsleeper

Hi all, hoping someone can help me with a bit of code problem. I have this simple C++ program that does some processing on a text file with a bunch of numbers in it. I'm reading the numbers into global structures and then doing some math, then overriting those global …

Member Avatar for Analogsleeper
0
210
Member Avatar for Analogsleeper

I have a program where I want to point the same ifstream to another file when I am done using it. Currently, I have it set up something like this (pseudocode): //Global File Name char *mmFileName[50] void calculateISI() { ifstream minmaxFS; //sets the global file name if(condition) setGlobalFileName(); while(//assume true) …

Member Avatar for Analogsleeper
0
373
Member Avatar for Analogsleeper

I am having trouble setting the output format while using a pointer to a Filestream: [CODE] struct statLine{ int id; int primary_type; int secondary_type; double period; double epochnumber; int savedextremenumber; }statLine; void printStatLine(ofstream *FSOptr) { FSOptr->precision(7); *FSOptr << statLine.id << " " << statLine.primary_type << " " <<statLine.secondary_type << " …

Member Avatar for nattylife
0
139
Member Avatar for Analogsleeper

I have a strange number input problem. I am scanning in numbers from a file, like so: [CODE] While(bla){ double temp; minmaxFS >> temp; //do crap } [/CODE] And it works fine until it reaches a number like: 8e-05 (A non-decimal exponential number). Then, it just hangs up and scans …

Member Avatar for Dave Sinkula
0
237
Member Avatar for Analogsleeper

Hi, I have a somewhat odd and complicated question. Some background: I am trying to open up a file which contains formatted numerical data, find certain elements, and then overwrite these elements with corrected data. So, my plan was to just iterate until I found the data, use .tellg() to …

Member Avatar for Dave Sinkula
0
144