Basic Doubt Regarding C++ Programming

Hey People,
I have Just learnt the Basics of C++.
I have recently written my first program.
What is the difference between the two codes..
Code 1
cout<<"Hello" <<"t" <<"world";
Code 2
cout<<"Hello World";
Also How do I test the output of a C++ file?
Thank you for your Help.
Mikey
