Beginners - October 2015 (Page 44)

Cashier Program question
I am trying to create a program that would help a cashier return change to their customer, it will print out how many hundreds, tens, fives, ones, quarters, dim...
Oct 9, 2015 at 12:28am
[2 replies] Last: Thank you @Mark2 (by Outlaw782)
A student currently in college studying OO programming
I have no code for you to debug or anything to solve, I do however have a question. I've been studying C++ for a few years and a question came to my mind the ot...
Oct 9, 2015 at 12:27am
[3 replies] Last: Thank you both (by Outlaw782)
Getting system to show exact number user enters..
For my code,I need to show the number of how fast sound travels to 4 decimal places, but in the same line after that, I could not get it to show the exact numbe...
Oct 9, 2015 at 12:26am
[9 replies] Last: @Toothless LL When you set your fixed notation, the program assumed t... (by Outlaw782)
by stoat
Getting error for string identifier even though I'm including <string>
I am getting the error line 48. Anyone know why? #include <iostream> #include <string> using namespace std; #include <painting.h> int main() { pa...
Oct 8, 2015 at 11:31pm
[3 replies] Last: Try and post everything in your headerfile to the main body of your co... (by Outlaw782)
Using While Loops??
Hello Fellow programmers, Im currently learn c++ and for my assignment im asked to write a program that calculates the average of test scores(0-100). The pro...
Oct 8, 2015 at 11:25pm
[6 replies] Last: Thanks, really appreciate the insight! (by cpluswut)
pressing enter or any key to disable output delay
Im making an interactive fiction or some sort and as the title says is it possible to disable text output delay(sleep) if you press enter or any assigned key? ...
Oct 8, 2015 at 11:16pm
[6 replies] Last: Once the Return key has been hit you could set a flag(just a bool) and... (by mpacker)
Mid Project pt 1. PLZ HELP
Assume an individual is purchasing a ticket or tickets for a concert. The program should start by asking the user how many tickets are being purchased (accept o...
Oct 8, 2015 at 10:03pm
[11 replies] Last: @TarikNeaj is correct, didn't read your question well enough :P I thin... (by Outlaw782)
Cin with int type stalls
Hi, for some reason the most basic code is stalling . I recently installed netbeans. I'm on my 3rd program. I tried using this code: int aInt; c...
Oct 8, 2015 at 9:16pm
[15 replies] Last: You can simply google how to take a screenshot and you'll get a billio... (by TarikNeaj)
Restarting a function
Write your question here. Is there a way to restart a function after you gather input from the user. Put the code you need help with here. choice(){ ci...
Oct 8, 2015 at 8:36pm
[1 reply] : I believe you can just call the function at the end of your function. ... (by TarikNeaj)
by Andym
"const" outside of function parameters.
What does the function declaration below mean? string blahBlah() const;
Oct 8, 2015 at 7:37pm
[3 replies] Last: Try searching on here for "const correctness" or on google for "C++ co... (by AbstractionAnon)
Getting weird values after outputting numbers after loop?!
Hello, Basically the program reads the file char by char finds the numbers, finds out which one is the biggest, which the smallest, and the average of the numb...
Oct 8, 2015 at 7:29pm
[10 replies] Last: that 's right (by Ericool)
by Aideux
C++ Practice Help
So I'm a Computer Science student, but I'm really only a beginner at programming. Right now, I'm in Data Structures, so we're learning advanced arrays, stacks, ...
Oct 8, 2015 at 7:09pm
[3 replies] Last: It's right under your nose... http://www.cplusplus.com/forum/article... (by pearlyman)
using cin.ignore() correctly
Hello, I am trying to get rid of the stored value from my cin>> statement. My program is using a nested while loop to access different menu's; when the user sel...
Oct 8, 2015 at 6:09pm
[3 replies] Last: I changed the while loops in main to a do-while and it fixed the proce... (by jpanther)
Palindrome function numbers
I'm stuck on trying to implement a function code for the palindrome number prototype I entered. I just don't know where to look. Something I've never done. Can ...
Oct 8, 2015 at 5:47pm
[4 replies] Last: #include <iostream> int reverse_digits( int n ) { int rev = 0 ; ... (by JLBorges)
Calculate two numbers in three ways
Hello guys! I´m trying to write a program in where the user digit two numbers, and chooses either addition, multiplication or square-sum of these two numbers....
Oct 8, 2015 at 5:20pm
[7 replies] Last: I´ll try that. Thanks!! (by yabubata)
Using functions
I need to write a program that processes payroll for employees given. The program must read employee name, salary, taxes (which must be calculated based on inc...
Oct 8, 2015 at 4:09pm
[2 replies] Last: Here's what I have gotten so far, but I am new to C++ and really do n... (by pearlyman)
pointers program is giving errors
I am a student of class 12 having computer science as elective. I was making a test program using pointers. According to me it should display 5. But it is givin...
Oct 8, 2015 at 2:00pm
[2 replies] Last: Line 9 should be int* ptr2 = ptr; Line 10 should be cout << *ptr2;... (by Ericool)
how to make straight 9 head or tale.?
i am having a coin flip problem. there's no prob with this code but my prof wanna make this difficult. anyway what i wanna know is what could be the result o...
Oct 8, 2015 at 1:32pm
[14 replies] Last: It's a challenge. Try to find a way to do it. You also don't need rec... (by helios)
Library?
What is mean by header and library in C++??
Oct 8, 2015 at 12:04pm
[1 reply] : "Header" refers to a header file. This is a file containing common de... (by dhayden)
Max, Min of a set of numbers
Hey guys, I have went through a bunch of the posts relating to this topic but I just don't seem to understand half of what is going on. So I decided to make ...
Oct 8, 2015 at 11:03am
[4 replies] Last: everything is fine :) (by Ericool)
October 2015 Pages: 1... 4243444546... 57
  Archived months: [sep2015] [nov2015]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.