This file contains hidden or 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
| void remove_spaces( string *s ) { | |
| while( isspace( s->c_str()[0] ) ) { | |
| s->erase(0,1); | |
| } | |
| } | |
| int main() { | |
| string s = "\t\tHello World"; | |
| cout << "Before: " << s << endl; | |
| remove_spaces( &s ); |
This file contains hidden or 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
| #include <iostream> | |
| #include <vector> | |
| #include <string> | |
| #include <fstream> | |
| #include <windows.h> | |
| using namespace std; | |
| void GetFilesInDirectory(std::vector<string> &out, const string &directory, bool getFolderNames) | |
| { |
NewerOlder