Search
 
SCRIPT & CODE EXAMPLE
 

CPP

input output c++

#include <iostream>
int main() {
  int year; //variable created as a integer
  std::cin >> year;//It takes input from the user
  std::cout << "Year: " << year; //It prints output on the screen
}
Comment

Basic Input / Output in C++

#include <iostream>
 
using namespace std;
 
int main()
{
    char sample[] = "GeeksforGeeks";
 
    cout << sample << " - A computer science portal for geeks";
 
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: auto in c++ 
Cpp :: 344. reverse string c++ 
Cpp :: opencv(4.5.1) c:usersappveyorappdatalocal emp1pip-req-build-kh7iq4w7opencvmodulesimgprocsrc esize.cpp:4051: error: (-215:assertion failed) !ssize.empty() in function 
Cpp :: vectors in c++ 
Cpp :: flag of georgia 
Cpp :: c ++ program to insert into hashmap 
Cpp :: what is throw in c++ 
Cpp :: backtrack 
Cpp :: len in cpp 
Cpp :: c++ awitch statements 
Cpp :: remove element from c++ 
Cpp :: c++ class methods 
Cpp :: sum of n natural numbers 
Cpp :: c++ create function pointer 
Cpp :: array of charcter c++ 
Cpp :: C++ Vector Operation Change Elements 
Cpp :: How to see gateway on linux 
Cpp :: queue in cpp 
Cpp :: reverse in vector c++ 
Cpp :: ifstream file (“code2.txt”); dev C++ 
Cpp :: enter items in array until enter is pressed c++ 
Cpp :: pointers in cpp 
Cpp :: simple program for sign in and sign up in c++ 
Cpp :: whatsup 
Cpp :: initalising array c++ 
Cpp :: c++ localtime unsafe 
Cpp :: permutation in c++ with backtracking 
Cpp :: c++ conditional typedef 
Cpp :: Increase IQ codechef solution in c++ 
Cpp :: what does npl mean? 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =