initialise derived class with the base class instance
Hello, As per my previous post, I added the derived class. And in the code, where the base class is stored, i now changed to derived class Code: m_pCovCellInfo = new...
View ArticleLooking for SSE instruction
Hi, I'm looking for an SSE instruction, which I suspect is available somewhere in its instruction set. If I have 4 arrays, A, B, C and D: [A3] [B3] [C3] [D3] [A2] [B2] [C2] [D2] [A1] [B1] [C1] [D1]...
View ArticleForce a friend outside of class declaration?
Is it possible to force a class to have a friend class or friend function outside of this class declaration? For example Code: class MyClass { . . . private: int m_id = 0; }; //Somewhere else...
View ArticleText control as ES_NUMBER
Hi, ALL, I am trying to create a text control that will only accept numbers and so I used the style ES_NUMBER. Everything is built and ran fine. But when I tried to enter a character, the tooltip...
View Article[RESOLVED] Need help for a C++ hangman game
I have to write a source code for a hangman game, but I run into a problem where the number of guesses left only decrease when the guess is actually correct. Any help to fix this problem? Source code...
View ArticleAssert in debug mode
Hello, I have the following defined: Code: #define VERIFY(f) ASSERT(f) And from somewhere : template <typename T> T FnData(const CommonD& data, bool (CommonD::*memberfunc)(T&)...
View Article2015 project sln
I have two 2012 and 2015 visual studios on my PC. A .sln (solution file) which is created by 2015 version shows 2012 when I move the mouse cursor over it. Is it because it has inherited settings from...
View ArticleGood afternoon I need help with the software C / C ++ for Visual Studio Code
Good afternoon friends I need help and guidance: I downloaded and installed the software on my computer C / C ++ for Visual Studio Code And I want to program a computer game in the software How can i...
View Articleistream_iterator with for loop
Hello, I have added the following function, just for learning about stls :) . Not professional code, so please bear with me Code: #include <cstdio> #include <vector> #include...
View Articleperformance profiler for CPU usage in visual studio
Hello, There is some issue reported by our test team that this release is bit slow in one of the operations. So i was told to run the profiler. This is the first time i am running the profiler I wanted...
View ArticleTagLib linking error Qt
Hello programmers! I am builded TagLib 1.11.1 library with cmake for MinGW, installed it and connected to my Qt project: INCLUDEPATH += \ "C:/Program Files (x86)/taglib/include/taglib" \ LIBS += \...
View ArticleProgramm crashes due to the presence of code even if it is not executed
Dear all, I have written the following program using Visual Studio Express 2013 to figure out my problem: #pragma comment (lib, "ws2_32.lib") #include <stdio.h> #include <winsock2.h> int...
View ArticleMatrix input
Hello, This issue is again from my c++ practice session. Actually i have an input RR and CC, where RR is no of rows, CC is columns. And next line contains the column elements of first matrix, for each...
View Article'player::player': no overloaded function takes 4 arguments
Hello good day, I am an engineering student who is starting with programming in c ++, i am learning the Overloading operators, I don't remember how to fix this problem... MAIN:...
View ArticleRegistry access in Windows 7
I'm working on a program which uses RegOpenKey() and RegQueryValueEx() to access a particular registry key. Usually the key gets accessed like this:- Code: HKEY_CURRENT_USER\Software\Jack but I've just...
View Articlereplace with sort algorithm
Hello, I see the following code does the sorting , but it looks like very complicated way ( of trying to implement the binary search by itself). I was wondering is there anyway i replace it with the...
View ArticleFilter a txt file based on an Excel template
I have a text file composed of n records each of which consists of six numbers separated by a space, I need to filter this file to generate a new file that contains only the records that satisfy a...
View ArticleFile path name has some chinese or other characters
Hi All, I want to read a file which is present in some path which has some special characters as folder name as follows: C:\Test\Input\新建文件夹\Text.txt but problem now is with this special character in...
View ArticleMissing 'convenience filters after restoring from a backup
Does anyone know what generates the 'convenience folders' (filters) in a VS solution? Here's the kinda list I usually see in my IDE:- Notice that the header files are in a separate filter from source...
View Articleexample program
Hello , I am trying to solve the following example program. The code below is already there. What i am confused , is they have defined struct template, without defining the struct itself. Code:...
View Article