General C++ Programming (Page 8)

"Ambiguous overload" doesn't look ambiguous
Hi, I've run into a rather perplexing issue. I've managed to distill it down into the code here: ...
[12 replies] Last: The latest version of MSVC actually does have ref-qualified member fun... (by wcassella)
vector of vector of unique_ptr
How do I fill a std::vector<std::vector<std::unique_ptr<Node>>> with blank vectors so that I can a...
[10 replies] Last: @MiiNiPaa: you are right, the explicit makes the difference. I had a... (by keskiverto)
Delay std::thread start?
Hello everybody! I'm writing an app, in which I'm creating an array of std::threads. They start i...
[6 replies] Last: I read, that it's better if all threads start sending data at the same... (by TheHardew)
by heepoo
segfault from strcat
hi everyone, i'm working with lua, and when i want to load a script, using TinyFileDialogs, i get th...
[9 replies] Last: it is very important to some programmers! and, all files has a descrip... (by heepoo)
Background Project Question / Game Engine
Hey guys/gals, I want to make an open world game that's kind of like the infamous series. Now I know...
[1 reply] : you can use unity or unreal engine or you can implement your own (by heepoo)
by calz
Change numeric string to alpha string in sentence
How do i change a numeric string in a sentence to an alpha string from what the user give as input. ...
[1 reply] : Test the words in the sentence and only modify the words where all ch... (by kemort)
dynamic pointer cast introduce std::__1? How to deal with it?
Hi, there I have a line like: std::shared_ptr<Sub> m1 = std::static_pointer_cast<std::shared_p...
[2 replies] Last: Right. Thank you! (by pipehappy)
Hash table on top of linked list
So I implemented a linked list and now I want to place a hash table on top. Am I going in the right ...
[3 replies] Last: ASIDE Does Node * current; need to be a class member? Given the way... (by andywestken)
decoding mp3 in a commercial product
I can use any number of free libraries to decode mp3, currently I'm using core audio on mac and liba...
[7 replies] Last: Well, Audacity is not a commercial application. Also there are subtlet... (by helios)
by Duoas
automatic ranged for over integer failure
Hey all, another weird question. I had written a ranged type that instantiates over any integer typ...
[2 replies] Last: Well, crap. I knew it would be something like that. I can guess why t... (by Duoas)
Checking rooms
Hey there guys! I was wondering if someone could help me make a function to check that I tick off a ...
[4 replies] Last: Currently I'm thinking about setting up a bool for isNotVisited(); an... (by dhayden)
Mathematical problem!
Hey guys! I am trying to develop a program that solves second grade equations. If the equation is f...
[5 replies] Last: I haven't looked at your code. I've used Dev C++ (not Orwell) for mayb... (by logankuiper)
by Tresky
Non Console Applications
Hey everyone, I would like to create new types of programs that are not based out of the console. W...
[1 reply] : Your choice of a GUI is like your choice of a favorite food or footbal... (by cnoeval)
by knb
Parsing in C++
I need to parse multiple lines from a file so that I only get a substring from each line. I have m...
[2 replies] Last: My first thoughts were that it was too complicated for regex? And rath... (by andywestken)
by Ganado
Pixels in angled gradient tool
Graphics related stuff, just wondering if anyone has any idea on some tips for rendering a gradient ...
[3 replies] Last: You can get rid of the sqrt() in the iteration by computing this const... (by helios)
by heepoo
weird problem in command line parsing! (1,2)
hi all, in my application, i want to use command-line parameters, if no parameters specified, show ...
[31 replies] Last: thanks, it worked, i've removed -mwindows and followed those instructi... (by heepoo)
Error C2440 on Visual C++ compiler
I have been getting this error error C2440: 'const_cast' : cannot convert from 'const DataAccess::C...
[3 replies] Last: Do you even know what const_cast<...>(...) does? However, the source ... (by coder777)
Expected Primary Expression before void ??
Expected Primary Expression before void ?? Actually , could anyone here help me please with this cod...
[3 replies] Last: you forgot a closed brais } (by heepoo)
Function Template Headers Causing Error
How come when I try to compile this with G++ it fails: #include <iostream> template <typena...
[4 replies] Last: AHAHAHAHAHAHAHA! It's all becoming clear now, Ganado. Thank you. That ... (by Aaron Vienneau)
Special Characters C++
Hi all, I have a problem with some special characters. When I go across the lines with the debug to...
[1 reply] : 1. Always check that your calls succeed. If [FindFirstFile()] fails o... (by helios)
Pages: 1... 678910... 19
  Archived months: [may2015]

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