![]() |
|
[C] Difference using .size() and .lenght() (std::string) ? - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] Difference using .size() and .lenght() (std::string) ? (/showthread.php?tid=5867600) |
Difference using .size() and .lenght() (std::string) ? - pmtobefriend - Jul 29, 2018 Spoiler (Click to View) edit ; omg nvm i was incrementing in my condition if its true so it was skipping ... RE: Difference using .size() and .lenght() (std::string) ? - HFDone - Jul 29, 2018 you increment in the for loop you dont need to increment in else RE: Difference using .size() and .lenght() (std::string) ? - pmtobefriend - Jul 29, 2018 (Jul 29, 2018 12:28 PM)HFDone Wrote: you increment in the for loop you dont need to increment in else yeah ur right. thx. 🤝 RE: Difference using .size() and .lenght() (std::string) ? - notsteve - Jul 29, 2018 "Both string::size and string::length are synonyms and return the exact same value." |