Beginners - October 2012 (Page 56)

by Serri
Can't find the error
 
I'm trying to do this: palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 99. Fi...
[no replies]
by khal
vector of list
 
template<class Obj> class Table { public: private: vector< list<Obj> > my; }; Could someone explain why this does not work? ...
[2 replies] Last: Then share it. (by Catfish2)
The Axe Problem HELP!!
 
For my i.t class I need to make a program that makes a axe shape out of stars. The user has to input a number and the axe needs to be that big.Their needs to be...
[1 reply] : There's already a thread for this question: http://www.cplusplus.com/f... (by Chervil)
by Tasdiq
Easy Stupid Mistakes!
 
Ok this is a very easy program and I'm an absolute beginner. I don't know where I am going wrong though. //This program calculates Sales Tax. Question 3, P...
[6 replies] Last: Well your title did help me to widen my search. (by Stewbond)
Dice Rolls
 
I wanted to create a simple program that rolls dice randomly and measures what dice face comes up, the frequency, and overall percentage of each face. It's for ...
[7 replies] Last: cout << "Face \t Frequency \t Percentage" << endl; cout << "d1 \t " <... (by Stewbond)
by dim36
can i send a character to firefox
 
hi i want to see the source code of a web page in my browser so i wrote this, using the shortcut ^U. I have no idea if this is correct in any way.. It can be c...
[5 replies] Last: That's odd. When I google I find several points from which to start. ... (by cire)
lvalue to rvalue in function return type
 
Hey, i am currently thinking about the following problem and cant find any more goolge helps: i need to demonstrate that functions returning primitive types re...
[6 replies] Last: std::string f1(); std::string* p = &f1(); does compile for me. dont... (by Cubbi)
Rock Paper Scissors
 
I'm taking a C++ class where I have to write code for a rock paper scissors game where the computer randomly chooses one of the three and if there is a tie, the...
[7 replies] Last: @Endl3ss I totally agree, but I just ran out of time. I was just tryin... (by mhaggard)
How to handle Big Integer in C++
 
I want to handle Big Integer (greater than 2^63) in C++. I know that, I need to use string to perform it. But I have no idea about how to write a program which ...
[7 replies] Last: Googling "bignum C++" would be productive. (by cire)
Recursive function
 
Hi I am relatively new to C++. I am trying to write a program that will compute the reverse of a strin (i.e. flow will return as wolf). The hint I have been gi...
[3 replies] Last: Thank you guys for your help however Aciex with your suggestion I st... (by miller18)
by cribar
Help writing a program that asks the user the check information and prints the check?
 
need to write a program that inputs the following: date: 2/23/2010 name: William Schmidt amount, dollars: 23 cents: 30 payee: Office Max and outputs i...
[1 reply] : Can help you with you with getting the other things to input and outpu... (by closed account 3qX21hU5)
Loops/Text File Processing
 
I know i'm suppose to include some code of what I have so far but I have no idea where to start. I have to take this file that includes (emp id, hourly/salar...
[no replies]
what does "->", "&=" and "|=" means?
 
if (a) { b->c |= d; } else { b->c &= ~d; } Above code means, if a is true, things inside bracket will execute right? Then what does "->", "&=" and "|=" ...
[6 replies] Last: There's a typo, it should be SomeType* p = &o (by maeriden)
Help creating hangman
 
So I have to create a hangman program that randomly chooses a word from a word bank, the user guesses it, and the programs repeats. No physical hangman has to ...
[2 replies] Last: First let me state im still very new at C++ and programming in general... (by closed account 3qX21hU5)
Array subscript Issue
 
Hello all, I am trying to write a program using an array. One of the problems I am having is that when I select number 2 it selects the number one in the array...
[4 replies] Last: Thank you guys for all your help. It took me a little while to figure... (by geowalsh3)
Having a lot of trouble with C++ (problem)
 
I've been in this C++ programming class for a month a half now, and I still have no idea how to go about writing my own program. I've been reading the textbook ...
[5 replies] Last: I would like to apologize if I came off alittle rude, and I think what... (by closed account 3qX21hU5)
c++ tax code program to write up..HELPPP!!! Please help!
 
So I am a beginner to c++ well I suppose this is obvious. I just need help with a code for this project that involves me writing a program that asks the user fo...
[4 replies] Last: Your help is appreciated. Thanks (by closed account 18CDjE8b)
Broken While Loop
 
Hello, I'm trying to figure out why this won't work when I put in a number at the first prompt, and then a 0 at the 2nd or later. It seems to hinge on having do...
[3 replies] Last: Thanks, that fixed it codewalker (by cheshirecat)
ATM machine ask for ATM card or Username and password
 
#include <iostream> #include <string> using namespace std; int main () { char c; system("cls"); cout<<"Welcome to Metrobank:"<<endl;...
[2 replies] Last: You need to make use of functions so you don't have repetitious code. ... (by TheIdeasMan)
by Ch1156
Quick question, What is size_t?
 
I have seen size_t a few times and have done a little bit of research but still dont understand what it is. So basically I want to know what it is and why shoul...
[9 replies] Last: size_t is used in a number of places in the C++ standard library. Thi... (by Peter87)
October 2012 Pages: 1... 5455565758... 84
  Archived months: [sep2012] [nov2012]

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