User Profile
Collapse
Profile Sidebar
Collapse
codechick
Last Activity: Apr 10 '12, 03:26 AM
Joined: Feb 2 '12
Location:
-
Hello Banfa! Again, my response is late as I'm not sure how to be notified when I have a response? I'd like to get notified by email. I have checked into this site many times and I finally looked deeper and found your answer from 2 weeks ago. I will look into how to get notifications. However, if you know that would be really helpful....anyw ay, I need to look over your answer in detail, and then I will respond. Next time, it will be right away,... -
Hello, I think this might be the reason why:
Code:public Hugeinteger adding(Hugeinteger r){ //Hugeinteger result = new Hugeinteger();
Leave a comment:
-
Hello whodgson, thanks for the tips. In answer to your question about "place 13 elements into 12 columns" you're correct, I need to change the vector length dimension to 14.
And, thank you for being direct about handling the 2_D vector.
This is actually just a trial example for a deck of cards in Blackjack. In this case, the 55,66,77,88 would be IDs for the suits which don't need a numeric value. I realize this wouldn't...Leave a comment:
-
Two Hard-coded Arrays WITH DIFFERENT SIZES into One 2-Dimensional Vector
I am using 2 ARRAYS OF DIFFERENT SIZES in One 2-Dimensional Vector, and my output is not correct. The arrays are size 4 and size 13.
I want COLUMN 0 to have: 55, 66, 77, 88.
I want COLUMNs 1-12 to have 1,2,3,4,5,6,7,8 ,9,10,10,10,11 in EACH ROW. It would seem that the 2nd loop for the size 13 array would need to loop 4 times in order to fill 4 rows, however, I'm not sure how to do that. Here is what I have so far in code and output:... -
Hi Banfa,
I apologize for a late response, I posted a reply about your putting the element before the dot operator, however, it doesn't seem to have taken....so, thank you for that information, I was not aware of that method.
To me, what it means is that the "pointer" of the loop with "j" should move to the second element in the vector up to the length of the entire vector, correct?
----------------------------------...Last edited by codechick; Mar 24 '12, 04:40 AM. Reason: Corrected original code and new code sample with new issueLeave a comment:
-
Two Hard-coded Arrays into One 2-Dimensional Vector
Two Hard-coded Arrays into One 2-Dimensional Vector
Hello, I have been working on this issue for a long time, and I need your expertise.
I have 2 arrays, each of them are hard-coded with integer values.
I also have one 2-Dimensional vector and I want to put 1 array into the first column of the vector and the other array into the 2nd column of the vector. The reason is that I want to do math on the 2nd column of the vector only.... -
C++ compare two arrays and display duplicates - Code works now
Hello Banfa,
Thank you for responding to my post. I apologize for the delay, I actually finally figured it out a couple of days ago thanks to some other coders like yourself.
And you are exactly right about where the holes in my logic were. I am going to paste in the corrected code. And, I'll be submitting another post by the end of the week, so...Leave a comment:
-
C++ compare two arrays and display duplicates
Hello all, I am working on a practice textbook question that asks a user to input 10 characters that go into an array and then that array is compared to a hard-coded alphabet array. The output should display the number of duplicates, if any, per letter. For example:
"There are 2 a's."
"There are 0 b's."
"There are 3 c's." .....and so on.
My code is correctly counting the number of...
No activity results to display
Show More
Leave a comment: