User Tools

Site Tools


cpp:std_strings

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cpp:std_strings [2023/04/25 14:39] – [Η κλάση std::tring] gthanoscpp:std_strings [2023/04/25 14:46] (current) – [Σύγκριση, αναζήτηση, εξαγωγή υπο-αλφαριθμητικών] gthanos
Line 91: Line 91:
 === Παράδειγμα χρήσης iterator === === Παράδειγμα χρήσης iterator ===
  
-<code cpp>+<code cpp string_fw_iterator.cpp>
 #include <iostream> #include <iostream>
 #include <string> #include <string>
Line 106: Line 106:
 === Παράδειγμα χρήσης reverse_iterator === === Παράδειγμα χρήσης reverse_iterator ===
  
-<code cpp>+<code cpp string_rv_iterator.cpp>
 #include <iostream> #include <iostream>
 #include <string> #include <string>
Line 205: Line 205:
 size_t find (char c, size_t pos = 0) const; size_t find (char c, size_t pos = 0) const;
 </code>  | Αναζητά στο //string// την πρώτη εμφάνιση του //string str// ή του χαρακτήρα //c// ξεκινώντας την αναζήτηση από την θέση pos.  | </code>  | Αναζητά στο //string// την πρώτη εμφάνιση του //string str// ή του χαρακτήρα //c// ξεκινώντας την αναζήτηση από την θέση pos.  |
- <code cpp>|  <code cpp>size_t rfind (const string& str, size_t pos = npos) const;+| <code cpp>size_t rfind (const string& str, size_t pos = npos) const;
 size_t rfind (const char* str, size_t pos = npos) const; size_t rfind (const char* str, size_t pos = npos) const;
 size_t rfind (const char* str, size_t pos, size_t n) const; size_t rfind (const char* str, size_t pos, size_t n) const;
cpp/std_strings.1682433578.txt.gz · Last modified: 2023/04/25 14:39 by gthanos