#include<iostream>
#include<windows.h>
#include<string.h>
using namespace std;
main()
{
string kelime="dir";
system(kelime);
}
if i do like this: char kelime[10]="dir";
It is working but i want to do it with string? What is the problem, how can I do it?
system(kelime.c_str());string.hto havestd::string.