Викторина: части строки
#include <iostream>
#include <string>
int main() {
std::string record = "Anya:250";
int colon = record.find(':');
std::cout << record.substr(0, colon) << std::endl;
std::cout << record.substr(colon, 3) << std::endl;
return 0;
}