Please, help me to figure out this. I have the following code in C (example): #define cutoff 22; double age; if (age == cutoff) { cout << "Good morning
Can someone will explain to me What is atltime.h ? I don't know how this header works. I tried to search it on google but i didn't get an answer of what atltime
I am new to C programming. and I know char * and char[] array are different. Yet, you can deduct the char[] to char * when it comes to a function param. So func
I'd like to access directly to the numbers composing the ciphertext Ctxt from HElib, but reading the documentation I don't seem to find anything that can help m
All the code is included in this post. For some reason, it tells me that, a memory leak is happening at shared_ptr.hpp(60), assuming this must be line 60 here.
I have a game written using SDL2, and the SDL2 renderer (hardware accelerated) for drawing. Is there a trick to draw filled quads or triangles? At the moment I'
Could you guys tell me why a simple c++ file can't work and gives me errors in the terminal.Is it a simple error? Thank you.The photo is on th
Consider this code: #include <array> #include <cstddef> struct A { std::array<std::size_t, 4> test; void method() { std::size
For example, could there be problems with the memory work inside this buffer if I use code like this? Can I use the input stream and use sv (string_view) with t
extern The return is a pointer to the internal array containing results info. It should not be modified results values are output as a float array (mantissa
Some data files that I need to read / parse have headers in the style: level0var = value0 level0var.level1field = value1 level0var.level1array[11].level2field
I have a question about the use of the Intel C++ compiler on Windows for compiling Qt projects. I know that officially ICC is supported only by Qt on UNIX, but
Consider the following simple (to the extent that template questions ever are) example: #include <iostream> template <typename T> struct identity;
int size(Node* root){ if (root == nullptr) { return 0; } return size(root->left) + 1 + size(root->right); } bool isBST(Node* node
In my simple app which I build with cmake I use opencv, which is installed with vcpkg. On CMakeLists.txt I have to find_package(OpenCV REQUIRED), replacing Open
I have been searching for an answer for a while and couldn't find anything that worked. Here is some background: I am trying to build an electron app that can u
How to create custom tensor value with shape (b,n,m) I see the cppflow::fill method but it allows inserting 1 value which fills the whole same value in the shap
I am trying to dynamically load printf from ucrtbase.dll, but GetProcAddress is returning NULL. Other functions like malloc and puts work, but not printf. int m
I have this project where we have to convert a made up simple coding language given through a txt into a c++ language and currently I am having a problem with c
I got this code from notes about file handling. From what I understand about this code, I want to get characters till x is reached in the file using this code.