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...
[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...
[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...
[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...
[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...
[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...
[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, ...
[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...
[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...
[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...
[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 ...
[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...
[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...
[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...
[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...
[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...
[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...
[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...
[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...
[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...
[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.