Q:

C++ How To open an application using Text Input and If Statements

I'm trying to make a simple application launcher using C++.
#include <iostream>
#include <stdlib.h>
#include <string>
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;
    }
}

Error msgs that appear when using Dev C++

[Error] ISO C++ forbids comparison between pointer and integer [-fpermissive]

A:

system() is one possible std lib call to start a command (see also spawn, exec ...)
you don't quite need to run pause as system should not return until the first command is completed 
in your string \ should be \ \x mean special character x ie \n (new line)

