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

by frei
Template class inheriting a templated class
 
Hey everyone! I'm hoping someone can point out what I'm doing wrong, I'm completely stuck. I'm making a minimal spanning tree class that inherits a graph class...
[3 replies] Last: using namespace GraphNameSpace; // **** avoid at global namespace sco... (by JLBorges)
How to make a 2d game?
 
I want to make a side-scrolling rpg with a real time battle system, similar to this series - 勇者之路 (Sorry I think it's in Chinese, you may find some imag...
[no replies]
Morse Code to English
 
I need to covert English to Morse code and vise versa. I found English to Morse however I cant figure out Morse Code to English. When it runs it read the first ...
[7 replies] Last: FORASCHOOLPROJECTIREALLYWOULDNTWORRYABOUTSPACES. For something more a... (by Duthomhas)
by wrymn
How long would it take to create 2D game engine?
 
Hello there, Few months ago I have started to create open world, 2D space game with procedurally generated galaxy in Unity3D game engine. Now that the bones ...
[15 replies] Last: Grey Wolf - Yeah to me, or when word Game Engine is mention, we think ... (by wrymn)
by meifly
Arrays
 
Write a pseudocode that will ask for 10 words and output the word in alphabetical order. Hi.! i'm a newbie. Hope you can help me coz i have no idea how to do...
[1 reply] : create an array of std::string http://www.cplusplus.com/doc/tutorial/a... (by mutexe)
Question using cerr
 
So I have a while statement with the parameter (cin >> command) and the while statement is full of if and else if statements for different operations. I have an...
[3 replies] Last: #include <limits> //... std::string command; std::cin >> command; //R... (by MiiNiPaa)
C++ hangman project doesn't work correctly
 
my code compiles but it doesn't allow the user to guess the word correctly and when it displays the correct word, it is just a string of nonsense. #include <...
[7 replies] Last: I dont understand the logic inside file() function. What do you want i... (by tanezavm)
how to take input from the user on the number of elements in an array
 
really need to know
[1 reply] : int main(){ int n; //allusive message std::cin >> n; std:... (by ne555)
Trouble with passing class objects by reference
 
Hi, I am working on a program to simulate a zoo, essentially there are passengers that are waiting for a ride in cars around the zoo. This is a multi-threaded p...
[7 replies] Last: Thanks for the responses guys. cire, you were right, that was the issu... (by tmorlan)
Seek for help!! trouble with word puzzle!!
 
To write a complete C++ program that will find “hidden” words in a rectangle of letters. The words may appear in any direction (up, down, forward, backwar...
[no replies]
by sambos
help with for / function
 
Hi there, I have a function called fillRow(parameter1, parameter2) . The first parameter is an int and the second is a string . I'll try and expalin t...
[3 replies] Last: Thanks for the links and suggested code ne555 and MiiNiPaa. Code works... (by sambos)
by depei
why virtual table matters?
 
To implement dynamic binding, for each class, there is a virtual table to store addr of each function. Why this indirection is needed? can we just have the clas...
[1 reply] : can we just have the class directly store the ptr to the correct func... (by helios)
Another Question In c++ !!
 
Q3-Make a program for an array of structures that consists of three fields (the name which is a cstring, age is an integer, and address is a string object) and ...
[2 replies] Last: Yeah, I have no idea of how to start this. We need to see what YOU hav... (by CS Student)
Help with program
 
Hey I was working on a piece of code and I simply cannot figure out one issue. if anyone could help that would be great #include <iostream> #include <fstream...
[1 reply] : Um, I'm guessing the reason nobody has helped is because this looks li... (by CS Student)
by Immo
What should I learn after C++?
 
Sorry if this is a frequent question. I'd like to know what your two cents are on this. Let me preface this by saying that as far as my career is involved, I'm...
[2 replies] Last: Well, after I got C++ kinda under my belt, I've moved onto Java. The n... (by CS Student)
Help with 2d Array
 
Hello, my homework assignment is to create a 2 dimensional array that displays in a 10x10 table-like format after completing this assignment i must: a) sum of e...
[1 reply] : Well, for starters I would create five different functions (if you are... (by CS Student)
Expression creator, Please help
 
Please help me, I am trying to create an expression creator that prints the work out too, not just the answer. Code: #include <iostream> #include <windows.h...
[4 replies] Last: hello? anyone? (by jasonwynn10)
Read from file help
 
So I have to read from a file, and store the information in separate variables. My problem is that for some of the information I need multiple words, and for ot...
[2 replies] Last: you could use getline(myfile,string,':'); repeated again and again..... (by jasonwynn10)
EOC Project
 
Hi all, as the end of the year approaches, so does my programing project for college. it is a 4 part program and the first 3 parts went quite well. My only conc...
[4 replies] Last: Close. You have the node as being part of the vendor. It is actually... (by doug4)
how to make "std_lib_facilities.h" work Programming principles and practice using C++, Stroustroup
 
I saw there are lots of people having difficulties getting "std_lib_facilities" header to work.I myself spent "some" time trying to figure it out. And I fi...
[1 reply] : It's easiest to get working if before doing anything, you create the h... (by Immo)
December 2014 Pages: 1... 1819202122... 31
  Archived months: [nov2014] [jan2015]

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