Загрузка...

EP7: Taking Inputs till EOF CPP/C program

In this video we're gonna learn how to take inputs in c or cpp programs till the End of File (EOF). Sometimes, (actually most of the time) we are given a file with a large number of testcases. And we have to read all of these testcases until we reach the End of the File, then we terminate our program. After watching this video you would be able to take inputs till EOF in both C program and CPP program. On a plus note, you can see how to convert a simple c program to a CPP program. Timestamps: 0:00 Explaining the problem. 1:25 Solving using c program 3:26 Solving using CPP The problem link and the code link is given below. URI 1564: https://www.urionlinejudge.com.br/judge/en/problems/view/1564 Code: https://pastebin.ubuntu.com/p/6cWbSGT9YN/

Видео EP7: Taking Inputs till EOF CPP/C program автора Математические элегии
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки