system is not declared in this scope

So I'm making a program starter, but when I try to run a file it says (at compiling): system was not declared in this scope.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <iostream>

using namespace std;

int main ()
{
    cout<<"Welkom bij exestarter 1.0!\n\n";
    cout<<"Welk programma wil je starten?\n\n";
    cout<<"Druk 1 voor Combat Arms\n";
    cout<<"     2 voor Call of Duty 4: Modern Warfare\n";
    cout<<"     3 voor iTunes\n";

    int a;
    cin>> a;

    switch (a)
    {
        case 1:
        system("C:\\Nexon\\Combat Arms EU\\CombatArms.exe");
        break;

    }
    return 0;
}


help please..

Xander
Alright i got it to work with cstdlib but i only reads the file until combat. how do I make it read spaces?
Topic archived. No new replies allowed.