rendered paste body#include <cstdlib>#include <iostream>#include <string>using namespace std;char str[128] = "";char delims[] = " ";char *result = NULL;void Commands(){ if ( !strcmp( "mkdir", strtok( str, delims ) ) ) { //i need to have it check if mkdir is in str result = strtok( str, delims ); printf( "result is \"%s\"\n", result ); result = strtok( NULL, delims ); printf( "result is \"%s\"\n", result ); } else { cout << "error\n"; }}int main(){ cout << "define str[]: "; gets(str); Commands(); system("PAUSE"); return EXIT_SUCCESS;}