blob: cf60d73d699cfad321fee863919364985ea6c0fd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "Television.h"
#include "cli.hpp"
Television::Television(mm width, mm height) : Screen(width, height) { }
Television::~Television() { }
Television* Television::fromCommandLine() {
mm iwidth = 0;
cli::readUserInput(iwidth, "Enter width (in mm): ", "Invalid width, try again!");
mm iheight = 0;
cli::readUserInput(iheight, "Enter height (in mm): ", "Invalid height, try again!");
return new Television(iwidth, iheight);
}
|