General C++ Programming (Page 9)

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] : http://www.cplusplus.com/reference/set/set/ 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 http://en.cppreference.com/w/cpp/language/static_cast 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: http://www.eng.utah.edu/~nmcdonal/Tutorials/B... (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)
by mogha
CSS File parser
 
I am looking for simple CSS file parser.This parser should parse file containing styles. Any simp...
[no replies]
Overloading operator<< to take wathever type
 
Hi everyone, this is the code I have so far: #include <Windows.h> #include <iostream> #include <st...
[2 replies] Last: Thanks for the reply JLBorges, though actually while waiting for a rep... (by Marcus Aseth)
Exception Catching
 
I'm trying to do a try catch in line 21, so if the user types something other than 1, 2, or 3 it wil...
[3 replies] Last: This is not a good use-case for using exceptions. However, this is how... (by JLBorges)
array class
 
I'm trying to change my basic array so I will instead be using the array class. How can I do this wh...
[1 reply] : Line 10 needs to be: array<Record, 10> book; string doesn't make s... (by coder777)
Trying to pass an abstract class reference to shared_ptr?
 
Hi guys, So I'm trying to kinda do a Java thing with C++ which is apparently capable. I'm trying ...
[2 replies] Last: Note that make_shared is used to create new objects. In the AppStateMa... (by Peter87)
count and list a divisible number in array
 
Hi. I need to create an array 10 x 10 numbers from 1-1000. Then enter a number that is evenly divisi...
[2 replies] Last: I see the suggestion to make full use of the function parameters hasn'... (by Chervil)
Generic Function
 
I want to write a class(Generic Function) to store the function, its parameters and its reture type....
[no replies]
ShiftOut issue.
 
Hi everyone. I am working currently with two 8-Bit 74HC164D Shift Registers that are driving 2x4 7se...
[1 reply] : Anyone please? (by RytisBe)
by cmisip
Pointer assignment question
 
I am missing something here. Why can't I assign the address of a pointer to another pointer. Assi...
[11 replies] Last: Thanks for everyone's time and attention, Chris (by cmisip)
Pages: 1... 789101112
  Archived months: [jun2017]

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