Advertisement
VXP

Untitled

VXP
Sep 19th, 2014
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. double count = richTextBox1->Lines->Length;
  2. int test = 1;
  3. for( int i = 1; i < count; i++ )
  4. {
  5.     double current = Convert::ToDouble(richTextBox1->Lines[i]);
  6.     double prev = Convert::ToDouble(richTextBox1->Lines[i-1]);
  7.  
  8.     if( current > prev )
  9.         test++;
  10. }
  11. if( test == count )
  12.     label2->Text = "YES"+test+", "+count;
  13. else
  14.     label2->Text = "No"+test+", "+count;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement