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...
_________________________________________
#include <stdlib.h>
#include <iostream>
using namespace std;
const char *directory;
int main(){
cout << "enter directory name: ";
cin >> directory;
system("ls -l");
system("mkdir"+directory);
system("mkisofs -J -o filename.iso "+directory);
return 0;
}
______________________________________________
notice the + directory?? lol...it's obviously wrong...help pls...