2 Answers - Sort by: Date | Rating
The "cin" Object------Input Stream
The "cin" stands for console input. It is pronounced as "See In". It is an input stream. It is used as input statement to get input from the keyboard during program execution.
When an input statement is executed, the computer waits to receive an input from keyboard. When a value is typed and enter key is pressed, the value is assigned to the variable and control shifts to the next statement.
The "cin" object is also a part of iostream header file.
The syntax of "cin" is:
Cin>> var1 [>>var2……..];
Cin: It represents the object name used as an input stream. This stream represents data coming from input device keyboard.
>>: It is extraction operator or get from operator. It gets an input from the input device and assigns it to the variable.
Var1, var2: These represent list of variables. Each variable is separated by extraction operator ">>". Usually a separate statement is used for each variable.
At least one variable on the right hand side of the ">>" operator must be used. The use of other variables is optional.
For example, to input data into variables a, b, c, the input statement si written as
Cin>> a>>b>>c;
When this statement is executed,"Enter" key is pressed after typing data for each variable.
The "cin" stands for console input. It is pronounced as "See In". It is an input stream. It is used as input statement to get input from the keyboard during program execution.
When an input statement is executed, the computer waits to receive an input from keyboard. When a value is typed and enter key is pressed, the value is assigned to the variable and control shifts to the next statement.
The "cin" object is also a part of iostream header file.
The syntax of "cin" is:
Cin>> var1 [>>var2……..];
Cin: It represents the object name used as an input stream. This stream represents data coming from input device keyboard.
>>: It is extraction operator or get from operator. It gets an input from the input device and assigns it to the variable.
Var1, var2: These represent list of variables. Each variable is separated by extraction operator ">>". Usually a separate statement is used for each variable.
At least one variable on the right hand side of the ">>" operator must be used. The use of other variables is optional.
For example, to input data into variables a, b, c, the input statement si written as
Cin>> a>>b>>c;
When this statement is executed,"Enter" key is pressed after typing data for each variable.
0
0
The standard input statement in C++ is cin.
The structure of cin is
cin>>obj;
where obj can be any variable, any class object, any pointer.
For example
int a;
cin>>a; //any value entered by user will be stored in a.
The structure of cin is
cin>>obj;
where obj can be any variable, any class object, any pointer.
For example
int a;
cin>>a; //any value entered by user will be stored in a.
0
0
- What Is The Function Of Network Cable?
- What Is The Important Of Managing Accounting In An Economics To A Developing Country?
- What Is The Advantage Of Using Web Based E-mail To System E-mail?
- How To Write The Introduction Of Baby Thesis With Title The Effect Of Being Dancer In The Academic Performance Of Selected Students?
- What Are Binary And Hexadecimal In Computing?
- What Effect Did Radar Have On American Society?
- What Is The Software That Controls The Process Of Saving Files To Disk?
- What Video Adapter Is Compatible With Seagate ST3400620AS?
- Which Interface Provides The Fastest Transfer Of Data?
- What Power Supply Is Compatible With Cooler Master CACT05UW?
- I Forgot My Password To Login My Computer. There Is No Guest Account, Any Tip On How I Can Bypass My Password?
- What Are The Reasons To Add An Additional Drive?
- What Is Pear To Pear Systems?
- Were Can I Find My Clipboard, Its Not Under Accessories?
- Were Can I Find Clipboard On My Computer, Its Not Under Accessories?
- As A User Attempts To Boot The Computer, The Message "NTLDR Is Missing" Is Observed On The Screen. What Will Result From This Situation?
- What Security Threats Do Wireless Networks Pose?
- What's Problem Occur From Wireless Network Security System?
- How To Display Table?
- How To Unlock The Micro Scan Disk?
- What Is The Full Form Of GRASIM?
- My Printer Is A HP Deskjet F4200 Series And When I Go To Print I Keep Getting Printer Not Activated Error Code 41 How Do I Fix This?
- How Did Shakes Pear Inter To Poetry?
- What Is The Local Area Network Using Client Server?
- How Can I Create My Computer's Ipaddress?

New Comment - Comments are editable for 5 min.