Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
211 B
3
Indexable
Never
bool isActive(string wname) {
	for (auto it = worlds.begin(); it != worlds.end(); ) {
		if (it->name == wname) {
			cout << wname << " is active" << endl;
			return true;
		}
		else {
			++it;
		}
	}
}