General C++ Programming - October 2013 (Page 12)

help need as fast as it can
 
You need to write a permute class that will take first and second strings to rearrange letters in first, followed by second. For example, if the first is “CAT...
[2 replies] Last: lol this is a funny post ;) no time to read all this sorry (by Chriscpp)
Text - Based RPG - Object not being created?
 
I'm currently creating a text-based RPG, to get myself back into learning C++ again. The problem seems to be with the if-else ladder of statements, the user sel...
[4 replies] Last: Thank you for everyone's responses I wasn't expecting such fast replie... (by x BlueRobot)
initializing variables in program
 
the title probably doesn't explain much but i want to know how to make variables during the program. for example in a program i want to have the player be able ...
[4 replies] Last: ok i got that program working thank you (THIS IS MY 100th Post) (by Cronnoc)
Need Help with Array - Strings
 
Hello. I'm learning programming, and C++. I've got a question, but I couldn't solve my problem so far. I need to use arrays and only basic stuff to solve this:...
[7 replies] Last: //with char Array this will be the code, #include <iostream> #includ... (by saratirmizi)
Problem with my void adding a counter.
 
Hello guys, I'm currently attempting to create a program to translate a text file using input and output streams. I am trying to add a counter into my program t...
[8 replies] Last: I might change that around. I have found an error with my counters. Th... (by drzazga)
Need Help understanding this problem.. Help is needed urgantly!
 
a)Create a Document class to load the text document in memory. For this purpose the constructor of the class is in charge with creating a memory structure repre...
[1 reply] : Well, first you need to create a class, called Document. The class ne... (by MikeyBoy)
Errors with maps.
 
" map<string,armour> char_armour; char_armour["head"]=a_GetNull; " ends up producing. D:\dos\numberstest\surefirewaytodie2.cpp|202|error: 'char_ar...
[12 replies] Last: std::map::at requires the key to already exist in the map. The key do... (by cire)
SFML
 
I use visual studio 2012. When I asked what I should use in order to put graphics into my program, I was told by the community that SFML works well. My only pro...
[5 replies] Last: Don't I need to extract it into visual studio to make it work with it... (by Uk Marine)
by fafner
Game debugging
 
I'm working on a 2d game using sfml and my own "game engine". My problem is that every once in a while, at times I can't really predict, the game hangs for up t...
[no replies]
Basic parts of text based RPGs?
 
Could someone put examples of how you'd type yes or no scenarios for a text based RPG? And I mean a really basic like 'you see blah blah what do you do?'. Also...
[9 replies] Last: Here's some ideas: cout<<"As you were walking down the road you've e... (by Uk Marine)
sorting vector in function
 
hi guys i'm new to C++ especially vectors.. I've a question regarding sorting of object in a vector my object consists of x,y and civ. so I would like to k...
[2 replies] Last: Hi L B, thanks.. but I have another problem, correct me if i'm wrong... (by coiseng)
Is it Possible!!!!
 
Have a look on this code #include<stdio.h> #include<iostream.h> #include<conio.h> #include<dos.h> void TIME() { struct time t; for(; ;) { ...
[12 replies] Last: :) (by vigneshmv)
by Doers
Access to a private member map outside class
 
I apologize if I've chosen wrong forum to post since I'm not fully confident wheter this is beginner question or not. This question is more from a design poi...
[5 replies] Last: Thank you for all the responses. @rmxhaha, I don't really think that ... (by Doers)
help me --Jack
 
THANKS JACK
[12 replies] Last: the op originally asked how he could allocate memory for a character a... (by closed account Dy7SLyTq)
No compile errors, but blank screen on execute.
 
Hey guys, I'm working on a Hash Table implementation and after fixing all the errors and finally getting it to compile and link correctly, I am met with a black...
[11 replies] Last: So after testing it on a different machine, I can confirm that the cod... (by iamtpage)
Help with my code PLEASE!
 
this is what the code does: 1. ask user for input (seeds color red or blue) 2. check the temp for blue seed: if temp from 60-70, it grows to flower, else mus...
[3 replies] Last: Thank you so much! (by junior147147)
Need A Tool for Game
 
Hello, I am trying to write a Plane Battle in C++ as my final project. It will need some simple and basic graphs. My friend tells me that I could use Dark GDK ...
[2 replies] Last: Tell me more about this game? I'm not sure what to recommend until I k... (by Mats)
Array of Coefficients and function fragments help!!
 
Hey Y'all I have this problem that I am having trouble with: Write a function which takes an array of coefficients, ai and and integer n, and returns the val...
[no replies]
Text based game Help
 
I am making a small text based game and need a little help on two problems I can not figure out. Problems: A timer of some type so every 3 seconds it will i...
[2 replies] Last: Duh..... I never thought to use ()'s lol. Thank you :) And will do I'... (by popup271)
by abhi04
error C2327: not a type name, static, or enumerator
 
I am facing "error C2327" on windows. I reduced my code and get similar error with test program #include <boost/intrusive/list.hpp> #include <iostream> ...
[2 replies] Last: I'd say the problem is the typedef inside the class which is incompl... (by coder777)
October 2013 Pages: 1... 1011121314... 46
  Archived months: [sep2013] [nov2013]

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