Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
rstring
//g++ 5.4.0 #include <iostream> #include <string> using namespace std; string reverse (string str) { char temp; for (int i=0; i<(str.length())/2; i++) { temp= str[i]; str[i] = str[str.length()-i-1]; str[str.length()-i-1] = temp; } return str; } int main() { cout<<reverse("E-MUMBA")<<endl; }
run
|
edit
|
history
|
help
0
diamond
return reference (gcc)
Rectangle overlap
VolAreObject
HashMap
ADAKOHL - hpclearn
a
cache 内存消耗
big boom!
compile-time check of existness of method of a class