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 :: check compiler version c++ 
Cpp :: struct and return functions in c++ 
Cpp :: reverse sort cpp 
Cpp :: compile multiple files C++ linux 
Cpp :: qt qchar to char 
Cpp :: c++ celsius to fahrenheit 
Cpp :: c++ random between two values 
Cpp :: controlling in windows 
Cpp :: commets in codeblocks 
Cpp :: ue4 get socket location c++ 
Cpp :: insert at position in vector c++ 
Cpp :: C++ sqlite open file in other directory 
Cpp :: matrix layout in C++ 
Cpp :: web scraping with cpp 
Cpp :: c++ cmd program run in background 
Cpp :: calculate how many liters would be needed 
Cpp :: scale window sdl2 
Cpp :: how to writt array in c++ 
Cpp :: prime number program in c c++ 
Cpp :: go through std vector 
Cpp :: prime number in c++ 
Cpp :: save all output in log file c cpp 
Cpp :: tarray ue4 c++ 
Cpp :: how to make a n*n 2d dynamic array in c++ 
Cpp :: create random vectors c++ 
Cpp :: c++ get time 
Cpp :: copy array c++ 
Cpp :: lerp function c++ 
Cpp :: split string on character vector C++ 
Cpp :: c++ vector loop delete 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =