General C++ Programming - January 2014 (Page 11)

by Daleth
static constexpr functors
 
How does one use a functor as a static constexpr member? I had this basic functor for a class: ...
[4 replies] Last: Oh... Shows how little I understand of static members. My code works p... (by Daleth)
freeGLUT
 
okay guys! Do you think freeGLUT is useless for 2D game development? I am using freeGLUT to make ...
[2 replies] Last: freeGLUT isn't bad in itself. The reason why everyone is telling you t... (by TwilightSpectre)
C++ in unity
 
I just saw a youtube video of a guy making a game in unity. He wrote the game code in C#. Can you ...
[1 reply] : You can not write scripting files in C++. You either need to use C# o... (by Hippogriff)
Program not entering right loop?
 
{ char choice; cout << " Enter w to write or r if you want to read from the file: "; cin...
[2 replies] Last: Thanks daleth. That completely solved my problem. (by cppnoob25)
Quad formula assistance
 
Hi all, I was practicing C++ by making the quad formula but for some reasons it gives the wrong answ...
[2 replies] Last: For your solve functions, you should be dividing everything by 2*a, no... (by Daleth)
Matrix
 
I have a table of 250 patients divided in categories of age and blood pressure. I need to write a c+...
[1 reply] : This is a "find max/min element" kind of problem. You'll need a std:... (by Duthomhas)
Global variables for multiple cpp files
 
hello I am trying to get variables that are global to multiple files. I have mananged to make const...
[7 replies] Last: > would i need to put it if functions were used instead of variables f... (by ne555)
how to write a macro?
 
So I want to write a macro. I know the basics on input and output files but I have no idea how to wr...
[6 replies] Last: Well in C++, macros have better alternatives, i thought thats what w... (by closed account Dy7SLyTq)
by pukol
Game of BlackJack
 
This is for reference for anyone to make a game of BlackJack.. I just want to know if i could impro...
[no replies]
i need help!!!! please help me
 
i need help to explain the step of this following program. it a quick sort. PLEASE HELP ME IF NOT IM...
[1 reply] : #include<stdio.h> void quicksort(int , int, int); int main() { ... (by Computergeek01)
writing a program without using any type of container
 
hello every body this is my sily homework to write a program without using any type of container...
[4 replies] Last: dear Script Coder thank you so much! i was searching for something l... (by omidazadi)
Anonymous namespaces
 
Hello All, Is it possible to use an anonymous namespace declared in A.hxx and defined in A.cx...
[1 reply] : Anonymous namespaces (and everything defined inside them) are only acc... (by Script Coder)
button actionlistener error
 
it says it cant find SevenContinentsFrame please helppp /** * Write a description of class Seven...
[2 replies] Last: This is a C++ forum, there are many Java forums out there. Secondly, ... (by J4ke)
For those familiar with Dewitter's game loop, I could use your help understanding some parts of it
 
Here: http://www.koonsolo.com/news/dewitters-gameloop/ Is the link to the original article. and Here...
[1 reply] : Basically, you are updating the game every x milliseconds. while( Get... (by J4ke)
Allegro Shooter Game Error
 
I started making a shooter game where enemies appear randomly and you have to shoot them. Everything...
[3 replies] Last: I believe the correct way to do this is to use iterators for these vec... (by Zhuge)
Generalized sort function using lambda functions
 
Please help me improve my customSort function. It is to accept a lambda function as parameter which...
[9 replies] Last: How is the predicate_builder<> getting involved in this? predicate_... (by JLBorges)
Allocating an array of pointers to a dynamically allocated array?
 
I'm having trouble understanding what the problem is, but I'm trying extremely hard to understand po...
[2 replies] Last: Thanks! (by Notamongsheep)
What is a virtual function or method in object-oriented programming? What is its purpose?
 
What is a virtual function or method in object-oriented programming? What is its purpose? thnks
[1 reply] : http://bit.ly/1e2HjzG Please ask a more specific question. (by LB)
January 2014 Pages: 1... 910111213... 25
  Archived months: [dec2013] [feb2014]

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