C++ Input - The last lesson, wriiter has sharing how to
Printing Text C++ Using COUT Syntax [Basic Lesson]. And than now wriiter will explain the concept of C++ Input. Before explaining concept, you must have kwonlagde about
Data Type in C Programming.
Basic concept of
C++Input is :
- User inserting a value
- The value will saved in variable
Know you can analize the concept. Below is the example of input and output a value.
#include<iostream>
#include<stdlib.h>
using namespace std;
int main()
{
int a;
cout<<"Insert Your Age : ";
cin>>a;
cout<<endl;
cout<<endl;
cout<<"Your Age is "<<a;
cout<<endl;
system("pause");
}
After compiled and run. The print out of it is at below
Below the explain of syntax :
cin>>a is use to inserting a value form keyboard to the variable.
For other syntax, you can read in
Printing Text C++ Using COUT Syntax [Basic Lesson] article.
Its a simple example of
C++ Input. For other example, you can download
here.
Paper 4Share -
C++ Input
Related Posts :
C++ Programming loops + Examples (for, while, do while) [PART 2]Looping on Programming is it like a very important, so if you are want to be a programmer, you must understand that is Looping. what is loop… Read More...
Getting Started with Accelerated Mobile Pages (AMP) HTML
Getting Started with Accelerated Mobile Pages (AMP) HTML - AMP is the technology from google developer for optimizing a web mobile. For t… Read More...
PHP Connect to MySQL
PHP Connect to MySQL - Now, we will explain about connection PHP to MySQL. Before you do anithing with PHP Programming and MySQL database… Read More...
C++ Programming loops (for, while, do while) [PART 1]C++ Programming loops (for, while, do while) - What is programming loops??
programming loops is something that must be controlled by program… Read More...
[PHP] Get Site URL Protocol "HTTP or HTTPS"
[PHP] Get Site URL Protocol "HTTP or HTTPS" - In this case, some PHP developers need to check the protocol of the site is using HTTP o… Read More...