Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Problem_rstring_1
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x#include<iostr #include <iostream> using namespace std; string ReverseFuntion(char a[]) { char reverse[50]; int i=-1,j=0; while(a[++i]!='\0'); while(i>=0) reverse[j++]=a[--i]; reverse[j]='\0'; return reverse; } int main() { char str[100]; cout<<"Please Enter a word to Reverse"<<endl; cin>>str; string reverse; reverse=ReverseFuntion(str); cout<<"Reverse of a string is: "<<reverse; return 0; }
run
|
edit
|
history
|
help
0
Progress bar
what is this
problem_solution_1
std::function ambiguity vc++
Matrix paths right-down only, going through XY
PreprocessorVsNamespace
Kare-Küp Tablosu
Attribute of qi parsers
Default constructor - deleted
My Window