diff --git a/C++/hello.cpp b/C++/hello.cpp new file mode 100644 index 0000000..cfe61c0 --- /dev/null +++ b/C++/hello.cpp @@ -0,0 +1,6 @@ +#include +using namespace std; +int main() +{ + cout<<"Hello world"< +#include +int main() +{ + char *s[6]={"Raj","Ahish","Reena","Sohen","Anil"}; + char*t; + for(int i=0;i<5;i++) + { + for(int j=i+1;j<5;j++) + { + if(strcmp(s[i],s[j])>0) + { + t=s[i]; + s[i]=s[j]; + s[j]=t; + } + } + } + for(int i=0;i<5;i++) + { + printf("%s\n",s[i]); + } +} \ No newline at end of file diff --git a/hello.cpp b/hello.cpp new file mode 100644 index 0000000..cfe61c0 --- /dev/null +++ b/hello.cpp @@ -0,0 +1,6 @@ +#include +using namespace std; +int main() +{ + cout<<"Hello world"<