Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
sorting using array and pointer
#include <iostream> #include <algorithm> using namespace std; int main() { int len; string name[] = {"samuel", "david", "moses", "joy", "joshua"}; string *pin = name; len=sizeof(name)/sizeof(name[0]); sort(name,name+len); for(int i =0; i <len; i++) cout<<* (pin +i)<<endl; }
run
|
edit
|
history
|
help
0
Updated Linked Lists - 5/10/2017 V3.0
NamespaceId
Policy based smart pointer
CPPTemplate
Bin Tree playground
GCC bug #79511
HotelVec
Making pyramid using nested loop 2/2
Constructor.cpp
PriQTel2