Is the pointer returned by the following function valid? const char * bool2str( bool flg ) { return flg ? \"Yes\" : \"No\";
I\'m trying to write a SWIG wrapper for a C library that uses pointer开发者_Go百科s to functions in its structs.I can\'t figure out how to handle structs that contain function pointers.A simplified ex
I want to know what is happening in memory when you declare: 开发者_高级运维int **array; If I am not mistaken...
Is it possible in C++ to create a new object at a specific memory location? I have a block of shared memory in which I would like to cre开发者_运维知识库ate an object. Is this possible?You want placem
Can we check whether a pointer passed to a function is allocated with memory or not in C? I have wriiten my own function in C which accepts a character pointer - buf [pointer to a buffer] and size -
In my code, I have a vector of Student objects. vector<Student> m_students; I want to: Check to see if the vector contains any Student of a certain name.
I have an abstract base class (Comparable) with Date and Time virtually inheriting from it and a DateTime class v-inheriting from Date and Time.
I have a log file which gets updated every second.I need to read the log file periodically, and once I do a read, I need to store the f开发者_Python百科ile pointer position at the end of the last line
I have the following code, so far, I want to check if a file name is already in the linked list fileList (or flist). according to the output, the string saved in the first Node was changed somewhere i
We have a function longest, which returns the longest substring that consists of letters. Example: longest(\"112****hel 5454lllllo454\")