Beginners - February 2016 (Page 31)

Decimal roundoff error
 
In my final calculation of my code, which is a mortgage calculator, I am getting no decimals. Should...
[5 replies] Last: Thank you so much! I spent over an hour trying to figure out!! You're ... (by phatboy)
by m0bb1n
need help debugging 'who wants to be a millionaire' program
 
Hello, I am stuck and I know I am missing something. I want my program to add all the points a use...
[2 replies] Last: Line 64: You can't return multiple values. askQuestion is an int fun... (by AbstractionAnon)
How to make my program shorter using arrays or other method?
 
Hello Everyone This is just part of my code, this small program converts units from one to another ...
[2 replies] Last: Look at the description of std::map at the Reference section. Lets ... (by keskiverto)
function that prints out an individual calendar month
 
got it
[no replies]
Unable to Process Data from Text File in C++
 
Why is it that this program will not register the correct ID and Pin number entered? Anything typ...
[10 replies] Last: Yeah, i just noticed that. Tweaked the limit and counter initialized v... (by SmallLittleIntrovert)
Error: initial value of reference to non-const must be an lvalue
 
Hello. I'm having trouble with my code. I am trying to use the variables 'nz' and 'ny' in my functio...
[4 replies] Last: Thank you to both of you. I don't know why I was passing by reference ... (by limitless)
An Infinite Loop Error I Can't Find/Solve
 
Hello! I'm writing a code where the user can input as many numbers as they want to be added toget...
[3 replies] Last: Thank you, guys, for the help. I think I'll be able to solve the rest ... (by mhjo226)
Encrypted arithmetical operations c++
 
Hi, I need help with a c++ code. Program is supposed to read a 1st .txt file, encrypt the text, mak...
[5 replies] Last: Anyone? :( (by mancigol)
Why is my program crashing? Reference error?
 
Hello, so I've written a program that links trains structures together through pointers and I have n...
[4 replies] Last: @ne555 ah I see, I took away the pointer on the struct and changed a c... (by vaultDweller)
by cojeap
only one input, multiple outputs and calls
 
I am having difficulty and have already seen most of the post on google about this. I want to make ...
[2 replies] Last: thank you. i managed to get it to work, and also i read more on struct... (by cojeap)
Time limit exceeded
 
I've just started learning to code as a hobby and when I am already stuck. I'm trying to write a sim...
[2 replies] Last: So you are increasing value of x and because of that x is always posit... (by naaissus)
Help with If statement
 
When the user inputs : a + b = c It still prints " you are missing the Operand"...but Why? I know...
[5 replies] Last: Try to use '+' instead of "+". When you have only one character, you h... (by closed account zv05oG1T)
Need help with simple move constructor
 
This puppy refuses to compile and I'm getting this error message In constructor 'X::X(X&&)': 7...
[7 replies] Last: Tnx to you too man! Really appreciate all the answers! EDIT : and now... (by etrusks)
What is the purpose of this block of code?
 
Today in class, my professor put the following code up in class, and it really confused me. I think ...
[3 replies] Last: Good catch. I glossed over it. (by cire)
Why does the deferenced pointer print the correct value first timne?
 
Here is the program written and executed via Visual Studio 2012. #include <iostream> using std::...
[4 replies] Last: I was expecting it to be some coincidence as well, anyway. I take note... (by curiousengineer)
My Coin Toss Program is being weird
 
So in my class we're supposed to make a program where you make it do a cointoss and display the resu...
[3 replies] Last: A normal for loop looks like this: for (int i = 0 ; i < HowManyTi... (by TheIdeasMan)
printing calendar
 
Thanks i think i got it now
[1 reply] : Was this all it was supposed to do? BTW, PLEASE use spacing and tabs, ... (by rabster)
Using if/else statements to make calculations
 
I am very new to c++. Please I need help figuring out how to write my code so far I have this: #...
[2 replies] Last: I am new to this site. Thanks for all the links they are really helpfu... (by bluewizzard)
why are my operators not working
 
operator >>Postconditions are // -The red value of pix is set to the first integer. // ...
[3 replies] Last: You didn't follow @Peter87's suggestion at all. std::ostream& operat... (by TwilightSpectre)
Pointers as lookup values in maps.
 
I'm trying to write a program that has a list of magicians along with dates of availability for each...
[3 replies] Last: Why not just store the dates as the value type in maps rather than the... (by cire)
February 2016 Pages: 1... 2930313233... 46
  Archived months: [jan2016] [mar2016]

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