General C++ Programming - July 2012 (Page 27)

"How Do I" create RPG in C++ w/o graphics
 
Hello, I am in Intro C++ class & I have to create a "RPG" (role play game). I am having some chall...
[15 replies] Last: Well a function isn't a control structure, really. Control structures... (by MrHutch)
by CMarco
Vector of vectors
 
Hello to all, I have a vector of strings and i want to put this vector of strings inside another ...
[5 replies] Last: Hi, Thanks... sorry, code tags will be use from now on. Regards... (by CMarco)
strange output
 
Hello.Take a look at: #include <iostream> using namespace std; int main() { int a = 2, b ...
[5 replies] Last: Oh, sorry, got it. Very tricky code indeed! Thank you (by hooshdar3)
Read Files?
 
I am creating a program that calculates day, time, and month, year, as well as minutes using C++. Th...
[4 replies] Last: On line 29 you permanently keep overwriting seconds . The stream det... (by coder777)
Class Deriving Question
 
I'm a bit of a n00b when it comes to class deriving, so bear with me in this problem. What if I w...
[17 replies] Last: "favour composition over inheritance" Sprite would mean to fit better... (by Hypersion)
by ljs
set of iterators?
 
dear all, I am trying to use a set of iterators, like this set< map<class_a*,class_b*>::iter...
[6 replies] Last: Not only invalidated, but just modified in any way affecting equality ... (by rapidcoder)
how to write a program using c++ that should read some particular data from a file?
 
hey.. can anyone tell me the code that could read some certain information from a file. for exampl...
[5 replies] Last: any answers ?? (by Utkarsh Vashistha)
template<ClassName derivedClass>
 
If I can specify a base class for a template-based container, e.g. container<Brick> wall; And I ...
[7 replies] Last: There is no need for templates if all the elements need to be derived ... (by closed account o1vk4iN6)
I need help with this loop
 
I just started C++ a week ago. and i'm working on a guess number game. Everything works fine but the...
[2 replies] Last: You can "leave" a loop using "break". So, in place of writing cout <<... (by S G H)
by stbb24
random number problem
 
Given this array size 7x4 12 5 6 34 10 45 5 23 20 89 76 5 11 34 3 44 34 2 3 22 89 ...
[6 replies] Last: i tried this so far int random(int a ) { int r1, r2; sran... (by stbb24)
Does not Compile C++ structures & strcmp in control stmt
 
#include<iostream> #include<fstream> #include <cstring> #include <deque> #include <vector> #inc...
[3 replies] Last: You could write if ( Qtz == "QTU" ) instead of if (strcmp(Qtz.c... (by vlad from moscow)
SDL 2D Rotation Help
 
I'm a bit new to programming in general. I've become stuck while trying to make a simple rotation f...
[10 replies] Last: IMO You should really just let the video hardware do rotations. Maki... (by Disch)
SDL lagging cursor image
 
Hello and thank you for any help you can offer. I am currently using SDL to make a simple game. My ...
[2 replies] Last: Thanks for the quick reply. This has sorted my problem and its working... (by ewan1199)
Template pointer
 
Lets say i have a template A, and a class B. In B's constructor I pass the following argument list:...
[2 replies] Last: Thank you. (by Script Coder)
Fibonacci Homework
 
I am taking online university courses in C++ and I have an assignment that is asking me to write a p...
[2 replies] Last: Thank you so much I don't expect anyone to do my work just needed a li... (by Yestsuae123)
While loop homework
 
I have another homework assignment that is asking: Write a program that asks the user for points ...
[1 reply] : while (answer == Yes) Tell me, what value does the string named Yes ... (by Moschops)
How do I make a template class that inherits a non-template class and one based on the template?
 
I have 2 classes; a World (structure) and another class that is defined by a template parameter. I w...
[4 replies] Last: Cubbi, I think the OP simply doesn't know exactly what his/her words m... (by webJose)
WinSock program error (1,2)
 
Hi All, When I run a simple winsock program it returns the following error. recv failed: 10054 Ca...
[27 replies] Last: Either make a prototype for MyStreamWriter and place it at the top of ... (by kbw)
WHAT DOES "int argc and char* argv[]" do?
 
Hi everyone, can somebody tell me what the parameters "int argc and char* argv " are for in the main...
[6 replies] Last: From a game programming point of view, it makes it easier to do things... (by BHX)
Linker errors...
 
When trying to link SFML and MySQL to my program, I get bunch of nonsense error messages: http://pas...
[no replies]
July 2012 Pages: 1... 252627282930
  Archived months: [jun2012] [aug2012]

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