Change string for dados

I have two errors in the functions: 'npos' was not declared in this scope;
expected primary-expression before '!=' token

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
	Estado(float temperatura, DataHora dataHora, bool vent, bool res) {
		_temperatura = temperatura;
		_vent = vent;
		_res = res;
		_dataHora = dataHora;
	}
	Estado(string dado){
		size_t pos = 0;
		std::string token;
		while ((pos = dado.find(";"))) != npos) {
		    token = dado.substr(0, pos);
		    std::cout << token << std::endl;
		    dado.erase(0, pos + delimiter.length());
		}
		std::cout << dado << std::endl;
	}
Registered users can post here. Sign in or register to post.