cpp:stringstreams
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cpp:stringstreams [2019/05/20 11:38] – gthanos | cpp:stringstreams [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
Εκτός από τις κλάσεις για ανάγνωση ή εγγραφή από αρχείο ή τα //stdin// και //stdout// η // | Εκτός από τις κλάσεις για ανάγνωση ή εγγραφή από αρχείο ή τα //stdin// και //stdout// η // | ||
- | * **istringstream: | + | * **istringstream: |
- | * **ostringstream: | + | * **ostringstream: |
* **stringstream: | * **stringstream: | ||
Line 24: | Line 24: | ||
| | ||
cout << " | cout << " | ||
- | cout << " | + | |
+ | | ||
} | } | ||
</ | </ | ||
+ | |||
+ | <WRAP tip 80% center round> | ||
+ | Παρατηρήστε ότι καθώς διαβάζουμε το //stream// λέξη-λέξη το περιεχόμενο του //stream// παραμένει αμετάβλητο. Μπορείτε να | ||
+ | * Λάβετε το περιεχόμενο ενός // | ||
+ | * καθαρίσετε το περιεχόμενο // | ||
+ | </ | ||
===== Μετατροπή αριθμών σε strings και αντίστροφα ===== | ===== Μετατροπή αριθμών σε strings και αντίστροφα ===== |
cpp/stringstreams.1558352283.txt.gz · Last modified: 2019/05/20 10:38 (external edit)