#include #include #include class MulTable { public: MulTable() {} // defaultní konstruktor MulTable(int f, int t) : from_(f), to_(t) {} void print(int n); private: int from_ = 1; // defaulně 1 int to_ = 10; // defaulně 10 }; void MulTable::print(int n) { // TODO } void print_mul_table(int n, int from, int to) { // TODO } int main(int argc, char* argv[]) { // Pohodlnější zpracování argumentů: // args = {argv[1], argv[2], ..., argv[argc-1]} std::vector args(argv + 1, argv + argc); int from = 1; int to = 10; // TODO: podpora `-f FROM` a `-t TO` (FROM a TO jsou celá čísla) for (size_t i = 0; i < args.size(); i++) { int number = std::stoi(args[i]); print_mul_table(number, from, to); } }