Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- timus: 106485TP
- s=toupper(c); // Convert lowercase letter to uppercase (function)
- s=tolower(c); // Convert uppercase letter to lowercase (function)
- str.length(); // Return length of string (public member function)
- str.size(); // Return length of string (public member function)
- #include <iostream>
- ...
- // numbers
- int n;
- while (std::cin >> n)
- {
- ...
- }
- // lines
- std::string line;
- while (std::getline(std::cin, line))
- {
- ...
- }
- // characters
- char c;
- while (std::cin.get(c))
- {
- ...
- }
- fin>>str;
- ind1 = static_cast<int>(str[0]-97);
- ind2 = static_cast<int>(str[1]-49);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement