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
341 30 - B
CPP Multi Inherit
base base
Sorting sort function stl in c++
StackBubLink
poprawione-obcinanie-koncowek.
Polimorfizm :)
const example
Raw AVL
cppPyFoodVatTip