General C++ Programming - May 2012 (Page 38)

error about multiply defined symbols
 
Many apologies if I'm just being dense. I have a header file which looks like this: #ifndef BIGNUMBER_H #define BIGNUMBER_H class BigNumber { private: ...
[2 replies] Last: Many thanks. It works now - apologies for ignorance. (by Lotus Eater)
Data file will not read, keep getting error.
 
Data file won't read, i have tried everything and have been on so many different forums. I made sure the file is the same name, i created the .txt file, copied ...
[4 replies] Last: The last thing you said was it. .txt.txt It is working now, thank y... (by Wesley Talbot)
Help on assignment
 
So basically I have no idea what to do for this. My teachers assigned this as our final project and it is way harder than anything we did in the class up to thi...
[1 reply] : http://www.cplusplus.com/forum/beginner/1/ (by webJose)
problem accessing an element from large size array
 
#include <stdlib.h> #include <stdio.h> #include <iostream> main() { int int_len = 942132421; //int int_len = 505262043; size_t x(int_len); ...
[5 replies] Last: Thanks, I get the point. (by ashishkumar)
by cdalto
Cannot Declare Variable To Be of Abstract Type
 
I'm just trying to see if everything that I have written so far is correct for my program. However whenever I try to compile, I receive there error message: ...
[4 replies] Last: Alright that was the problem. Thanks for your help! (by cdalto)
error opening/reading multiple input files
 
i don't have much code in this and am getting an error... The algorithm design calls for opening: the actual source file "fileMerge_axxxx.cpp" to read from th...
[4 replies] Last: i decided to open the file using the actual path and that made it work... (by tny4progress)
by Jenga
Allowing injection.
 
Alright, so here's the scenario.. and I figured a majority of you are the smartest to select for the task. I don't have very advanced knowledge on this, and if ...
[2 replies] Last: Understandable, ascii. I can see where you may feel dismayed to help a... (by Jenga)
Event system
 
Hello, As an exercise i'm developing a game engine on top of the SFML framework. I have a statemanager and collision detector and now I'd like to make an ev...
[10 replies] Last: I created an example using templates on how to create Events and use E... (by codekiddy)
How to calculate cube roots?
 
Using cmath's pow function doesn't seem to be working, pow (4, 1/3) returns 1. How do I calculate cube roots properly?
[3 replies] Last: 1.0 and 1. are double while 1.f and 1.0f mean float (by b9315010538)
C++ reading data from file trouble
 
I am having trouble reading data in from a file that is formatted like so: Name State Money per hour Hours It would look something like: John Doe C...
[2 replies] Last: Yes, that was the problem. Thank you very much. Can't believe it was s... (by sharkbait)
Classes, why is this considered bad coding?
 
My program compiles but my teacher said this was considered bad coding? class Dice{ //Constructor public: Dice(...
[6 replies] Last: clanmjc (503) May 2, 2012 at 8:49am it should be Dice(int number) w... (by maskanio)
Good game engine or API for simple 2D in 2012
 
I hate to beat a dead horse here, but I am going to anyway. I plan on starting with a basic ant like simulation, with different classes with behaviors describin...
[2 replies] Last: Thanks for the tips :) (by Algar32)
C++ Pointer and output not correct
 
My wins and losses are not reporting correctly. I am not sure if i am using the pointer correctly either. Please help. #include <iostream> #include <ctime> ...
[9 replies] Last: This is my first time doing C++, my logic and vocab is sub-par. I was ... (by tripline)
how would i get my class to make three different copies
 
In my game I have a bunch of enemies that share the same class the only difference between them is their starting potions and colour how would i reduced my code...
[1 reply] : #include "Thirsties.h" #include "Game.h" #include "GL_Functions.h" #... (by programmeraie125)
Sum of array elements in a dynamic array
 
I'm trying to sum the elements in a dynamic array. This is the code thus far. #include <iostream> #include <cstdlib> using namespace std; void fillar...
[3 replies] Last: Thank you slicedpan! It now works perfectly! (by Night Rawk)
menu system moving wayyyy to fast
 
making a menu system for my game and i got it to work but for some reason my selector icon/arrow moves a million miles per hour and i cant seem to slow it down ...
[no replies]
Data getting clobbered in function call
 
Hey, I'm getting a really weird bug where some of my class data is getting overwritten before the body of the function executes. I can't seem to reduce it to a ...
[no replies]
Portable C++ Definite Sized Types
 
Hi I am developing a library in which I need to use definite size types across all compilers and versions of C++. These would be similar to microsoft's __int32 ...
[2 replies] Last: Thank you very much, which header do I #include to use these? (by flayneorange)
The use of Game Engines VS Writing Code
 
Hi, I have been wondering lately that many gaming companies demand exceptional C++ coders for their job positions but all of them use game engines like Unrea...
[1 reply] : [quote=ChosenTorture] "So does using a game engine require expert C++ ... (by closed account zb0S216C)
May 2012 Pages: 1... 363738394041
  Archived months: [apr2012] [jun2012]

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