my problem would be using a string in system(). As you might know you can use console commands in c++ with system() (or system_() if you realy want to ...
my problem would be using a string in system(). As you might know you can use console commands in c++ with system() (or system_() if you realy want to ...
So I'm setting up custom exception classes for a program I am writing. I'm creating a catch-all base class, that I will use primarily as a generic exc ...
I bought a Surface Go 2 today, and installed Visual Studio 2019. I loaded my project, that successfully compiled on my previous PC, also in VS19. The ...
i m a beginner in c++ and i have a question. how can i combine a variable and a string in the folowing line. pdfPathis my Variable where the path o ...
So I have a program that looks something like this: I think this is illegal because const char * is not a user-defined type. However, I am not sur ...
I am trying to get a file path from the user in the getPath() function and return the path as a string. I am having trouble because the compiler says ...
When I pass a const char* as a function argument (like this): Is it automatically deleted? If not, what happens to it, and how should I delete it? ...
Let's say that I have a vector<string> input and I need to pass this to a function that takes a const char** argument. My thought had been to us ...
Here I tried to put my path in a vector beacuse i need ordinated list, but the cout's output is this: Thanks in advance. ...
I am trying to connect to ROS using rosserial windows. I am following the tutorial given on the ROS website (http://wiki.ros.org/rosserial_windows/Tut ...
I have a code snippet to test a code bug. The result on : QName: "Lucy" QInterest: "Swimming" Name: Lucy Interest: . The result on : root@:tes ...
In visual studio, I can clearly see that the rstr() (to reverse string) function returns "olla\0", but the console display shows unreadable character ...
I'm reading some codes where sometimes casting integer reference value to const char * used with ostream is happened. 1) What's the effect of casti ...
So I have that simple code inside button click method: The problem is that messagebox is empty. But it works correctly when I pass text directly: ...
The objective of my program is to send the contents of a text file automatically to an email address. While the sending works perfectly fine, the issu ...
so im trying to create an array with const char everytime the function is called i want to add to my array like a strtok so if i to wanted set so ...
The Current Issue The value of a const char* seems to be changing to a nonsensical value. Faulty Code Example The intention of the code below is to ...
I have a program that has a user enter their name, age, and the classes that they have taken. These classes are stored in the main() function as two-d ...
I wrote the following code as an exercise about function templates and template specializations. It's a function that counts how many objects of a giv ...
No. This question in NOT duplicate of When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used? The question asked here is no w ...