Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void checkForDelimiters(string line){
- bool found = false;
- for (int i = 0; i < line.length(); i++){
- if (line.substr(i,1) == ";" ){
- // Add to vector if its not in there already from another line
- if (!search(";", delimiters)){
- delimiters.push_back(";");
- }
- }
- if (line.substr(i,1) == ","){
- if (!search(",", delimiters)){
- delimiters.push_back(",");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement