General C++ Programming - June 2015 (Page 4)

"... was not declared in this scope"
 
When I build it, it returns an error in the ".cpp". The error is that neither "titulo" or "nodo->autor" are declared in their scopes. My question is, in the...
[7 replies] Last: jesus i wasn't even drunk when i typed my reply :/ void before the cla... (by mutexe)
by mqazi
Pointer of type Vector
 
Is is there any way to create pointer of type vector that stores references to other vectors ? Also I want to dynamically create vectors. Any help will be appre...
[5 replies] Last: MiiNiPaa are you asking about type of values stored in vector ? (by mqazi)
How is '\t\t' a character?
 
So I accidentally entered '\t\t' hoping to get two tabs (I realize what I did wrong) Instead of getting an error for what I thought would be entering a string/m...
[5 replies] Last: thanks, Computergeek01, that makes a lot of sense. I've just never see... (by sabres12)
"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: http://goo.gl/TYqayI I'm basically trying to overload a f...
[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 add to a specific level? I'm making a parse tree and I'm usin...
[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 immediately after being created. How to do it, so that they w...
[6 replies] Last: I read, that it's better if all threads start sending data at the same... (by TheHardew)
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 that this is probably never getting finished by one guy but...
[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. Example: I have 15 apples in box12. output: I have BB...
[1 reply] : Test the words in the sentence and only modify the words where all ch... (by closed account 48T7M4Gy)
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_ptr<Sub>>(m); m1->call(); Where m is a pointer to Sub's b...
[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 direction? I purposely avoided templates just to make this ...
[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 libav on windows, but where do they stand on the mp3 license you...
[7 replies] Last: Well, Audacity is not a commercial application. Also there are subtlet... (by helios)
automatic ranged for over integer failure
 
Hey all, another weird question. I had written a ranged type that instantiates over any integer type so that I could write a simple for loop as, for example: ...
[2 replies] Last: Well, crap. I knew it would be something like that. I can guess why t... (by Duthomhas)
Checking rooms
 
Hey there guys! I was wondering if someone could help me make a function to check that I tick off a room in a text based adventure game to make sure that I don'...
[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 for example: x^2 + 2x + 3 = 0, the user has to enter the P an...
[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. What sort of libraries or technologies should I look into to ...
[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 my sample data and my rough algorithm below. Sample Data: ...
[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 (ex: color interpolating from yellow to orange from one side...
[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 open dialog to select a file if -h or --help was specified,...
[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::Common::CTMCTable<taBoundingBox> *' to 'DataAccess::Generic::...
[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 code. #include<iostream> #include<stdio.h> #include<s...
[3 replies] Last: you forgot a closed brais } (by heepoo)
June 2015 Pages: 123456... 16
  Archived months: [may2015] [jul2015]

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