General C++ Programming (Page 2)

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)
C++ 17 Parallel Sum
Following web site has small program to parallel sum elements of Vector: < http://en.cppreferenc...
[8 replies] Last: If you need to stick to visual studio, you can thread your own easily,... (by jonnin)
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]
How to implement logic of the set sorting ?
I want to implement the logic of std::set in c++, for example (example is different from the std::se...
[1 reply] : Internally, the elements ... (by ne555)
Declaration of Templates
How are templates declared in the header file? E.g. I have the following function template in .cp...
[4 replies] Last: Note that this compares the argument value with itself. template<ty... (by JLBorges)
Understanding the creature created by static_cast<type&&>(x) (1,2)
From If new_type is an rvalue reference t...
[25 replies] Last: telling the compiler to generate an xvalue is exactly what it has to d... (by Cubbi)
Add the digits in 2^1000
how do i add digits in 2^1000; i need idea on how to do it?
[16 replies] Last: See one algorithm here: (by lastchance)
Good C/C++ projects
Hello, I'd like someone to recommend me a good C/C++ project. I googled online, but I could only ...
[12 replies] Last: First the STL has one already and second they should not be used at a... (by zepher)
Detect if a file exists?
Is there a way to simply do this? Edit: Also looking for a way to detect what the extension is. Ed...
[11 replies] Last: For now the best would be to use boost or Kahless_9. (by zepher)
Problems with basic SDL with C++: SDL_Rect
Hello, I get an error(EXC_BAD_ACCESS) on the first declaration in the for loop in my code. Everyt...
[1 reply] : You have an array of pointer. The pointer needs to point to something,... (by coder777)
Problems with a linked list where every node has a pointer to the left, right, above, and below.
Hello, I am trying to write a program to handle a linked list that is connected from all sides(i....
[4 replies] Last: As a global, it is zero-initialized. Ah, I'd forgotten that - thanks... (by MikeyBoy)
Why can std::move() force move semantics and I can't?
std::move() casts any given parameter into a rvalue reference Suppose I have a struct obj st...
[13 replies] Last: Thank you all very much :) (by gedamial)
Returning by value [vs] returning by rvalue
Look at this code string&& join(string&& rv, const char* s) { return move(rv.append(s)); } st...
[4 replies] Last: Thank you for the detailed explanation! Let's see if I understood tho... (by gedamial)
by Mite
Background image
How to add background image for c++ program...i read something about library Cimg.H..How to install ...
[14 replies] Last: ok its done...i need to install imagmagick (by Mite)
Pages: 1234... 16
  Archived months: [may2017]

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