I want to get a minimum of float without using std::numeric_limits<T>::lowest() [c++11] so I intend to do the following. -std::numeric_limits&l ...
I want to get a minimum of float without using std::numeric_limits<T>::lowest() [c++11] so I intend to do the following. -std::numeric_limits&l ...
I am new in C++ 98 .I want to write to FILE data type in C++ using netbeans 8.0. Here is my code that show that load the data in form Here is the mai ...
In the code base I have many sections that are either turned on or off depending on enabled features. The aim is to generate program code as small as ...
There is a task to set a timer that will work in a couple of months. I ran into a problem with QTimer::start(int msec) time is specified in int and al ...
I am new in C++. I am using C++ 98.Here is my code. It is getting the text from a lineEdit of a Qt4 form. strcpy(Name,ui->lineEdit->setText(QSt ...
I am new in C++98. I am getting some fields from a large text file. I want to update only 4 out of 50 lines in the text file. Here is my code. It is g ...
I made this code for checking if a class has a member called first: By defining valid_type as char and not_valid_type as struct { char array[2]; } ...
For example I have a function :void sort3 (int& a, int& b, int& c) and I wanted to put the variables in order and only swap if one variabl ...
I'm recently working on some legacy codes written in C++98. I am trying to get them compiled by C++17 compiler. A whole lot of warnings popped out as ...
I have two questions here. Is it necessary to add the virtual keyword in the derived class? Is there any difference between returning a pointer ...
We have a legacy MFC based application in our company which is built with Visual C++98 on Visual Studio 2003. We use curl for Http requests. libcurl.l ...
I have te following classes (e.g.) : My question is, given the operator= overload and copy constructor in B, if I wanted to be able to create insta ...
I try to follow these rules: When Test Iterator is non const, you can only init with a non const When Test Iterator is const, you can init with ...
I have a code similar to this: Which fails: The error is easy to spot and understand: D lacks of assignment operator with int, even if its base ...
I'm trying to figure out what type the template currently is, I have looked in stackoverflow but did not find a solid answer. Basically I want to crea ...
I am using std::list's predicate to update the list based on predicate. But calling in the OnInitDialog() throws compilation error. My code is as foll ...
Newbie in world of MFC and MS Windows C++. I am trying to populate a ComboBox dynamically. But I am not able to convert the iterator pointer to CStri ...
I'm trying to create a vector class and my own wrap_iter class here is my vector.hpp and here is my main.cpp i'm getting this error when trying ...
I would like to build GRPC for WinCE with the c++98 std. What is the last Version where it is working? Is there one? I heared, that Google Protobufs ...
In C++11 or higher regardless of compiler int myArray[10] = { 0 }; would initialize to all elements to zero. The question is would this also work in C ...