Files
tessesframework/examples/console-list.cpp
Mike Nolan 8413c67ec6
Some checks failed
Build and Deploy on Tag / 🔨 Build for Arch Linux/Static Builds (push) Failing after 45s
Build and Deploy on Tag / 🔨 Build win32 and update the tap 🍺 (push) Has been cancelled
Overhaul cmake configuration, add console api, fix http code that caused issues with cgi-bin
2026-05-27 03:02:16 -05:00

31 lines
675 B
C++

#include "TessesFramework/TessesFramework.hpp"
int main(int argc, char** argv)
{
using namespace Tesses::Framework;
using namespace Tesses::Framework::TextStreams;
TF_Init();
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");
}
else {
StdOut() << "You selected " << myList[res] << "." << NewLine();
}
return 0;
}