Unsigned int std::

Receiving unsigned int std & no instance of overload fn errors. Any insight?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <iostream>
#include <iomanip>
#include <Windows.h>
#include <string>
#include <cstring>
#include <cstring>
#include <cstdlib>
#include <vector>
#include <cctype>
#include <cstddef>

//Multiple project being done in this solution


vector<string> split(string target, string delimiter){
	vector<string> output;

	if (!target.empty()) {
		string::size_type start = 0;
		do {
			size_t temp = target.find(start, delimiter);
			if (temp == string::npos) {
				break;
			}
			output.push_back(target.substr(start, temp - start));
			start += delimiter.size();
		}
		while(true);

		output.push_back(target.substr(start));
	}
	return output;

	}
Last edited on
size_t temp = target.find(start, delimiter);
You've got the parameters the wrong way round.
Topic archived. No new replies allowed.