The problem description is a good start. Now you have to think about how to organize your code. Nothing (much) to do with the language, mostly to do with logic. You will have an int main() just like in C++; and per the instructions, you will need at least four more functions. Perhaps you will want a data structure to hold the results of the run so a function can print them out. Probably you will want a function to return the outcome of Vera's next play on each of the three machines.
How you organize those functions (call them from main, in what order, and when to stop) is your task. The posters at DaniWeb will not do your work for you, but only help you make it right/better.