Tournament simulator

I want to write a program that will simulate a football tournament like the world cup.

Teams will be divided into groups and matches simulated.
Group teams are to be organized in order of points as the top two will proceed to the next round.

The program should be able to print the group tables.

Please, i need guidelines. It just looks to complicated.
It doesn't give us much to go on to say "I have an idea but it is too hard". Particularly because we have no idea of your skill level. Do you use std::strings, do you know what a class is, are you familiar with the STL?

Anyway, one way to make something that seems complicated is to make it simple. The first iteration might look like this:
1
2
3
4
5
6
7
8
9
10
#include <iostream>
#include <string>

int main( void )
{
  std::string teams[] = { "Mexico", "Spain", "Argentina", "Germany" };
  
  std::cout << "The winner is " << teams[0] << '\n';
  return 0;
}


You now have something to build on. What is the biggest limitation here? Is it that there is no grouping, that there is no tracking of points, that there is never a game simulated? Maybe you would rather use a vector of Teams rather than an array of strings.
Topic archived. No new replies allowed.