Im currently trying to do a terminal application for a learning project, this is my first real c++ program. I know the basics of code, but i don't understand how this is not working. 

So my program should take a input string, parse it into a array of words, and do checks on those words as shown in the bottom of the program.

Here's what i have got currently, the program is not 100% debugged since i rewrote it on my phone and had no chance to compile it...:

```
#include <iostream>  

bool isRunning; 
char* input;  

int main() {     
    isRunning = true;      

    while (isRunning) {     
        // Get input    
        std::cout << ">";   
        std::cin >> input;      

        // Separate by space    
        char* words[];  
        int ctn = 0;    
        char* word = "";  

        for (auto c : input) {      
            if (c == ' ') {                 
                words[ctn] = word;                
                ctn++;                 
                word = "";      
            } else {                
                 word = word + x;       
            }
        }   
        words[ctn] = word;  
        ctn++;      

        // Log the words    
        for (auto word : words) {       
            std::cout << word << std::endl;     
        }

        // - Command checks
        // Exit command     
        if (words[0] == "exit") {       
            isRunning = false;  
        }   

        // Say command
        if (words[0] == "say") {
            if (words[1] != null) {
                std::cout << "[Say]:" << words[1] << std::endl;
            } else {
                std::cout << "Error: Argument missing!" << std::endl;
            }
        }

     }  

system("pause");
return 0; 
}

```