Menu
This C++ tutorial series will help you to get started learning C++ Programming Language from basics.
![C programming getline C programming getline](/uploads/1/2/6/8/126884282/705354223.jpg)
C++ is a general-purpose, middle-level programming language, with high and low-level programming capabilities, and this is one of the most popular commercial programming languages.
Jun 25, 2011 This entry was posted in C/C, Linux, Software architecture, technical things on June 25, 2011 by Jan-Philip Gehrcke. Post navigation ← PyMOL: Remove hydrogens and water The best and simplest tools to create a basic WebSocket application with Flash fallback and Python on the server side →. C getline The cin is an object which is used to take input from the user but does not allow to take the input in multiple lines. To accept the multiple lines, we use the getline function.
Required Knowledge
It is important to understand the concepts of C before learning C++, and the basic Knowledge of C Programming Language will help you to understand C++ Programming quickly.
C++ Example
A quick look at the example of C++ Program and detailed description is given in the C++ Program Structure page.
Program Output:
The above example has been used to print text on the screen.
- Related Questions & Answers
- Selected Reading
C++Server Side ProgrammingProgramming
It is used to extracts characters from the stream as unformatted input and stores them into s as a c-string, until either the extracted character is the delimiting character, or n characters have been written to s (including the terminating null character). The declaration is like:
The parameters are ‘s’ pointer to an array of characters, where the extracted characters are stored as a c_string. Next parameter is ‘n’ this is the maximum number of characters to write (including the terminating character). The third parameter is ‘delim’ Explicit delimiting character. The operation of extracting successive characters stops as soon as the next character to exact compares equal to this (using traits_type::eq)
This function returns the basic_istream object (*this).