How to show line number
Go to Tools > Options > Text Editor > All Languages
Check "Line Number"
How to check VC build error
Go to http://msdn.microsoft.com/en-us/library/hhbdtt6d
How to input EOF in VC++ (windows shell)
1. press Enter to go to a new line
2. press ctrl-z then press Enter