Advertisement
Guest User

DifferenceINmain

a guest
Nov 21st, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. int main()
  2. {
  3.     ifstream file;                                             
  4.     ofstream ofile;                                            
  5.  
  6.  
  7.     int arr[500];                                              
  8.                                                            
  9.     int swapcount = 0;                                         
  10.                                                            
  11.                                                            
  12.  
  13.     filecallfunc(file);                                        
  14.     functobuildarray(file, arr);                               
  15.     bubbleSort(swapcount, arr);                            
  16.     displayarray(arr);                                     
  17.     outfilecall(ofile);                                    
  18.     outfileprint(ofile, arr, swapcount);       
  19.     ofile.close();                 
  20.     file.close();                  
  21.  
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement