Timeline for Project Euler #8
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 2, 2015 at 8:16 | comment | added | 200_success | getline() gets one line. That's why it's called getline(). We're veering off-topic for Code Review, though, when you're asking about how to fix your broken code. | |
| Mar 2, 2015 at 8:14 | comment | added | sneha sharma | Hello again,i tried to debug my solution myself and found that the string length() i was inputting was 50 i.e only the first line of characters.But i think i am doing right as i am using getline().Can you explain me why its reading only first line even after using getline() method | |
| Mar 2, 2015 at 8:04 | comment | added | 200_success | Ensure that j is never greater than or equal to s.length(). | |
| Mar 2, 2015 at 8:03 | comment | added | sneha sharma | what else can i do in my do so that it won't get crashed | |
| Mar 2, 2015 at 8:00 | comment | added | 200_success | When you reference an address past the end of the string, anything could happen. Your program could crash. You could get a wrong answer. You might get lucky and get the right answer anyway. | |
| Mar 2, 2015 at 7:58 | comment | added | sneha sharma | So my solution is completely useless?? | |
| Mar 2, 2015 at 7:48 | history | edited | 200_success | CC BY-SA 3.0 | added 221 characters in body |
| Mar 2, 2015 at 7:42 | comment | added | sneha sharma | Being honest sir,i am not that technically good to understand what you said.If you don't mind can you make it some more clear.Thanks for the reply though. | |
| Mar 2, 2015 at 7:39 | history | answered | 200_success | CC BY-SA 3.0 |