#include <utxcpp/core.hpp>
// Default Prompt utx::readline::readline() noexcept;
// Init customized Prompt utx::readline::readline(const std::string & prompt) noexcept;
// Change Prompt void utx::readline::setps(const std::string & prompt) noexcept;
// Read Input and Return the line string std::string utx::readline::read() noexcept;
// Read Input and Return the line string with the prompt std::string utx::readline::read(const std::string & prompt) noexcept;
// Get the line string std::string utx::readline::get() const noexcept;
std::string utx::readline::prompt; std::string utx::readline::line;
#include <utxcpp/core.hpp> int main() { utx::print( "Your Name is:", utx::readline("Please Input Your Name: ").read(), "\nHow are you." ); }
Please Input Your Name: Fas Xmut Your Name is: Fas Xmut How are you.
Last revised: June 13, 2022 at 03:08:21 GMT |