I have this code, but I need help to use OpenMP #pragma s to increase its speed. I want to parallelize the for loops over variables i and j . The values of n and m can be much larger, too. For example, n = 1000 , m = 500 .
My code:
for (int i = 0;...
I'm trying to understand the basics of C++ classes and the different forms of copying a class to another one, I made a simple class that use a table as a stack and i created simple function for stacking/unstacking integers
pileInt.h :
class...
How we can render or draw texts, numbers and characters in openGL and Qt opengl widget?
is there any step by step guide?
I tried renderText method but it seems that this method is no longer supported.
and freetype is mentioned in some sources but i...
I have two classes: a Parent class and a Child class (inheriting from the Parent class). I would like to know if it is possible to cast/transform a Child** to a Parent** with reinterpret_cast or something else. Is such a thing possible?
Below is a...
I was able to run this c++ program in linux without any errors.
This time I am trying to run a c++ program named epa in Linux using cmd but this time time , I am facing some errors....
I'm currently working on a project where I need to monitor the value of a variable stored within another process's memory. I don't have access to the source code of the target process, so I'm looking for advice on the best approach to achieve this....
I am creating an application which displays the market data and uses it in some other forms too. I store market data in a map say
std::map . Let me give one used case of how this map can be used.
Is it possible to use C++ language in making a game and use Python for artificial intelligence of NPCs?
In my country, this question has not been answered in my own language. I will be very happy if you answer.
This text is only to fill the minimum...
I declare a struct in a header file. I use this struct in two compilation units. One is compiled with -std=c++11 and the other with -std=c++20. The sizeof my struct is different in the two compilation units.
Is it allowed to mix any -std=c++20 and...
I have two classes a Parent class and a Child class (inheriting from the Parent class) I would like to know if it is possible to cast/transform a Child** to a Parent** with reinterpret_cast or something else?
Or such thing is not possible
Below is a...
I have downloaded and extracted the latest opencv-4.9.0 and installed latest code blocks-20.03.
When I tried to use the opencv functions like waitKey(), imread, imshow() to load an image and to display, after including the paths in the build...
I'd like to understand better why choose int over unsigned ?
Personally, I've never liked signed values unless there is a valid reason for them. e.g. count of items in an array, or length of a string, or size of memory block, etc., so often these...
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения