Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


[Secretary self-help guide ]c++ standard procedures, codes of not understand : (

[Secretary self-help guide ]c++ standard procedures, codes of not understand : (
#include "Iostream>;
#include "Vector>;
#include "String>;
#include "Algorithm>;
Using namespace std;

Int main ()
{
Vector<string>; coll (9);

LEAVES OF 13 SPECIES OF LAURACEAE read all words from the standard input
* - Source : all strings until end-of-file (or error)
* - Destination : coll (inserting)
     */

Cout<< "sound" "<endl;
Copy (istream_iterator<string>; (cin), 4003rd start of source
Istream_iterator<string>; (), 4003rd end of source
Back_inserter (coll)); 4003rd destination


4003rd sort elements
Sort (coll.begin (), coll.end ());

LEAVES OF 13 SPECIES OF LAURACEAE print all elements without duplicates
* - Source : coll
* - Destination : standard output (with newline between elements)
     */
Unique_copy (coll.begin (), coll.end (), 4003rd source
Ostream_iterator<string>; (cout, "\n")); 4003rd destination
}


Found that after the implementation of copy editing (istream_iterator<string>; (cin), 4003rd start of source
Istream_iterator<string>; (), 4003rd end of source
Back_inserter (coll)); 4003rd destination
The copy function is always running, constantly reading the characters from the keyboard. Istream_iterator<string>; () are the symbol of the end of iteration for a representative flow.
Sring a;
Cin>;>;a;
Enter the importation, not the end of it?
However, the implementation of the transport and did not jump out of the imported function ah. . . . . . . . . . . . . . . . . . . . . .

[Secretary self-help guide ]c++ standard procedures, codes of not understand : (

End-of-file until all strings (or error)
End your input characters at a crucial try Ctrl+d.

[Secretary self-help guide ]c++ standard procedures, codes of not understand : (

Ah no avail. . .

[Secretary self-help guide ]c++ standard procedures, codes of not understand : (

[Secretary self-help guide ]c++ standard procedures, codes of not understand : (

On, if you Windows,
Key used ctrl+z try.



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com