cstring
What techniques are available to test if a character string is all spaces?
char *p = \"woohoo\"; int condition = /* some calculation applied to p*/ /* to look for all 0x20/blanks/spaces only*/[详细]
2023-01-08 20:55 分类:问答What is the most efficient way to convert STL string array to const char* array?
We have: std::string string_array[2]; string_array[0] = \"some data\"; string_array[1] = \"some more data\";[详细]
2023-01-06 17:03 分类:问答#include being ignored
So, I\'ve got this code I\'m trying to update. It was written for visual studio 6, and I\'m trying to get it to compile in visual studio 2010.[详细]
2023-01-04 07:26 分类:问答Const char conversion error
I am getting the following error with gcc. invalid conversion from ‘char**’ to ‘const char**’ With this code.[详细]
2023-01-03 23:46 分类:问答Simple modification of C strings using pointers
I have two pointers to the same C string.If I increment the second pointer by one, and assign the value of the second pointer to that of the first, I expect the first character of the first string to[详细]
2023-01-01 10:20 分类:问答unformatted input to a std::string instead of c-string from binary file
ok i have this program working using c-strings.I am wondering if it is possible to read in blocks of unformatted text to a std::string?I toyed arround with if >> but this reads in line by line.I[详细]
2022-12-30 18:05 分类:问答Having issues with initializing character array
Ok, this is for homework about hashtables, but this is the simple stuff I thought I was able to do from ea开发者_如何转开发rlier classes, and I\'m tearing my hair out. The professor is not being respo[详细]
2022-12-30 00:10 分类:问答How to marshal the type of "Cstring" in .NET Compact Framework(C#)?
How to marshal the type of \"Cstring\" in .NET Compact Framework(C#)? DLLname:Test_Cstring.dll(OS is WinCE 5.0),source code:[详细]
2022-12-29 14:07 分类:问答How (if needed) to free dynamic memory when marshaling CString from C++ to C#?
I have CString cs on C++ side and IntPtr ip on C# side whichcontains value of cs through marshaling mechanism.[详细]
2022-12-28 17:15 分类:问答Works for Short Input, Fails for Long Input. How to Solve?
I\'ve this program which finds substring in a string. It works for small inputs. But fails for long inputs. Here\'s the program:[详细]
2022-12-28 04:10 分类:问答