Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double count = richTextBox1->Lines->Length;
- int test = 1;
- for( int i = 0; i < count; i++ )
- {
- double current = Convert::ToDouble(richTextBox1->Lines[i]);
- double prev = 0.0;
- if( i > 1 )
- prev = Convert::ToDouble(richTextBox1->Lines[i-1]);
- if( i > 1 && current > prev )
- test++;
- }
- if( test == count-1 )
- label2->Text = "YES"+test+", "+count;
- else
- label2->Text = "No"+test+", "+count;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement