alas, it is a homework assignment. However, it is extra credit.
I'm only allowed to use iostream, strings and cmath libraries.
User Profile
Collapse
-
Last edited by Niheel; Dec 19 '11, 09:19 AM. -
add subtract large numbers C++
I'm looking to find the sums and differences of large numbers inputed by the user. all numbers must by positive and whole and the first number must be larger than the second. I'm having a couple problems:
1) I'm currently using arrays and saving the input into a string. I think that, when copying the data from the string to the array, I need to have the numbers at the very end of the array. I think I found a good way but its not working... -
Thank you so much! I was using that operation but I had it backwards.Leave a comment:
-
Searching parallel arrays
My program is designed to take input from a file containing a list of titles and authors. The file looks like so:
title
associated author
next title
associated author
etc.
The problem I'm having is with my showBooksByTitl e and showBooksByAuth or functions, I guess what I'm asking is how does one compare parts of strings so that if a user searched for Mal (and there was author D.S. Malik and...Last edited by rangerSkip; Dec 10 '11, 09:30 PM. Reason: I've added the library.txt file if you were confused about my Malik example.
No activity results to display
Show More
Leave a comment: