mirror of
https://git.tesses.org/tesses50/tessesframework.git
synced 2026-08-01 16:15:31 +00:00
23 lines
685 B
C++
23 lines
685 B
C++
#include "TessesFramework/TessesFramework.hpp"
|
|
|
|
int main(int argc, char **argv) {
|
|
using namespace Tesses::Framework;
|
|
using namespace Tesses::Framework::TextStreams;
|
|
TF_InitWithConsole();
|
|
|
|
std::vector<std::string> myList = {
|
|
"Demi Lovato", "The Gremlins", "Al Gore",
|
|
"Steve Ballmer", "CrossLang", "Tom Scott",
|
|
"Louis Rossmann", "Mike Nolan", "Tim Cook"};
|
|
|
|
auto res = Console::List(myList);
|
|
|
|
if (res > myList.size()) {
|
|
Console::WriteLine("You must select one");
|
|
TF_RunEventLoop();
|
|
} else {
|
|
StdOut() << "You selected " << myList[res] << "." << NewLine();
|
|
TF_RunEventLoop();
|
|
}
|
|
return 0;
|
|
} |