![]() |
| ||
| problem with system() function... hello there, im having trouble with the system() function...as much as possible, i would like my program to be dynamic...i created a program that will make an iso file...it will ask the user to input the directory that he would like to compress...the problem is, how do i append this to the system() function...here is my code... _________________________________________notice the + directory?? lol...it's obviously wrong...help pls... |
| ||
| Re: problem with system() function... The easiest way is to make a C++ string and use its concatenation operator (which happens to be the plus operator). Use the c_str method to get the C-style string that's similar to the C++ string you've concatenated that the system function needs. #include <stdlib.h> |
| ||
| Re: problem with system() function... If all that you are going to do is to use C++ to make calls to commands to the CLI , why don't you just make a script in bash with those commands?. |
| ||
| Re: problem with system() function... Quote:
|
| All times are GMT -4. The time now is 11:20 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC