Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. void checkForDelimiters(string line){
  2.     bool found = false;
  3.     for (int i = 0; i < line.length(); i++){
  4.         if (line.substr(i,1) == ";" ){
  5.             // Add to vector if its not in there already from another line
  6.             if (!search(";", delimiters)){
  7.                 delimiters.push_back(";");
  8.             }
  9.         }
  10.         if (line.substr(i,1) == ","){
  11.             if (!search(",", delimiters)){
  12.                 delimiters.push_back(",");
  13.             }
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement