< Prev
Next >



C++ Unformatted Input Functions






In our last article, we introduced you to the unformatted and formatted input/output functions. In this article, we are only going to focus on unformatted input functions. Unformatted console input functions are used for performing input operations at console(input entered by the user at the console).


Some of the most important formatted console input functions are -

Functions Description
get()
Reads a single character from the user at the console, and returns it.

get(char* array)
Reads a single character entered by the user at the console and assigns it to the char array.

getline(char* array, int length)
Reads a line of characters(entered by the user at the console) and assigns it to a string of string class.

getline(istream& is, string& str)
Reads a line of characters(entered by the user at the console), using the istream object and assigns it to a string of string class.





How to access these unformatted I/O functions?


Please subscribe our social media channels for notifications, we post a new article everyday.

Decodejava Google+ Page Decodejava Facebook Page  DecodeJava Twitter Page

Coming Next
-
Python

Ad2