J
John Brawley
Greeting again, I've been absent a long time.
I need some help. I've searched the web to little avail.
I have a program that takes a user-entered numerical input of less than six
<long int> numbers at program start.
The program writes a file upon demand (keyboard hit).
Until now I've not needed to name the output files with the input numbers
inserted in the file names.
Now I do, and can't find out how.
I need to:
// void writftvr (double *pdb ... ) {
// ofstream tvrfile; //write a .TVR file
//tvrfile.open("tvrfile.tvr");
Right there above I need to
// tvrfile.open("tvr" +pNum+ ".tvr") ;
(For example. pNum is the <long int>.
I know that won't work.
What _will_ work?)
//if (tvrfile.is_open()) {
Thanks! If anyone knows an URL or standard reference with the info I need,
that'll do.
I can't imagine this is as difficult as it seems to be. In Python it was
easy.
I need some help. I've searched the web to little avail.
I have a program that takes a user-entered numerical input of less than six
<long int> numbers at program start.
The program writes a file upon demand (keyboard hit).
Until now I've not needed to name the output files with the input numbers
inserted in the file names.
Now I do, and can't find out how.
I need to:
// void writftvr (double *pdb ... ) {
// ofstream tvrfile; //write a .TVR file
//tvrfile.open("tvrfile.tvr");
Right there above I need to
// tvrfile.open("tvr" +pNum+ ".tvr") ;
(For example. pNum is the <long int>.
I know that won't work.
What _will_ work?)
//if (tvrfile.is_open()) {
Thanks! If anyone knows an URL or standard reference with the info I need,
that'll do.
I can't imagine this is as difficult as it seems to be. In Python it was
easy.