Advertisement
wendy890711

分類(主程式)

Apr 14th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include "pch.h"
  2. #include <iostream>
  3. using namespace std;
  4. #define size 5
  5. #include "Header.h"
  6.  
  7.  
  8. int main()
  9. {
  10. char array[size] = { 'a','f','c','g','e' };
  11. cout << "排序前:";
  12. for (int i = 0; i < size; i++)
  13. {
  14. cout << array[i];
  15. }
  16. sorting(array, size);
  17.  
  18. cout << "排序後:";
  19. for (int i = 0; i < size; i++)
  20. {
  21. cout << array[i];
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement