Bad ass. Thanks a lot.
BTW if you ever need help with your physics homework (assuming you have any) post in SciForums.com, or scienceforums.n et, and send me a PM.
User Profile
Collapse
-
Make C++ execute a UNIX command
Ok---I was wondering...Is there any way to make C++ execute a UNIX command?
Like, I generate LaTeX files in my code, file.tex. Then I need to compile the .tex files with ``pdflatex file.tex'' which generates a pdf file, and makes life oh so beautiful.
Is there a way I can get C++ to tell UNIX to do this without me having to type it in every single time? -
-
Also, in LaTeX, the endline character is `\\', but when I do
myfile << data << "\\" << endl;
C++ only prints out
"data\".
I'm assuming that both problems have similar solutions.
Thanks again for answering my stupid quesitons!Leave a comment:
-
Easy cout question
I'm trying to write a subroutine to send all of the tables my program generates into a file which I can compile using LaTeX, which will make comparissons easier. The problem is that the compiler doesn't like me to use things like
myfile << "\begin{tab le}" << endl;
because aparently "\b" means something. Is there an easy way to make C++ NOT recognize \b as anything other than slash b... -
Thank you for your reply.
First, I am pretty tied to using vectors and rational numbers, for now. I am getting started in a research program, and the code is currently written using these classes. In the future, once I've my feet under me, I will certainly look into these things. We will be dealing with large sets of data, and optimization is definitely a concern in the future.
Second, I am still confused about how...Leave a comment:
-
I have decoded the declaring things part, I still don't know how to PASS vectors of rational numbers (or even rational numbers) between functions.
Thank again in advance.Leave a comment:
-
Boost Rational Number Package for C++
Hello all. I will probably be frequenting these discussions in the future. I am a graduate student in physics learning C++ on the fly.
This is probably an easy quesiton, but my background in this subject is very limited. I have tried a few permutations of what I think SHOULD be right, but the compiler is giving me very cryptic errors (like 'template argument is invalid'). I cannot find any examples of what I want to do on line,...
No activity results to display
Show More
Leave a comment: