Advertisement



< 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 unformatted 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

Please subscribe to our social media channels for daily updates.


Decodejava Facebook Page  DecodeJava Twitter Page Decodejava Google+ Page




Advertisement

Notifications



Please check our latest addition

PYTHON


Advertisement