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

c++ output

#include <iostream>

int main(){
  std::cout << "Hello World!" << std::endl; // prints "Hello World"
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: int to hexadecimal in c++ 
Cpp :: use uint in c++ 
Cpp :: could not find the task c c++ active file 
Cpp :: rotate array cpp 
Cpp :: iterate over vector in c++ 
Cpp :: sort a vector c++ 
Cpp :: cannot jump from switch statement to this case label c++ 
Cpp :: for loop f# 
Cpp :: stoi function in c++ library 
Cpp :: quick sort c+++ 
Cpp :: c++ if else 
Cpp :: how to square a number in c++ 
Cpp :: hexadecimal or binary to int c++ 
Cpp :: string vector to string c++ 
Cpp :: c++ struct constructor 
Cpp :: string search c++ 
Cpp :: priority queue in c++ 
Cpp :: opengl draw semi circle c++ 
Cpp :: sum of a matrix c++ 
Cpp :: quicksort 
Cpp :: binary search in c++ 
Cpp :: how to concatenate two vectors in c++ 
Cpp :: c for loop decrement 
Cpp :: long pi in c++ 
Cpp :: cpp linked list 
Cpp :: online ide c++ 
Cpp :: c++ program to convert celsius to kelvin 
Cpp :: QVariant to int 
Cpp :: c++ little endian or big endian 
Cpp :: square gcode 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =