Hello all,
I'm having a slight issue with my code doing what I want it to (story of my life) and was trying to see if anyone had some ideas. I was trying to use a simple for loop to accomplish my goal.
the only issue i'm having is with the part of code that generates timepoints. I'd like to generate each time point based off of (n=#) by having a starting integer and divide it by n and if that variable equals a whole number like 1.0, 2.0 to insert the time points (to be coded later). With my code now, all I get are a bunch of zeros for the variable when printed with std::cout.
//============================================================================
// Name : Hello.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : LABEL XML C++, Ansi-style
//============================================================================
one other quick question then. How would I go about getting a file.open(data.txt) to write in new lines on the file. \n works great for on screen, but writing to a txt file just gets interp. to nothing or a space (as I haven't sat there counting spaces). Any ideas on what the correct function/command I could use?