I've been fooling around with some things and have come to a situation I'm not sure how to deal with.
I'm using code::blocks in xp with the curses library.
I have a function:
Code:
void type(int row, int col, char mesg[256], int delay)
{
for(int i=0;i<strlen(mesg);++i)
{
mvprintw(row, col+i, "%c", mesg[i]);
refresh();
Sleep(delay);
}
}
It prints your message at row,col on the console one letter at a time, waiting a little bit between each letter.
This works fine, but what I want to do is type out two messages simultaneously.
I've looked around google and these forums but everything I've seen on multithreading is way over my head. So I suppose what I'm looking for is an easy to understand method of running two instances of a function simultaneously, or a multithreading lesson aimed at semi-new programmers.
Thanks.