General C++ Programming (Page 32)

Sort and Sum
Hi.! can anyone tell me what is wrong with this function.? double sort_sum(std::vector<double>& v...
[1 reply] : the range is [)... (by ne555)
Any mobile/cellphone app
I visit this site through my phone often but it is not that practical at times like when I accidentl...
[1 reply] : I have already thought about that, but I'm not a Objective-C/Java-C++ ... (by iQChange)
by truste
No match for 'operator[]
I have an assignment to create a grading system using multimap. It's not completed yet at the moment...
[3 replies] Last: Try and imagine what would happen, when there are several elements sha... (by tipaye)
Code Structure For Menu/UI
Hi guys. Just wondering if someone can advise on how to structure something like Game Menu. I was...
[2 replies] Last: I have basic state machine like this: #include "RT_Renderer.h" #inc... (by rebel Code)
text wont draw
i am trying to draw a text using sdl ttf, but it won't work //=================================...
[no replies]
by ntran
Exact arithmetic in c++
Hi everyone, What does the term "exact arithmetic" imply in computational science? And how do I a...
[1 reply] : (by SamuelAdams)
Specializing a method of a template class
Hi everybody, I'm trying to write a templetized (templated?) container class that can be sorted. ...
[4 replies] Last: It just has to return a bool representing a (partial) order between t... (by MiiNiPaa)
Problems with for loop and strings
Hi everybody. I am testing HTTP Headers and I have an strange problem. When I get the response of th...
[3 replies] Last: You have a problem with your code. char *TCPSocket::Read() { ... (by kbw)
by fafner
Going from struct to class
I've been working on a path-tracer for some time, and all along I've used structs instead of classes...
[5 replies] Last: ne555: I had done a bit of that already, but not enough. I wrote a few... (by fafner)
by abbash
Inheritance issue
I have the following code: #include <iostream> class A { public: virtual void f(int ...
[8 replies] Last: The last two comments are exactly what I wanted to know and wasn't 100... (by abbash)
by DouDou
Algorithm for permutations of operands and operators (1,2)
Hello, I have been scratching my head over this for a while, but I can't seem to figure out the a...
[24 replies] Last: Well, I may as well. (by helios)
What is wrong with my code when i press ctrl + z?
//TaylorZ Merchandis: TaylorZ Merchandise.cpp //This program is designed to calculate the sales for...
[1 reply] : char codes; //... codes!=EOF In C++, this macro corresponds to the ... (by MiiNiPaa)
Errors in my program
it will not run and im not sure why. I have a couple of errors, but I'm not sure why. Here is my...
[1 reply] : need to make those else's else-if's (by Little Bobby Tables)
Returning a pointer to an encapsulated data member
So, I've got this class in SDL Player that has, among other things, an SDL_Texture* to hold an ima...
[1 reply] : Normally its OK if you just make it const-correct, then they can't mod... (by NT3)
Can C++ have "dynamic languages stuff"?
I haven't said dynamic variables because almost all people would think in int* a = new int; . I mea...
[4 replies] Last: @Caligulaminus you got the right answer. Thanks :) (by iQChange)
Recursive Division Maze Algorithm
Starting work on a procedural generated maze (which I might make into a dungeon type thing as some p...
[no replies]
by edoz90
Strange SIGSEV on Genetic Algorithm
Hi all!! I made this program in C++ that should, by a genetic algorithm, build a word identical to ...
[5 replies] Last: Thanks for the reply and the patience! :) I know that my algorithm is... (by edoz90)
by poteto
SDL wont render on a computer.
So when I start my program on my desktop, and many other computers, it would normally work, but when...
[4 replies] Last: Can you quickly tell me which renderer falls back into what, because t... (by poteto)
problem with comparing two strings
Hi,I have trouble comparing two strings with strcmp. The bold part of the code are the parts that ar...
[2 replies] Last: Thank you ne555 for you answer which helped me a lot and of course tha... (by sabatiel)
Pages: 1... 3031323334... 47
  Archived months: [may2014]

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