>the line 6 ::is it like declare a varible or pointer or what ??
It's an object definition. stringstream is a class, just like string.
>becouse ,when i print ss without str() i see address ,what is that mean??
It means that stringstream doesn't have an overloaded operator<< for stringstream, so cout treats it like a pointer and prints the address.
>what is line 12,18 mean??
The proper grammar is: "What do lines 12 and 18 mean?". Line 12 reads up to 10,000 characters or until a newline is found and throws them away. Line 18 returns success from main, obviously.
>is there any different when i return 0 ??
No.
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Offline 11,807 posts
since Sep 2004