Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Program_1_rstring
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> using namespace std; void RevS(string &str){ int A=str.length(); // check the length of the string for (int i=0;i<n/2;i++) // loop for the order swap(str[i],str[n-i-1]); } int main() { std::cout << "Hello, world!\n"; string str="ABCD"; RevS(str); std::cout << str; return 0; }
run
|
edit
|
history
|
help
0
virtual inheritance
MSVC C2888 bug
#22.1
Regex pipe and tabs c++
Two-phase sample with VC++ 2015
VC++
C++ MSVN Compiler Type Check
hex manip
dynamic_cast in assert Causing Error
iota_30-Seconds-of-C++