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

What to study
 
i finished a book about c++ i learned the basics functions,arrays,classes,headears and etc.But i st...
[2 replies] Last: Try this: http://www.cplusplus.com/forum/articles/12974/ They are ex... (by piperpipe200)
Why doesn't my code work to move my character for dungeon claw?
 
cin>>answer; if (answer == "w"){ playery++; } else if (answer == "s"){ playery--; }...
[8 replies] Last: -__-... Thanks i feel so stupid that I couldn't figure that out. Now i... (by piperpipe200)
Visual Studio 2012 Dynamically Linking & Statically Linking in 1 Project
 
Hello, I've recently integrated a scripting functionality into my game engine (squirrel), but I can'...
[8 replies] Last: Oh yea, I just changed the project settings on the library solution to... (by closed account N36fSL3A)
Looping in a .ccp class file
 
Hello. I have a class with a .h and a .cpp file. (I'm unique!) In the .cpp file, I have a loop and a...
[1 reply] : My bike used to work but now it doesn't. Can you tell me what's wrong... (by LB)
Help with switch statements in GLUT
 
Hello ladies and gents! Just a quickie - I'm making a game in OpenGL GLUT. A ball is going to move ...
[1 reply] : If I understood your question you should place instead of //do someth... (by JewelCpp)
by Ceset
sdl key press delay
 
hi when you press a key it automatically delays a bit then starts repeating without delay. the...
[7 replies] Last: thx @Disch it fixed the prob (by Ceset)
Simple Address Book
 
Hello Everyone, I'm a noob of sorts. I have one class of C++ under my belt but I'm brushing up on...
[2 replies] Last: Awesome! That worked. Thanks for explaining why as well. Very helpful... (by christensen143)
Defining member functions outside the class definition
 
#include "stdafx.h" #include <iostream> #include <math.h> using namespace std; class Calc { priv...
[3 replies] Last: u mean ccalc.getvalue() in place of getvalue()? but thats not working.... (by praneshiitm)
by oswww
friend templates
 
template<typename T> class A { //... }; template<typename T> class B { //... }; t...
[5 replies] Last: sure: template<typename T> class A; // declares A as a class template... (by Cubbi)
std::stoi() problem.
 
Following advice from one of my other problems, I decided to make use of stoi(). Here is my implemen...
[5 replies] Last: But thank you for the solution, anyway! (by TsarLenin)
fluxuating class members
 
I'm trying to make an address book program where the user can create as many addresses as he/she wan...
[1 reply] : Please use code tags when posting code, to make it readable: http://w... (by MikeyBoy)
'String' does not name type
 
While compiling i got this error, C:\Users\Derv\Desktop\Census\QuestsAndAnswers.cpp|25|error: '...
[9 replies] Last: Oh.. thanks :) (by FlyinPineApplz)
using library file unittest
 
hi my program is find non printable ASCII value(1 to 32) and calculate count from a text like "hi<ta...
[1 reply] : It appears CppUnitTestAssert.h doesn't have a ToString() template spec... (by tipaye)
2D game problem here
 
Listen up guys, I have created a side scrolling game in 800x400 display. Ball continuously moves in...
[1 reply] : I see 2 problems with your previous approach. 1) You aren't wrapping... (by Disch)
Undefined Reference
 
I'm a college student majoring in Computer Science but i'm fairly new to C++. While trying to call a...
[16 replies] Last: Thanks again ^^ (by FlyinPineApplz)
CRC 32 Calculation of File
 
hello i need to calculate crc32 of a input file and check with the original crc value of a file an...
[4 replies] Last: boost example is at http://www.boost.org/doc/libs/release/libs/crc/crc... (by Cubbi)
bitwise or operator
 
int main(void) { int a=0000000000000001; int b=0000000000000010; int c=a|b; pri...
[2 replies] Last: in addition to Cubbi's answer, you cannot represent a binary number li... (by fcantoro)
hangout game!
 
Dear friends....please help me with this code..i found pieces of code and put it together but it doe...
[3 replies] Last: You have to increment the "state"-variable ( ++state ) or change the l... (by jzs)
pointer arithmetic
 
I'm struggling a little bit with pointer arithmetic. In the below example, let's assume argc is 3 an...
[4 replies] Last: while (--argc > 0 && (*++argv) == '-') while (c = *++ar... (by kbw)
Help read data from DAT file
 
Hello everyone. Everyone know about the Mummy Maze Game of Popcap, right? I want to make a game lik...
[no replies]
January 2014 Pages: 1... 202122232425
  Archived months: [dec2013] [feb2014]

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