General C++ Programming - January 2018 (Page 10)

expected primary-expression before ')' token
 
Hello, Here is some code which generates an error : template <typename T> struct A { template...
[5 replies] Last: Thank you very much for your answers. The solution of Jun Zhang2 is w... (by frmilstein)
sorting list
 
hello everyone, I have std::vector<string> listItems i want to remove duplicate values not chang...
[2 replies] Last: #include <iostream> #include <string> #include <vector> #include <set... (by lastchance)
how can i compare vector of vector and then push back?
 
vector<vector<int>>funktion(char arr ){ vector<vector<int>>result; for(int a{0}; arr !='\0'; a++...
[3 replies] Last: Are you aware that vector<vector<int>> is like a 2 dimensional array, ... (by TheIdeasMan)
Why can't we directly delete top when pop variable out of top of stack?
 
Does anybody know why do we need to use temp in the below code? why can't we just directly delete t...
[2 replies] Last: After you've deleted top, the memory top is pointing to is not owned b... (by Jun Zhang2)
by vxr
Key press event in game
 
Hello everyone! :) I'm uber-beginner. I'm looking forward to making a simple app which would run ce...
[3 replies] Last: Any help is appreciated. Happy new year, by the way! (by vxr)
Reading content of pipe seperated string
 
Hi, I am new to C++ and i am stuck in the dilemma that how can i write code to read pipe separate...
[4 replies] Last: Rather depends what your data is between the pipes. #include <iostre... (by lastchance)
rename std::list::iterator
 
Hi, i want to shorter name of std::list::iterator, like std::list::myit. thanks.
[2 replies] Last: Letting the compiler deduce the type of the iterator leads to mode rea... (by JLBorges)
First ever FPS game with plugins
 
FIRST EVER!!! First Person Shooter game built entirely on a plugin architecture. After over a year o...
[2 replies] Last: Plan on including a build system (e.g. make) or project file so we wou... (by Ganado)
Do I need to declare init function in header file?
 
Dear all, I have just found in the same C++ example that, the VanillOption class has a init functi...
[2 replies] Last: Thank u very much cire!!! (by anjoazul)
Debug assertion error with C++
 
I have written some code for a photon simulation involving different skin types. I am using windows...
[11 replies] Last: I know what you mean I read some more on the STL and went on the Geeks... (by MBANS7A1)
dahua sdk export jpg realtime c++
 
I am using sdk dahua to connect to a DVR. Until then. I'm having trouble getting the bytes returned ...
[no replies]
smart pointer containing class type
 
I have a customer class containing Name and Age. I am wrapping the customer class in a smart pointer...
[2 replies] Last: Thanks. It was a silly mistake from my side for which my functor was g... (by shekharsahoo)
by Elize
Best way to find unique combinations of different objects
 
I'm going to simplify the problem I'm facing down to an abstraction while describing it to avoid con...
[2 replies] Last: I don't think that giving advice like that is useful for such an abstr... (by Duthomhas)
by lamx
Binary tree construct
 
construct a binary tree from in-order and pre-order and i need to printout the level-order the fir...
[5 replies] Last: OK... I GOT IT THANKS FOR HELPING i should write it in the same langa... (by lamx)
Why My Program Always Crashing On Else ?
 
#include<stdio.h> using namespace std; #include<iostream> #include<conio.h> #include<cstdlib> #...
[1 reply] : It seems there are missing braces { } around the statements to be cont... (by Chervil)
January 2018 Pages: 1... 8910
  Archived months: [dec2017] [feb2018]

This is an archived page. To post a new message, go to the current page.