const-char
How can I join a char to a constant char*?
I have a function that joins two constant char* and returns the result. What I want to do though is join a char 开发者_Python百科to a constant char* eg[详细]
2023-03-30 05:32 分类:问答Pass contents of stringstream to function taking char* as argument
I have a function for writing ppm files (a picture format) to disk. It takes the filename as a char* array. In my main function, I put together a filename using a stringstream and the << operato[详细]
2023-01-24 08:59 分类:问答Is it appropriate to set a value to a "const char *" in the header file
I have seen people using 2 methods to declare and define char *. Medhod 1:The header file has the below[详细]
2022-12-31 06:55 分类:问答How do I properly turn a const char* returned from a function into a const char** in C?
In short, I would like to do this: const char **stringPtr = &getString(); However, I understand that you can\'t & on rvalues. So I\'m stuck with this:[详细]
2022-12-29 10:39 分类:问答std::cin >> *aa results in a bus error
I have this a class called PPString: PPString.h #ifndef __CPP_PPString #define __CPP_PPString #include "PPObject.h"[详细]
2022-12-27 21:52 分类:问答Python to C/C++ const char question
I am extending Python with some C++ code. One of the functions I\'m using has the following signature:[详细]
2022-12-25 21:50 分类:问答printf question with a const char* variable
I am stuck in a printf problem. I would appreciate if I can get some help here: In the below code, I can see the font family get displaced correctly in first printf(),[详细]
2022-12-22 05:43 分类:问答jQuery and asp.net webservice not working
Im开发者_开发技巧 trying to call a asp.net webservice from jQuery but I get the telling me that i need to set the System.Web.Script.Services.ScriptService(). The only problem is that i have set this i[详细]
2022-12-20 03:48 分类:问答Getting VB6 to reveal which component doesn't have a design time license installed
I\'ve inherited a VB6 project that I\'m trying to \"Make\". The build fails on the \"Making EXE\" step with a licensing error:[详细]
2022-12-18 09:15 分类:问答What is the proper PInvoke signature for a function that takes var args?
There is a native function: int sqlite3_config(int, ...); I would like to开发者_运维百科 PInvoke to this function. Currently, I have this declaration:[详细]
2022-12-18 09:12 分类:问答