Guest User

Untitled

a guest
Jan 17th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. line 490
  2. int VmaxLength=0; //s
  3.  
  4. while (VesselsLeft > 0)
  5. {
  6.  
  7. for ( int k=1; k<=VesselsLeft; k++)
  8. {
  9. int len= mVes[k].Length();
  10. if ( len > VmaxLength)
  11. {
  12. VmaxLength= len;
  13. cout<<len<<endl;
  14. i=k;
  15. }
  16. }
  17.  
  18. //i=mRandom(1,VesselsLeft); // sirs code
  19.  
  20.  
  21. // s commented
  22.  
  23. cout<<"Maximum\n";
  24. cout <<i;
  25. cout <<endl;
Add Comment
Please, Sign In to add comment