cstring
when you push_back heap-allocated char into a vector in c++
I\'m having trouble inserting char* into a vector< char*> When I do the following: string str = \"Hello b World d\"[详细]
2023-03-17 08:41 分类:问答How to convert UCHAR to Binary
I want to know how to convert a UCHAR array to a binary string in C++/MFC. I tried some 开发者_C百科of the possibilities with Cstring but they didn\'t work. Please let me know why.[详细]
2023-03-15 08:54 分类:问答hash_map,map hash function for composite key
I got a working std::map class, which is somewhat slow, so I want to try other datastructures My key is a composite datatype like[详细]
2023-03-13 14:21 分类:问答Environment Variables are in a char* how to get it to a std::string
I am retrieving the environment variables in win32 using GetEnvironmentStrings(). It returns a char*.[详细]
2023-03-12 22:18 分类:问答Splitting a char* at its many '\0' chars
The following is in C++. I have a string that contains the environment variables I need to split it at the declaration of each variable & store it in a string:[详细]
2023-03-12 16:10 分类:问答CEdit Text Retrieval in mfc
I am using CEdit with the property of Multiline.My objective is to retrieve the individual line and place it in my CStringArray.[详细]
2023-03-10 07:37 分类:问答How do I convert an ATL/MFC CString to a QString?
Given the encoding of the project is probably Unicode (but not for sure) what is the best way of converting ATL::CString to QString?[详细]
2023-03-10 04:03 分类:问答CString Substring problem
I am having trouble with substrings that I will implement with file i/o. I have char data[21],char world[21], and char eat[21] that will be substrings of char in[300] (the names dont mean anything btw[详细]
2023-03-09 08:20 分类:问答MFC: std::string vs CString?
Using C++ with MFC.Coming from a C# background I typically just use string for all, well, strings.I use them for class members, method parameters, and method return values.[详细]
2023-03-07 23:52 分类:问答C read string from std error
I want to read string from standart input and output it in on console. I use this way: char* cmdline; do{[详细]
2023-03-06 05:36 分类:问答