Logo 
Search:

C++ Programming Articles

Submit Article
Home » Articles » C++ Programming » Homework HelpRSS Feeds

PROGRAM THAT PROVIDES AN EXAMPLE OF GETLINE FUNCTION

Posted By: Rainart Fischer     Category: C++ Programming     Views: 8710

WRITE A PROGRAM THAT PROVIDES AN EXAMPLE OF GETLINE FUNCTION.

Code for PROGRAM THAT PROVIDES AN EXAMPLE OF GETLINE FUNCTION in C++ Programming

# include <iostream.h>
# include <conio.h>
main()
{
    char name[20],city[20];
    clrscr();
    cout<<"PLEASE ENTER THE NAME:->";
    cin.getline(name,20);
    cout<<"PLEASE ENTER THE CITY:->";
    cin.getline(city,20);
    cout<<"NAME IS:->"<<name<<endl;
    cout<<"CITY IS:->"<<city<<endl;
}
  
Share: 


Didn't find what you were looking for? Find more on PROGRAM THAT PROVIDES AN EXAMPLE OF GETLINE FUNCTION Or get search suggestion and latest updates.

Rainart Fischer
Rainart Fischer author of PROGRAM THAT PROVIDES AN EXAMPLE OF GETLINE FUNCTION is from Frankfurt, Germany.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!