Skip to content

Instantly share code, notes, and snippets.

@derofim
Created August 14, 2015 07:10
Show Gist options
  • Save derofim/b2ebe5370ac463792a36 to your computer and use it in GitHub Desktop.
Save derofim/b2ebe5370ac463792a36 to your computer and use it in GitHub Desktop.
#include <iostream>
int main()
{
using namespace std; // компилятор будет использовать все из std
cout << "Hello world!" << endl; // не нужен префикс std::
std::cout << "Hello C++!" << endl; // но при желании std:: можно указать все равно
cout << "Hello me!" << endl; // не нужен префикс std::
int x;
cin>>x; // не нужен префикс std::
std::cin>>x; // но при желании std:: можно указать все равно
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment