General C++ Programming - December 2011 (Page 24)

Moving a Character
 
I would like some help. I am trying to make a simple board game in hope of making a better RPG of so...
[1 reply] : Take a look at this post. http://www.cplusplus.com/forum/general/57350... (by Mats)
by Gldnbr
Clearing text output file
 
I have a program that reads and stores information, however, when you store information, it just ove...
[5 replies] Last: Okay, I removed the file checking and changed the while loop back to f... (by Gldnbr)
array problems
 
im trying to create an array that sorts the input numbers in increasing order. the problem i am havi...
[7 replies] Last: thanks so much. we never learned list so i have to use arrays. thanks ... (by kjmapr26)
would this define work?
 
#define <C:\Documents and Settings\Josh\My Documents\My Music> if this does work how would i make...
[1 reply] : well i guese it might be define errrrg "C:\Documents and Settings\Jo... (by joshrocks)
Opening an .exe, then keystroke
 
Ok, I may be in over my head but my work asked me to try, I asked them to pay me, and they said ok.....
[2 replies] Last: Ignore above. Allegro is nice to have, but it's overkill if you just w... (by hanst99)
Blackjack program?
 
The problem has been solved!
[3 replies] Last: Don't sweat it, we all do that every now and then. (by hanst99)
convert the time sec to HH:MM:SS
 
hi I need to convert the time given in seconds (time_target) for 3 variables (hour, min, sec) I ...
[3 replies] Last: Thank you for quick reply, now saw the error of calculation. time_targ... (by loop2012)
by amma
Factory Question
 
Hello All, Say you have a class Shape with subclasses Circle and Rectangle. I have created a S...
[2 replies] Last: Ok thank you (by amma)
cout format floating point
 
i like to know how to config my cout with manipulators so i can print double like this double x=...
[1 reply] : You can use setprecision, fixed, setw, etc. Read this http://www.cplus... (by tfityo)
How to allocate more memory for an array
 
I understand vectors do it for you, but as a learning experience, how would I allocate more memory f...
[12 replies] Last: I'm sorry bluecoder, I don't understand what you mean by saying: ... (by TAZO)
by cobalt
operator [] in 2d array
 
Hello, i've been searching for any hints for my problem for two days. I've noticed some usefull one...
[7 replies] Last: Thank u all for your help! now, it all works fine for: class Matrix... (by cobalt)
by kostis
Help with error C2504
 
Hello guys, I am getting a compile error: "...\polygon.h(13): error C2504: 'node' : base class unde...
[2 replies] Last: After including the node.h into polygon.h I am getting some new errors... (by kostis)
C++ Simple Problem
 
Hello Dear Experts, I am stuck with my program and I am a complete newbie to programming. Consid...
[2 replies] Last: ¿so what is the problem? It seems that you figured out. cin >> how_m... (by ne555)
method of base class return pointer to derived class?
 
I have a base class (let's say "Base") with a method returning a pointer to this class (let's say "B...
[1 reply] : class Derived: public Base{ public: Derived* method(); } ... (by ne555)
by Smoke
Overloaded input operator recognized in Windows but not Ubuntu
 
This has to be the oddest error I have ever come across. My overloaded input is recognized in window...
[4 replies] Last: As request, please see below #ifndef FILEHANDLER_H #define FILEHAND... (by Smoke)
by Khawar
converting string to const char *
 
Hello, I have three questions. 1 ) Say I have a string variable with three dates string myD...
[5 replies] Last: You've got to delete what you newed. dates = new char[myDate .lengt... (by ne555)
list based on array
 
guys, how to create a list using array and then you can insert, delete, find and display item in the...
[1 reply] : You write a list class that uses an array internally, and then provide... (by hanst99)
number representation console vs autos
 
Coud someone explain it in clear and easy way why when I write code like this double * ds=new doub...
[2 replies] Last: you can use precision(int)to set te # of digits showed after point, ex... (by Vins3Xtreme)
by swinny
Having some problems with input
 
im using a user-inputeed int to send into a switch statement in a menu system that i am using. howev...
[1 reply] : you can use a 'string' variable that is used to get the inputfrom user... (by Vins3Xtreme)
@ Arrays and fstream question. Urgent@
 
Hello, everyone. I am a newbie in C++. I meet some problem in C++. I am get stuck in a program abou...
[3 replies] Last: I can guide you, but I won't do that homework for you. Show the code ... (by coder777)
December 2011 Pages: 1... 2223242526... 39
  Archived months: [nov2011] [jan2012]

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