CS代考程序代写 c++ 10/21/2019 CSCI 561 (163 unread)

10/21/2019 CSCI 561 (163 unread)
question
326 views
“\r\n” in the end of lines in input.txt provided
I noticed that in every line of input.txt provided, there is a ‘\r\n’ in the end instead of ‘\n’. ‘\n’ is the case for sample test cases. I guess it is because the test case input is generated in the Windows operating system making input files’ format different from the sample test cases.
Could you please double-check the format of input is correct(at the level of each character)?
Updated 9 days ago by Anonymous
the students’ answer, where students collectively construct a single answer
Also I wonder will the ‘\r\n’ problem be considered for the final grading?
I use C++ (which doesn’t have built-in text split() and strip() functions that can automatically handle ‘\r’, so I parse the line character by character) and didn’t take ‘\r’ into consideration in my code, as you said “End-of-line character is LF (since vocareum is a Unix system and follows the Unix convention) ” in the specification.
If ‘\r\n’ is really taken in to consideration while grading, I will get zero marks for the whole assignment, but I just follow your specification, I don’t think I deserve zero marks 🙁
Updated 9 days ago by Anonymous
followup discussions for lingering questions and comments
Resolved
Unresolved
Anonymous 9 days ago
Same problem discussed in @361
https://piazza.com/class/jzob0qt1owq15p?cid=373
1/1
1wh