General C++ Programming - February 2013 (Page 16)

header file problem
 
hey guys, im currently trying to tackle this problem: Class Definition Write the class definition for a class named Person as follows: 1. The class definit...
[1 reply] : void set_name() const - You want to give it a parameter in which the... (by Fransje)
X & 0 game
 
Hey guys, i just made this game in C++ for my school project, turned out pretty well. Just want to know if any possible changes can make this better. #includ...
[no replies]
Qt with OpenGL
 
Not the best place to ask this question but I will try asking it here anyway! (Seeing as this is the only place I am semi active in) I am trying Qt creator 2...
[7 replies] Last: Yeah I have tried copying that example directly and it all runs fine, ... (by Hippogriff)
Dice Program Help
 
I'm having a problem adding up the values of the dice rolls in a while loop. The program will only store the last value so how would I get it to store multiples...
[1 reply] : Use an array or some standart container to hold multiple values (by MiiNiPaa)
Manipulating Fractions
 
This might not be the place to post this, but Im trying to write this in C++ and havent a clue how to go about it. I am trying to generate a group of numbers...
[2 replies] Last: The problem I have is visualizing how this is accomplished through pro... (by closed account EUC9216C)
by Stash
Undeclared Identifier, but it is declared!!
 
I have a program with a class in different files, I've included the header file but it still keeps saying 'undeclared identifier' class header file: #i...
[11 replies] Last: > Pre-compiled header file was already turned off. Ok. Now try changi... (by JLBorges)
Matrix printing
 
I need help getting my initializer to work for my project. I get a segmentation fault when I try to print out what I've done. If I could receive any help, I wou...
[3 replies] Last: Just went through the program and changed every * * to * and removed e... (by Gulopey)
Error ' Has no member...'??
 
Please someone help me get rid of these errors! here is my container code... #ifndef CONTAINER_H #define CONTAINER_H #include <iostream> #include <sstream...
[3 replies] Last: Framework you were right... class Container { private: Item _item ... (by eibarra)
by toum
nothing
 
return * newarray ; doesn't mean anything in C++. Your assignment is to return a matrix, so you should return a matrix. It's easy: begin by creating a second ...
[4 replies] Last: My bad. I don't have the post anymore. Didn't think it would be much h... (by Gulopey)
help with pong game code
 
I am trying to write a simple pong game and have been following the lazy foo tutorial. I cannot get collision detection on the second paddle and I cannot get th...
[no replies]
by Cnaoum
Geometric Calculations
 
Hello! i'm trying to write a program that has 4 geometric calculations. One of the calculations has to have 2 choices. This totals to 5 options. The program sh...
[3 replies] Last: 5 choices: // SwitchCalculator - use the switch state ment to impl... (by greenleaf800073)
getting multiple ints from string data.
 
Hi all I'm having trouble making a .obj loader at present I'm trying to load faces that are defined as follows: f 1/1/1 2/2/2/ 3/3/3 so far I've separated...
[1 reply] : Which face data are you after? All three? (and by that I mean vertex, ... (by MrHutch)
Cstddef Declaration Errors
 
I've included <cstddef> into a project of mine in favour of <stddef.h> . When I tried to compile my project, I get 50+ errors stating that types such as " :...
[3 replies] Last: Thanks for the replies :) I turns out that the issue was because I've... (by closed account zb0S216C)
Program Crashes On Exit
 
Hi, I'm having some issues with my program. It crashes on exit. Could this be a problem with the destructor? #include <iostream> #include <cassert> #inclu...
[3 replies] Last: Peter87, I was getting a Window's "program has stopped working" error ... (by lightspeedcbr)
compare queue sizes in a vector
 
I have a paradigm where a integer before gets enqueued to a queue in a vector, the loop of queues is searched and integer is enqueued to a queue which has minim...
[4 replies] Last: No, line 11 is incorrect (by ne555)
empty state of queue
 
what is the empty state of queue?
[5 replies] Last: Enqueue means that you enter an element to the end of the queue. (by Peter87)
Cannot be overloaded
 
I'm trying to create a program that creates an array that behaves like a matrix with the ability to get any value I chose. So far I have run into a problem wher...
[3 replies] Last: I hadn't realized that was how it was done. I appreciate the help guys... (by Gulopey)
Sorting dynamic arrays with a function problem?
 
//================================================================ // Remove items/s //================================================================ void Ite...
[6 replies] Last: @greenleaf for(int j = i;j < _itemsCount;j++,i--) { _items = ... (by AbstractionAnon)
Problem with reading a file
 
Here is my problem... I am trying to read the data from the input file below and stop when the input file says "STOP". When I try to debug and print it to th...
[2 replies] Last: Oh ok. Yea that makes alot of sense. I was using Windows and Ubuntu de... (by mhaggard)
New to C++ and need some help
 
I need a little help. The problem is Write a function named maxValue that has three integer parameters. The function should compare the three values and retur...
[10 replies] Last: Thanks all. Sorry I didn't post the code originally, but I started out... (by zaladfingers)
February 2013 Pages: 1... 1415161718... 43
  Archived months: [jan2013] [mar2013]

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