; > and "

Jan 2, 2013 at 10:51pm
I just began but been noticing that most sites say you end with ; but looking more some other codes use " or > to end. I was wondering what is the difference?
Jan 2, 2013 at 11:12pm
all statements in c++ ends with ;
and when u see " or > at the end, it means its not the end of the statement
it continues on the next line until it hits ';'
Jan 2, 2013 at 11:16pm
@dumb0t
all statements in c++ ends with ;


...except compound statements.:)
Jan 3, 2013 at 12:39am
and precompiler statements.

1
2
#include "myheader.h"  //looks within the local directory
#include <list>              //searches the include path 


Jan 3, 2013 at 4:05am
Is there any examples for compound statements?

Thanks in advance.
Jan 3, 2013 at 4:18am
Thank you very much.
Topic archived. No new replies allowed.