cstring
is there a way to use cin.getline() without having to define a char array size before hand?
Basically my task is having to sort a bunch of strings of variable length ignoring case. I understand there is a function strcasecmp() that compares cstrings, but doesn\'t work on strings. Right now I[详细]
2022-12-26 02:15 分类:问答compare function for dates
I have struct as: struct stored { char *dates; // 12/May/2010, 10/Jun/2010 etc.. }; // const struct stored structs[] = {{\"12/May/2010\"}, {\"12/May/2011\"},[详细]
2022-12-23 12:56 分类:问答file doesn't open, running outside of debugger results in seg fault (c++)
Hello (and thanks in advance) I\'m in a bit of a quandry, I cant seem to figure out why I\'m seg faulting.[详细]
2022-12-23 01:17 分类:问答How to overwrite an array of char pointers with a larger list of char pointers?
My function is being passed a struct containing, among other things, a NULL terminated array of pointers to words making up a command with arguments.[详细]
2022-12-22 18:27 分类:问答Can I assume that two-dimensional arrays are initialized properly like this?
When I declare a two-dimensional 开发者_如何学Carray like this: char myArray[20][30] = {\"ABC\", \"Is Easy As One Two Three\"};[详细]
2022-12-20 13:29 分类:问答Initializing a Char*[]
Question is in the title, how do I initialize a char*[] and give values to i开发者_开发知识库t in C++, thank you.Though you\'re probably aware, char*[] is an array of pointers to characters, and I wou[详细]
2022-12-20 06:38 分类:问答unmanaged c++ dll called from c#, crashes when CString used in dll
Hello Most excellent Stackoverflowians Using visual studio 2008 Team System, I have a c++ dll (mfc statically linked regular dll) which开发者_StackOverflow社区 has a simple function[详细]
2022-12-19 16:58 分类:问答Why is my char* writable and sometimes read only in C++
I have had really big problems understand the char* lately. Let\'s say I made a recursive function to revert a char* but depending on how I init开发者_开发知识库ialize it I get some access violations,[详细]
2022-12-19 16:48 分类:问答Comparing character arrays and string literals in C++ without cstring
In my programming class we currently have开发者_开发知识库 a project that requires us to take arguments into the program. I then need to be able to check one of the arguments to see which value was pa[详细]
2022-12-12 04:33 分类:问答How to find the number of data added in CStringArray
Helo guys, I am working wid CStringArray and i want to know how to find the number of datas added in a CStringArray .in the below i have a defined the size of the array as 10 but i have added only thr[详细]
2022-12-11 03:44 分类:问答