https://www.geeksforgeeks.org/print-a-given-matrix-in-spiral-form/
toto by malo pomoct :)
https://www.geeksforgeeks.org/print-a-given-matrix-in-spiral-form/
toto by malo pomoct :)
string str,sub; // str is string to search, sub is the substring to search for
vector<size_t> positions; // holds all the positions that sub occurs within str
size_t pos = str.find(sub, 0);
while(pos != string::npos)
{
positions.push_back(pos);
pos = str.find(sub,pos+1);
}
https://stackoverflow.com/questions/4034750/find-all-a-substrings-occurrences-and-locations