๐/C++
[C++] cin, cout ์๊ฐ ์ด๊ณผ ๋ฌธ์ ํด๊ฒฐ
dar0m!
2020. 10. 16. 20:12
std::ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
or
ios_base :: sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
์์ ์ฝ๋๋ฅผ main() ์์ ์ ์ด์ฃผ๋ฉด ๋๋ค. 0์ด๋ , NULL์ด๋ ๊ฐ์ ์๋ฏธ๋ก ์ฐ์ธ๋ค.
ํ์ง๋ง, ์ด ๋ฐฉ๋ฒ์ ๋ง๋ฅ์ ์๋๋ผ๊ณ ํ๋ ๋ถ๊ฐํผํ ๊ฒฝ์ฐ์๋ง ์ฌ์ฉํ๊ณ , ๋๋๋ก scanf, printf๋ฅผ ์ฌ์ฉํ์.
algospot.com :: ์์ ๊ฒ์ํ: ๊ฐ ์ธ์ด๋ณ input method ๋น๊ต
๊ฐ ์ธ์ด๋ณ input method ๋น๊ต 13๊ฐ์ ๋๊ธ์ด ์์ต๋๋ค.
algospot.com
cin ๊ณผ scanf ์ ๋ํด์
ACM-ICPC, Olympiad ๋ฌธ์ ์ ๋ฆฌ ๋ฐ ์๊ณ ๋ฆฌ์ฆ ๊ณต๋ถ์ ๋ํ ๋ธ๋ก๊ทธ์ ๋๋ค.
gooddaytocode.blogspot.com