User Profile

Collapse

Profile Sidebar

Collapse
BenTheMan
BenTheMan
Last Activity: Jun 28 '07, 09:24 PM
Joined: Nov 9 '06
Location: Columbus, Ohio
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • BenTheMan
    replied to Make C++ execute a UNIX command
    in C
    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.
    See more | Go to post

    Leave a comment:


  • BenTheMan
    started a topic Make C++ execute a UNIX command
    in C

    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?
    See more | Go to post

  • BenTheMan
    replied to Easy cout question
    in C
    awesome. Thanks for the replies.
    See more | Go to post

    Leave a comment:


  • BenTheMan
    replied to Easy cout question
    in C
    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!
    See more | Go to post

    Leave a comment:


  • BenTheMan
    started a topic Easy cout question
    in C

    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...
    See more | Go to post

  • BenTheMan
    replied to Boost Rational Number Package for C++
    in C
    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...
    See more | Go to post

    Leave a comment:


  • BenTheMan
    replied to Boost Rational Number Package for C++
    in C
    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.
    See more | Go to post

    Leave a comment:


  • BenTheMan
    started a topic Boost Rational Number Package for C++
    in C

    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,...
    See more | Go to post
No activity results to display
Show More
Working...