PrevUpHomeNext

kcpp::kin


kcpp::kin

kcpp::kin is a c++ character input stream object of kcpp character input stream class to get character input from the input device.

kcpp::kin is similar to std::cin.

The input device might be a virtual device that can be anything which can input characters to the stream object.

Keyboard is the commonly used input device for kcpp::kin.

include

#include <kcpp/io.hpp>

c++ example

#include <kcpp/io.hpp>

int main()
{
	int get_in;
	kcpp::kout << "Please Input Integer: ";
	kcpp::kin >> get_in;
	kcpp::kout << "Your input is " << get_in << kcpp::endl;
}
/*
Please Input Integer: 1299
Your input is 1299
*/

Back

Back: Kcpp IO

See Also

kcpp::kout

kcpp::print

kcpp::kin.getline









________________________________________


PrevUpHomeNext

P   R   D