Im trying to make a simple application launcher using C++.
I have looked online and i can't find a specific answer i have found multiple questions and items that i have pieced together to make something but i can't get it to work, can anyone help?
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
int textin;
cin >> textin;
if ( textin == "ATLauncher" ) { system("C:\Users\NAME\Main\minecraftlaunchers\AtLauncher\ATLauncher.exe");
system ("pause");
return 0;
}
}
(Note I'm not used to StackOverFlows formatting so the code may seam "messed up" Also using ")
Aucun commentaire:
Enregistrer un commentaire