Блог пользователя if-then-explorer

Автор if-then-explorer, история, 6 лет назад, По-английски

What doe the following code mean ? Why use it ?

#ifdef _DEBUG
	freopen("input.txt", "r", stdin);
//	freopen("output.txt", "w", stdout);
#endif
  • Проголосовать: нравится
  • -11
  • Проголосовать: не нравится

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I understand that It may be a bit annoying for many to answer this question so they will ignore it. What I don't understand is the reasons why some idiots are downvoting.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

This means that if your _DEBUG is defined then you can read the input from input.txt file (instead of manually typing input every time you compile).