General C++ Programming (Page 6)

by RezaAb
How to pass values of vectors to 2D matrix or a vector in Eigen
Hi all, I am trying to solve a linear equation Ax=b using Eigen's abilities for the A as a square ...
[2 replies] Last: I tried the Map class, but I was wondering what should I include in my... (by RezaAb)
Cannot Compare String to String
Hi, I am having trouble with my code not being able to compare two strings. One is user entered, and...
[8 replies] Last: If you are right @dhayden, I guess that could have happened using a ch... (by Chervil)
by mj1709
Segmentation fault custom sort with a struct
I am using a custom sort function with a deliberate bug. I want to know why is it failing. Code: h...
[7 replies] Last: ne555, you're right. I made a mistake. A better example would have be... (by Peter87)
by RezaAb
1D nearest interpolation
Dear all, I am trying to find a routine to interpolate a 1D vector based on NEAREST NEIGHBOR. Fo...
[7 replies] Last: Thank you all very much, using your suggestions, I improved my functio... (by RezaAb)
by sna3
ifstream file
let say i have to call a matrix, say matrix A and then i input it as file. the i have to ca...
[10 replies] Last: @chervil Really appreciate your help. I am actually looking at your pr... (by sna3)
by i773
Is it possible to access a function for a running application dll?
I am just getting into the deeper parts of creating dll's and I am wondering if it's possible to fir...
[6 replies] Last: "By the way, it's terribly confusing how you keep using the word "app... (by i773)
Saving Website data into exel
Hey guys, sorry for my english but i am looking for a programm to save some website data into an ...
[2 replies] Last: If the data is rather simple, you can dump to text (CSV style) and pul... (by jonnin)
adaptive simulated annealing
is anyone having an idea about adaptive simulated annealing algorithm and how it can be implemented?...
[1 reply] : You could peek how Lester Ingber did it ... (by keskiverto)
Confused about SFML sf::Drawable
I have a function in my main class in my Snake Game SnakeGame::getDrawables which returns a std::...
[2 replies] Last: Thanks! This worked! (by RUNNER PRO AGARIO)
How to assign array of pointers
I have a 2D array: unsigned char** x = nullptr; I first assign the column vector like this: x =...
[2 replies] Last: > new (unsigned char*) returns ... This is an erroneous construc... (by JLBorges)
Are my std::add_lvalue_reference and std::add_rvalue_reference implementations correct?
Hi. I read that the type_traits header file gives two utilities: add_lvalue_reference and add_...
[11 replies] Last: > Perhaps something like this Yes! Thanks! A huge improvement on the ... (by JLBorges)
by evdo
the quickest method finding the greatest number in array
Hello guys! i would like to learn the quickest method for finding the greatest number (interger) in ...
[4 replies] Last: if very large, multi-thread might help. If a true real time program,... (by jonnin)
by Rajpal
Class Shape and issue related to reflcet and translate point
Hello I was asked to write an abstract shape class with pure virtual functions and then implement...
[3 replies] Last: Please post responses in the other thread. (by dhayden)
Book for Numerical Analysis with C++
I am looking for a book in Numerical Analysis, with algorithms implemented in C++. Basically, I am l...
[4 replies] Last: It is not exactly what I am looking for. To repeat it: ". I would like... (by Claudius7)
by cmisip
Casting a memory address into a pointer type to get the value at address.
Why does the following code produce different results for Method 1 and Method 2? /* * To change t...
[9 replies] Last: I just read an article about this. He re... (by cmisip)
Returning a pointer to char
I have a class that looks like: class xxxx private: char * firstname ; public: const ...
[4 replies] Last: Here are four different versions (and more variations are possible) Th... (by JLBorges)
by Yany
Problem running a project with FMOD library outside the development environment
Hi everybody, I'm using FMOD Low Level Programmer library and API, as an additional inclusion t...
[4 replies] Last: Helios, I found the problem. Sorry, it was my fault. It was because of... (by Yany)
Why is my "Universal" Constructor called twice?
Look at this code template <typename T> class MyClass { public: // Copy Constructors MyClass(co...
[16 replies] Last: Oh that's nice! Thank you! I see from the commit they just added it t... (by gedamial)
High Level Research Paper
I understand a good bit of C++. I am what you will call an Intermediate Learner. For my Internship I...
[11 replies] Last: It looks like you're talking about the statement at the bottom of Fig ... (by dhayden)
by i773
.dll question about acquiring an object from managed code
I'm trying to call a .dll function from managed code but the application has it's own plugin entry p...
[no replies]
Pages: 1... 45678... 10
  Archived months: [jun2017]

Cannot post in this page. To post a new message, go to the first page.