Here is my source code #include <casadi/casadi.hpp> int main(int argc, char** argv) { casadi::SX x = casadi::SX::sym("x"); return 0; } I use gcc v
I am currently writing a C++ FTP server and I was wondering what would be the best way to read the EPRT command from the client. << DEBUG INFO. >>:
I currently have this code where I need to use standard POSIX calls to write text to a file: file = open(filename, O_CREAT | O_RDWR | O_APPEND, S_IRUSR | S_IWUS
The code below compiles except for the lines template <> std::map<std::string, std::function<Goo*(Foo*)>>& Factory::getMap<Goo, Foo*>
I'm implementing a simple timeout-class which calls a given function when time runs out. However I'm scratching my head on how to make the function constructor
is there are a way I can check during compile time, that all subclasses of a given class satisfy a given typetrait? For example: I want to make sure that all cl
This is an assignment that I am doing for university and I have not had many problems with assignments up until this point. I would expect my program to be work
Our hardware is Intel Xeon Phi so we are encouraged to get the most out of it by replacing hand-written linear algebra ops (e.g. square matrix multiplications)
I am trying to write a relativity big code. The main problem, for awhile, is that there is a problem occurring when I define a dictionary. I have a .hh file nam
Mat m = Mat(4, 4, CV_8UC3); IplImage * iplImage = cvIplImage(m); error: cannot convert ‘_IplImage’ to ‘IplImage*’ {aka ‘_IplImage
I am working on a program and I need to make a class about cars. I need to add setFunctions that only allow a car year manufacture of 1930 -2030 as input, anyth
I have an imu and gps only and i want use them for localization. I am using robot_localization ekf node. its setting is similar to this. when I view the tf on r
I would like to ask which QWidget or which Qt GUI item would be best to use to display a variable that will change during the lifecycle of the program, in a box
I've been searching through questions on this for hours, and it just isn't working for some reason, so sorry if there's already an answer and I just didn't unde
I am trying to execute an exe file which is embedded in a buffer. I try to execute this exe file with createProcess (i think that this is possible) but i get th
I am writing a C++ program where I wish to use a friend class in order to access protected members of another class. Here is the header for the class I wish to
Just ran into this very strange bug. I'm getting crashes due to memory errors after adding a new shared_ptr instance variable in an existing containing class.
I am new to programming with the AVX/AVX2 instructions and am trying to optimize the speed of my code. Following the older expectation that passing by reference
I have a private class variable char name[10] to which I would like to add the .txt extension so that I can open the file present in the directory. How do I g
CMakeLists.txt cmake_minimum_required(VERSION 3.8) project(untitled) set(CMAKE_CXX_STANDARD 11) set(SOURCE_FILES main.cpp) add_executable(untitled ${SOURCE_F