Я не могу найти способ, с помощью которого люди могли бы ввести адрес, а затем заставить программу прочитать текстовый файл до определенной строки. с кодом дома и кодом разблокировки.
Код: Выделить всё
#include
#include
#include
#include
#include
void fileOP(std::ifstream& testdata, int linenumsought, std::string& address);
int main() {
std::ifstream testdata;
testdata.open("testdata.txt");
int linenumsought;
std::string address;
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78393631/is-there-a-way-i-can-use-a-getline-string-in-some-sort-of-if-case-statement-to-g[/url]