Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::string string1 = "xjdfhfakdjs%54k34k.-jk34";
- std::string the_prefix_you_want = string1.substr(0, string1.find("%"));
- #include <windows.h>
- void main ()
- {
- int i;
- wchar_t searchString[100];
- wchar_t * stringReturn;
- memset(searchString, L'