devDevil
Erfahrenes Mitglied
Etwas mehr "C++-like":
Hm oder per Iterator Aber okay das is freakstuff
C++:
void DatabaseManager::makeDatabase(std::string const& line)
{
const std::string::size_type pos_first(line.find('|'));
const std::string::size_type pos_second(line.find('|', pos_first + 1));
openDatabases.push_back(new Database(line.substr(0, pos_first), line.substr(pos_first + 1, pos_second - pos_first), line.substr(pos_second, line.legth() - pos_second)));