125.c++ Input Summary

Source: Internet
Author: User

1#include <iostream>2#include <iomanip>3#include <cstring>4#include <cstdlib>5 using namespacestd;6 7 voidMain ()8 {9 Ten     /*Char Ch1, CH2, CH3; One cin.get (CH1). Get (CH2). get (CH3); A cout.put (CH1). put (CH2);*/ -  -     //char ch[20] = {0}; the     ////Ignore one character -     //Cin.ignore (); -     //After reading the premise, from the current position until the end of the character is ignored, the maximum length is the 1024x768 -     //Cin.ignore (1024x768, ' # '); +     //Set maximum limit -     //Cin.ignore (Numeric_limits<streamsize>::max (), ' # '); +     ////write a 20-byte length from an address, and reserve a ' A     //cin.get (ch,20); at     //cout << ch << endl; -  -     Charch[ -]{0 }; -     //read 30 characters from a specified character encounters s terminating -Cin.Get(CH, -,'s'); -cout << Ch <<Endl; inSystem"Pause"); -}

125.c++ Input Summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.