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

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

I want to know how can i compare two different outputs so that i can check whether an algorithm works fine for corner cases also. I want to compare output generated by naive algorithm and an another algorithm saved in two .txt files. I use Code Blocks.

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

»
11 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится +1 Проголосовать: не нравится

Windows — system("fc first.txt second.txt")
Linux — system("diff first.txt second.txt")

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

I use Notepad++ on Windows

Click on plugins->plugin manager->show plugin manager->select Compare->Install

To use it you can manaully select it from plugins or just press Alt+D

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