Beginners - October 2011 (Page 13)

Help with FOR LOOPS
 
Hey all I'm having trouble with for loops. I need to calculate monthly balance and interest paid on a balloon mortgage and am having trouble with the calculatio...
[12 replies] Last: by the way maybe a loop like this is more what you're trying to accomp... (by novablows)
by gh24
Assertion Failure Help
 
Hi Guys, I am getting an assertion failure for the following code and I have no clue why. #include <iostream> #include <cmath> #include <vector> #include <...
[4 replies] Last: Yea I figured that out. I added a return(P) at the end. The thin... (by gh24)
Interview Question: Linked Lists
 
During an interview today, I was asked how I would go about summing the values of two singly linked lists that contained digits. They also said the lists could...
[1 reply] : The main problem here is to get the numerical value from the digits st... (by shacktar)
Basic problem with classes
 
Hi everyone, Opional read: At work I am trying to adapt code which I got from the boost website: http://www.boost.org/doc/libs/1_38_0/doc/html/boost_asio/exa...
[5 replies] Last: error C2511: is caused by inconsistent function prototypes error C2061... (by EricDu)
by Nexrus
Factorial Help
 
I'm having 2 problems. First of all I can't figure out why it's not displaying the factorial of number. When I try to compile this code I get an error on the li...
[10 replies] Last: @Nexrus, congrats on the program. I don't know anything about factoria... (by whitenite1)
by dpan
Problem finding perfect numbers above 8128
 
Hi all, I'm writing a program to identify perfect numbers from 1 to 'n'. My code works fine in finding numbers up to 8128, but for some reason I can't find the ...
[5 replies] Last: I did see Euler's observation/shortcut (though I think it's limited to... (by dpan)
Making Change out of an XX.XX input
 
I'm not going to lie, I need help with my homework for my college Programming class. I've done all of this work myself, but there are some inputs that aren't wo...
[6 replies] Last: Well, I tried it out, and, yes, it worked flawlessly, right down to th... (by whitenite1)
Program Help
 
Fixed
[no replies]
by Ch1156
Random number generator wont work
 
Ok so i made a random number generator here: #include <iostream> #include <string> #include <fstream> #include <cstdlib> #include <ctime> using names...
[7 replies] Last: Typing is a string and random is an int. They're two different types,... (by Disch)
Inheritance Confusion?
 
Hello everyone, I have a program with class and derived class. On my derived class Dog in the function string getLifespan() I am trynig to read the...
[2 replies] Last: Thank a lot Disch. I can't belive I missed that. (by detroit)
Scope question (or linking? multiple files)
 
Hi I was curious about something. In following my book exercises my compiler is throwing all sorts of errors @ me (codeblocks 10.05) so I decided to do things a...
[2 replies] Last: Shoot me now, i've solved it (; @EricDu thank you for your insight! (by georgewashere)
fstream to location
 
I'm sure I'm missing something obvious, but... I can't seem to find this anywhere. Is there a way to use <fstream> to write to a specific location? Relative ...
[2 replies] Last: That looks right! I should really get to bed now, but I'll test it ... (by Apoapsis)
Convert char* to string problem...
 
The output of string is different with char, during the convert of char to string.. #include <iostream> #include <string> using namespace std; int main()...
[9 replies] Last: your guys really helped me a lot, thanks!!! (by lanceTCT)
Classes and I/O
 
Okay, so I am trying to build a stoichiometry calculator. I really want it to have built in molar masses to simplify things for the user. I am using a class to ...
[no replies]
If someone would be kind enough to look over this.
 
Hello everyone, My first post here and only because of my inability to understand what I am doing wrong with my code. Just a little background, this is an assi...
[3 replies] Last: This doesn't make much sense to me. How does that highlight the surrou... (by Bobby Tagurinus)
Function
 
Any help would be nice. #include <iostream> using namespace std; double getJudgeScore (double judge); int main() { double judge; getJudgeScor...
[1 reply] : It has to do with this little section if(judge > -1 && judge <= 10) ... (by closed account 1yvXoG1T)
I'm at my wits end! Help!
 
School assignment to do with ISBN codes. An ISBN number is basically 4 parts: An Area code, publisher code, title code, and check digit. My code checks if the I...
[1 reply] : ISBN definition file: Code: #include <iostream> #include <cstdio> #i... (by Moe45673)
Multiplying Different Ranges
 
Hey guys. I need help with an assignment I'm doing. Basically I need to multiply different ranges from a number by different things. For example: the first $15,...
[no replies]
perfect number function help
 
Hi I am trying to write a function that will return true if a given whole number is perfect and otherwise false. I am not sure if I am calling the function pro...
[2 replies] Last: hi think you wrote this in response to the wring post as this does not... (by taraoski)
modified array returns memory location/ will not write properly to file
 
Hi all. I was wanting to write a simple "password keeper" program to hide passwords to my various online accounts. The concept is that the user enters the pass...
[no replies]
October 2011 Pages: 1... 1112131415... 59
  Archived months: [sep2011] [nov2011]

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