본문 바로가기
Programming/C++

[c++] printf

by OKOK 2017. 5. 10.

#include<iostream>


int main(void) {

int num = 20;

std::cout << "Hello Wolrd!" << std::endl;

std::cout << "Hello" << "World!" << std::endl;

std::cout << num << ' ' << 'A';

std::cout << ' ' << 3.14 << std::endl;

return 0;

}




* #include<iostream>

* std::cout << std::endl