C++ Code example for Cin getline





C++ Code example for Cin getline
Tags: getline
Code Snippet:
#include <iostream.h>
int main(void)
{
const SIZE = 100;
char msg[SIZE];
cout<<"Enter a string."<<endl;
cin.getline(msg,SIZE);
cout<<"The sentence you entered was"<<endl;
cout<<msg<<endl;
return 0;
}
ActionScript - ActionScript 3 - Apache - AppleScript - ASP - Assembler - Bash - C - C# - C++ - ColdFusion - CSS - Delphi - DOS Batch - Fortran - HTML - iPhone - Java - JavaScript - jQuery - Lisp - MatLab - Maxscript - MXML - MySQL - Objective C - Other - Pascal - Perl - PHP - PL SQL - Prolog - Pseudocode - Python - Rails - SmallTalk - Smarty - SML - SPSS - SQL - SVN - Symfony - TCL - VB.NET - Visual Basic - XHTML - XML - XSLT
© 2000-2012 Xentrik.Net
