General C++ Programming - December 2014 (Page 27)

by Lauke
Other Design Patterns (OOP and non OOP)
Hi Guys, I was looking for other design pattern in literature. I mean the most famous ones are the 15 Patterns of the GoF, but i was curious if there's any o...
Dec 4, 2014 at 9:31am
[5 replies] Last: What about multithreading design pattern instead? To be honest i have ... (by Lauke)
Shapes Menu
i am supposed to make a menu similar to the code below that when you enter options 1-6 and for each option theres a shape and you have to enter in the dimension...
Dec 4, 2014 at 5:02am
[8 replies] Last: i was actually able to fix it. i just separated each case in {}. it w... (by rsalzman94)
String comparison help?
Hi all, Long story short I'm creating a program that takes user input in the form of a string and tests to see if it matches a word. Each correct word will i...
Dec 4, 2014 at 4:50am
[3 replies] Last: If s is a std::string , why are you comparing it for equality to th... (by LB)
Simply looking for some tips to help make this program
At 8:00 PM, your little brother/sister starts to watch a movie using a DVD player. The length of a movie varies from 80 to 150 minutes. At 9:30 PM, you want to...
Dec 4, 2014 at 4:25am
[4 replies] Last: please use code tags <> for small program like this, its better to wri... (by anup30)
Copying a file
Hi, I'd like to build a class which receives a file, and edits a copy of it. How can the file's copy be generated neatly? Should I build a Constructor wh...
Dec 4, 2014 at 3:52am
[6 replies] Last: > The thing is that the constructor does not return any value, > so h... (by JLBorges)
by nthuth
Best design practice for accessing objects in another class?
I am working on a video game that is based on a tutorial I found online and I ran into an issue associated with accessing an object's method inside another clas...
Dec 4, 2014 at 2:33am
[5 replies] Last: 1. Then the bullet should know who fired it. void Comet::HitBy(Bulle... (by helios)
Trouble defining function
Hi everyone! So for Part 2 of my assignment, I need to define the function closest to find the point that is closest to my starting point with this given code, ...
Dec 4, 2014 at 2:29am
[2 replies] Last: int closest(Point& start, vector<Point>& village) { int flag; //unin... (by ne555)
if statment error
I have an if statement that should either match a text variable that the user has entered and a another text variable that has been got from an array but they w...
Dec 4, 2014 at 2:15am
[1 reply] : You're sure that everything matches up when you input args? i.e. answ... (by PimpedKoala)
Temperature conversion program, need help
I am new to programming and am having trouble grasping concepts with functions. Here is my problem: This program is to give the user the option of convertin...
Dec 4, 2014 at 2:01am
[3 replies] Last: Perhaps I am in the wrong discussion forum? (by thinker85)
How to use classes
Hi everyone, So this is the code that my professor gave us to start with, and I'm not really sure where to start with Part 1 of the assignment. I would real...
Dec 4, 2014 at 1:45am
[7 replies] Last: if (village < village ) flag = i; ¿how do you compare two points?... (by ne555)
My Linear-Search isn't working
This program is supposed to print out deposits and withdrawal of autos, but the problem is that it uses parallel arrays to link the car number (0,1,2,etc) with ...
Dec 4, 2014 at 1:40am
[4 replies] Last: Have you tried debugging? If you don't have time to learn how to use ... (by LB)
Initializing static map of variable type abstract class
The Situation: A have two classes, one inheriting the other, and the parent class being abstract (I plan on adding more child classes in the future). For rea...
Dec 4, 2014 at 1:35am
[3 replies] Last: [quote=Food 4 Thought]Like I said, the Parent class is abstract and I ... (by LB)
Horse Racing Program Help
Hello, I am writing a simple horse racing code for my Programming 1 class. I have everything done but cannot get the winner to be displayed at the end correctly...
Dec 3, 2014 at 11:49pm
[4 replies] Last: Problem solved! You are very welcome! Code: #include<iostream> #inclu... (by jasonwynn10)
by Akigou
Alphabetical search/strncmp
My program is supposed to look through a library database by Author's last name, but what I have gives out a single output each time. Im in a class and I n...
Dec 3, 2014 at 11:30pm
[1 reply] : bump please help (by Akigou)
x86 clock speed importance?
How important is it for an x86 to run at a certain speed compared to hardware? So running at 4.77Mhz when operating VGA registers or other hardware, how importa...
Dec 3, 2014 at 10:53pm
[no replies]
Custom DLL pathing in Dev c++
I'm using Dev C++ and I'd like to be able to have the dll files I need for things to be in a different folder than the exe for the program, how would I go about...
Dec 3, 2014 at 10:31pm
[1 reply] : This is what side-by-side assemblies are for. You need to create and a... (by Duthomhas)
Newline debugging
Hello, I am writing a driver program that will eventually need to pass two strings to a function I am writing in a separate file. I am reading data from a file...
Dec 3, 2014 at 10:27pm
[1 reply] : Still nothing.. I noticed that after "in front of," there appears to b... (by bwilfong3)
int- expression missing?
so i'm making a simple game and something keeps going wrong :C the area of error is cout << "Sales for the day are: "; int i = 0; //declare a v...
Dec 3, 2014 at 10:24pm
[no replies]
Random Cannon Generator
I am in a computer science class this semester and for an assignment i have to create a program that will: randomly generate 2 cannon angles between 0 and 90...
Dec 3, 2014 at 10:19pm
[1 reply] : check out the reference section of this site or just search rand() ... (by jasonwynn10)
Missing something
I'm currently stuck with my code and I need assistance please. This is the background of what I am working on: Mission 5 Background: Create a function...
Dec 3, 2014 at 8:23pm
[4 replies] Last: So after removing these lines of code i found that it runs. I guess th... (by JayJay007)
December 2014 Pages: 1... 2526272829... 31
  Archived months: [nov2014] [jan2015]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.