added double jump and sitting state
This commit is contained in:
parent
2e5c5a8dde
commit
90d07dde3f
148 changed files with 13050 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
#include <cctype>
|
||||
|
||||
using namespace std;
|
||||
|
||||
string letter_case_switch(const string & str)
|
||||
{
|
||||
string result = str;
|
||||
if (str.size() == 0)
|
||||
return result;
|
||||
result[0] =
|
||||
isupper(result[0]) ? tolower(result[0]) : toupper(result[0]);
|
||||
return result;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
string meow;
|
||||
cin >> meow;
|
||||
cout << letter_case_switch(meow) << endl;
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
#include <cctype>
|
||||
|
||||
using namespace std;
|
||||
|
||||
string letter_case_switch(const string& str) {
|
||||
string result = str;
|
||||
if (str.size() == 0)
|
||||
return result;
|
||||
result[0] = isupper(result[0]) ? tolower(result[0]) : toupper(result[0]);
|
||||
return result;
|
||||
}
|
||||
|
||||
int main() {
|
||||
string meow;
|
||||
cin >> meow;
|
||||
cout << letter_case_switch(meow) << endl;
|
||||
}
|
||||
Reference in a new issue