Im using the Dev-Cpp compiler. Im trying to create a program like the one below...
#include <iostream>
#include <windows.h>
#include <stdio.h>
#include <iomanip>
#include <fstream>
#include <stdlib.h>
using namespace System;
using namespace System::IO;
using namespace std;
int main() {
string *com2;
wchar_t com;
char loop;
loop = 'a';
while(loop = 'a') {
system("CLS");
cin >> com;
if(com = 'deldir.') {
cout << "directory to delete: ";
getline(cin,com2);
Directory::Delete(com2, true);
}
else
{
cout << "Invalid Command..." << endl;
Sleep(2000);
}
}
return 0;
}
It doesn't work. Do I need headers #using <mscorlib.dll> or #include <tchar.h>?
I can't figure it out, thanks in advance...