Блог пользователя ALT__

Автор ALT__, история, 5 лет назад, По-английски

Sorry if this is not the right place to post this but I tried lots of different thing but just couldn't get it to work. I can write a normal code and compile it with no input. But it just doesn't work with inputs, I tried bunch of different build system but nothing worked. How do I fix this? Or if you don't use sublime, then what do you use on mac? thanks.

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится

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

If you are using C++

this build system works for me https://ideone.com/wgbhAX

for input & output: I use an input and output files and I add this piece of code in the beginning of my main function

#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif
»
5 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

This plugin works for me.