This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main() | |
{ | |
std::string input = "abc,def,ghi"; | |
std::istringstream ss(input); | |
std::string token; | |
vector<string> playerInfoVector; | |
while(std::getline(ss, token, ',')) { | |
playerInfoVector.push_back(token); | |
std::cout << token << '\n'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* From author RogerB: https://www.codeproject.com/script/membership/view.aspx?mid=716667 | |
* Code source article: https://www.codeproject.com/articles/7968/messagebox-with-a-timeout-for-net | |
* Licensing: https://www.codeproject.com/info/cpol10.aspx | |
*/ | |
using System; | |
using System.Text; | |
using System.Runtime.InteropServices; | |
using System.Security.Permissions; |