My beginer C++ programming book just started adding this to the sample programs with out an explaination.
Iv tried to understand what this is for \n but cant figure it out.
im taking an online course and the prof. scared everyone into not sharing for fear of "copying" each other so now no one will talk to each other about anything, hopefully can get some help here :)
Yeah ive been in that situation before. I think the reason they do that is because it is so hard to tell when someone has copied code. There are only a few reasonable ways to solve the problems, as long as you don't leave a comment that says "created by so and so", there's not a lot they can do. Besides scare the students.
Anyway, '\n' is the newline character. When the newline character is output to the console, the console breaks a new line. Anytime you see a \ it is specia: \t makes a tab, \0 means end of string, \\ makes one of these \. That's just a few.