Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////////////////////////////////////////////////////////////////////
- char ** foosort()
- {
- int nFlag;
- char *p;
- do { nFlag = 0;
- for(int i = 0; i < 3; i++)
- {
- if(ptr[i][0] > ptr[i+1][0]) //íà óáûâàíèå
- {
- p = ptr[i];
- ptr[i] = ptr[i+1];
- ptr[i+1] = p;
- nFlag = 1;
- }
- }
- }
- while(nFlag);
- return ptr;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement