Beginners - October 2011 (Page 51)

Compare Heights
 
I'm having a problem with getting my program to compare the vaulters heights. I know I need else if statements, but were do I go from there. Thanks a bunch....
[no replies]
class function assigned to zero?
 
What does it means when a class function equals zero: template <class xtyp_state> class CStates { CStates(void); public: ~CStates(void); //...
[2 replies] Last: the "=0" means this function is a pure virtual function, any class tha... (by greenoaktree)
Phone KeyPad
 
Fixed
[2 replies] Last: Yeah I don't know. What could I even use arrays for? Not popular tempe... (by Golden0907)
Escape Sequence
 
Hi Guys I was wondering if someone could be kind enough to tell me how I can stop VC++ from recognising the escape sequence i.e."\". Im trying to referenc...
[13 replies] Last: Ok great. Thanks for the help. Edit-- Sorry just more thing. So ... (by shamas21)
problem with system() command. plz help
 
hello I' m new to programmming and i really need your help. I am trying to make a programm which will request directory from user and then use that in sy...
[2 replies] Last: It worked!!! Thank you so much my friend. you helped me alot :) (by Nika Kokhreidze)
by juvan
Operator function confusion
 
And I quote: A constructor with one argument provides a conversion function. For example, the following constructor enables automatic conversion of integer...
[1 reply] : I don't think the book is wrong, it's actually a compiler dependent is... (by EricDu)
HELP: store csv numerical data to vector of double (1,2)
 
Hi all, I'm new to c++ and currently i need to write a program to open csv file and store all data into a vector of double. I have read through the forum and i ...
[21 replies] Last: Thanks shactar..finally my code is working..Thank you so much.. :) (by jayden118)
Maps and derived classes
 
Hello, I have a map which takes pointers to elements of a class A. B and C are both derived from A. C has some additional functions that it doesn't derive from...
[2 replies] Last: You need to do 2 things: 1. compile your code with RTTI enabled. 2. u... (by EricDu)
Simon Says game (1,2)
 
Hi, I am trying to create a program for a class that gives the user a letter, then erases the letter, then asks the user to type in the letter. If the letter is...
[25 replies] Last: this erases the entire screen, so not only does it prevent you from u... (by keineahnung)
Swap 3 ints
 
I have to make two function that swap values a,b,c in first function just swap 2 values a,b if a > b I got it as void sort2(int& a, int& b) { if (a > b) { ...
[3 replies] Last: If you can swap two elements, you can swap infinite elements. All y... (by Gaminic)
Number Guessing game (need Help)
 
Please HELP ME OUT. Below is the assignment by my teacher.It is due tomorrow. Please write me code for this or atlease psudo code. THANKS , This is a fairly st...
[8 replies] Last: Shoop-Da-Whoop 'tis gone. (by ultifinitus)
Convert to char
 
Is there a way to convert and substr index of a str to char? I haven't compiled this yet, so there might be error. But, you can see I'm trying to convert a sub...
[2 replies] Last: (Side note: you can use a string in the same manner as a character arr... (by c0d3Man15)
Cipher program - comments welcome
 
First I would like to say that this is NOT a professional encryption program and it could very very easily be cracked by professionals or someone with a keen de...
[4 replies] Last: here's the source to my program, sorry for the late reply #include<... (by c0d3Man15)
game programming question
 
I've been doing simple game development in a different programming language, but that's irrelevant, my question is, in video games, how do you make different pa...
[9 replies] Last: well I found this while browsing for stuff, I don't know if it can han... (by c0d3Man15)
Cant figure out how to complete a condition
 
Hey guys, I have this program thats almost done, but there's one final condition i need to complete before I can run it. Specifically, im drawing a total blank ...
[6 replies] Last: Yep, that pretty much solved it, would have never thought to use bool.... (by Willy Rodriguez)
Getting error message I can't find fix for
 
The error message I'm getting is this : build/Debug/Cygwin-Windows/_ext/865002671/Random_Card_Dealer.cpp.o: In function `_Z11draw_a_cardv': /cygdrive/c/Users/...
[1 reply] : Hi In your declaration you've got this: int select_next_availab... (by kloid)
by glenji
do I must release this memory?
 
Hi Guys, Please see following code. #include <iostream> #include <string> using namespace std; int main(int argc, char* argv ) { string* s = new...
[7 replies] Last: Hi Guys, All my fault, I should provide you the accurate scenario. Cu... (by glenji)
by boston
Programming assignment making me question my literacy
 
Hi I have an assignment that is an expansion of previous posts, my payroll program. I'm having a very hard time understanding the text (Deitel, FWIW), assignmen...
[3 replies] Last: Thank you both. Disch, I'm definitely a learn-by-example person as we... (by boston)
Help with Clock
 
im not having a problem with my code i just need to know how to have my clock say 1:05 instead of 1:5 when i subtract starting minutes from ending minutes. Whe...
[1 reply] : A combination of the setw and setfill functions in the <iomanip> ... (by shacktar)
Need help writing a program to tell time in terms of seconds
 
Im not 100% on how to get this program to initialize. I just dont know what to add to get this thing to run, it probably a formatting error on my part, but i ...
[1 reply] : You need to take the time to read through a few basic tutorials. http:... (by Duthomhas)
October 2011 Pages: 1... 4950515253... 59
  Archived months: [sep2011] [nov2011]

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