| wolfspy (2) | |
| I would like to somehow have 2 console windows, with the same global varabiles. I would like it to be so that one could be "locked up" until the other "unlockes" it (by interning a password) I am making a text based game. That is why. I am also pretty new to c++ | |
|
Last edited on
|
|
| wolfspy (2) | |
| bump. Please, someone help me with this. | |
|
|
|
| JLBorges (1754) | |
|
> I would like it to be so that one could be "locked up" until the other "unlockes" it > I am also pretty new to c++ Can't you just use a file for this? One process opens the file, writes a value into it, and then closes the file. The other process opens the file, reads the value from it, and then closes the file. | |
|
|
|
| ajh32 (163) | |
| You would be better advised to investigate framework like ncurses. Which OS are you programming on? | |
|
|
|
| strongdrink (456) | |
| If you feel up to it, you could use a network socket. That way you could have the 2 windows on different computers, if you want. | |
|
|
|