inputting C++

Posted under C++ Course On By mohammed.mutawe

inputting

sentences in C++ is easy to implement and unobtrusive. In the past, the use of C++ language was required in data entry before designing graphical interfaces, so the need was to use input statements and connect them in databases and then fetch them when needed.

inputting in C++

It is a programmatic command that allows C++ to read input information and either display it on the screen or keep it somewhere else.

 

Example

Please, copy these codes into your editor to see how cin works.

#include<iostream>
using namespace std;

int main() {

    const int size = 30;
    char str[size];

    cout << "Enter An String : "; cin >> str;
    cout << "You Entered :  \n" << str;

    return 0;
}

 

Leave a comment

Your email address will not be published. Required fields are marked *