Search found 2 matches

by DevJustinCC
Sat Jan 18, 2014 12:19 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 50626

Re: Problem 102 Bins - 8 submissions and all of them wrong

Thank you :) That seemed to be it. I would have expected the eof bit to be set after the last successful getline. In fact, that is exactly what happens with my compiler(VS2010 C++ compiler) This seems odd. I appreciate your time. EDIT: it would appear I need to read passed eof for the bit to be set....
by DevJustinCC
Wed Jan 15, 2014 6:52 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 50626

Problem 102 Bins - 8 submissions and all of them wrong

Hi there, I cannot seem to figure out where I am going wrong. I have used numerous data sets and all seem to come out correctly. Perhaps someone can help. I took a more complicated than necessary approach, but it still ought to work, as follows: #include <iostream> #include <vector> #include <string...

Go to advanced search