I have my program for windows, which uses windows system library (let's name it "sysLib"), and it implements function "libFun1". My program can look like this:
I want to delete elements from an array for the given range (indexes) without using vector. For example, if the array is arr[5] = {1, 2, 3, 4, 5} and the lowRa
I'm trying to make some simple OpenGL application with light included. I want to have a position of my light in the global scope to change it in some other part
So i want to make a simple if statement like this : if(a=1) { if(variable1=1) { cout<<"a1=1"; } else {
I'm trying to build a Windows Application in Python. But, sometimes I question myself, can this Application run on another person's PC without installing Python
I have this std::stringstream object whose contents I have to read (only) twice. For this I thought I could use its seekg member function to repeat the reading.
I've got a DLL that I've created as a C++ Win32 application. To prevent name mangling in my DLL, I have used the EXPORT definition defined below: #ifndef EXPOR
I tried using #pragma optimize("", off) to selectively disable optimizations for the a() function. This does not work. Is there any way to control optimization
I am working on the GeeksForGeeks ZigZag Tree Traversal problem: Given a Binary Tree. Find the Zig-Zag Level Order Traversal of the Binary Tree. Example 1: Inp
I have a C++ application that runs on Python 2.7, today I decided to upgrade to Python 3.9 but ever since then I've been getting the following error in visual s
#include<bits/stdc++.h> using namespace std; //FIRST REPEATING ELEMENT (APPROACH 2) int main() { cout<<"running"; int n; cin>>n;
I have the following code: #include <vector> #include <iostream> struct Data { Data() = default; Data(const Data& other) {
I keep getting the following errors Error (active) E0349 no operator "<<" matches these operands Error C2678 binary '<<': no operator found w
I understand that if 1 is added to INT_MAX it will overflow and we will get the negative maximum. It is connected in a cycle. In the code below can I calculate
I am implementing a server rest using Crow. In my code i want to do some action before sending the response. These action are complimented in another class. it
Consider the following code: enum ABC : char { a, b, c }; void ff(char c) { cout << "char\n"; } void ff(int i) { cout << "int\n"; } i
Background Imagine the situation: static library libR.a is written rust and it depends on libCXX0.a. Binary X depends on both libR.a and libCXX0.a and it is wri
I have written an IoT Edge C++ module that is sending the event output using the following function call: bool IoTEdgeClient::sendMessageAsync(std::string messa
OS Linux Ubuntu 18.04, gcc 7.4.0 A program should load one SO which is dependent on other SOs. All exported functions of all SOs should be called by the program
How can one do this, which is obviously impossible C++, in real C++?: Type decodeUiEnum(UiEnum myEnum) { // impossible: cannot return a data type // one sw