ertaboy356b
Old School Gamer
- Reaction score
- 86
I'm learning basic C++ right now and I want to know multithreading on a console..
1. How do I run a script while I wait for input?? The input should be at the bottom of the console.. Also, I want the other thread to clear the top every loop..
So basically what I want is something like this:
2. How do I change text color and background color in console??
3. Can I write scripts on different file seperately and later link it to the main file?? For example, I want script "A" to store my functions but would be needing the headers I linked on my "main.cpp".. How do I do that?
Note: I'm using Windows for now.. I'm using Code::Blocks btw..
1. How do I run a script while I wait for input?? The input should be at the bottom of the console.. Also, I want the other thread to clear the top every loop..
So basically what I want is something like this:
Code:
----------
- -
- -
- - << -- I want the top portion of the screen to update itself while clearing the top portion.
- -
- -
---------- << -- While the bottom portion of the screen is waiting for user inputs.
2. How do I change text color and background color in console??
3. Can I write scripts on different file seperately and later link it to the main file?? For example, I want script "A" to store my functions but would be needing the headers I linked on my "main.cpp".. How do I do that?
Note: I'm using Windows for now.. I'm using Code::Blocks btw..