@Handy Andy,
I see, thanks!
@dutch,
Oops, my mistake. I meant to say JavaScript, thanks for correcting.
And, I was just copying and pasting from an example off of the Internet for the
system("c:\\temp\\table.html");
, so I didn't really know what it did. Thanks for clarifying that.
How would I pass
-std=c++11
to the compiler? Through the command line, or in the program itself? (I don't have an IDE, so I have to use the command line for basically everything).
Thanks!
max
Edit:
I tried your suggestion, I tried Safari and Google Chrome, BUT...
1 2 3
|
// my default browser is Safari
// I also tried google chrome
system("safari table.html");
| |
.
Neither of those worked.
Any other ideas?
Edit 2:
What do you know?
After my first edit, I got to thinking, well, all its doing is opening the file, right? So, I tried using "open" like so:
|
system("open table.html");
| |
And what do you know, it worked!
@dutch, @Ganado, @Handy Andy, thanks guys!
max
P.S.
If you want to run it for yourselves, copy and paste
ofstream outFile("table.html");
into line 91 of my original code, and then copy and paste
system("open table.html");
into line 98 of the original code. Actually, I'm kind of curious to see if my edit will work on Windows or Linux.