Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = listBox1->Items[i];
- for (int i = 0; i < listBox1->Items->Count; i++) {
- string s;
- int a, b;
- s = listBox1->Items[i];
- a = stoi(s.substr(0, s.find('/')));
- b = stoi(s.erase(0, s.find('/') + 1));
- label1->Text += a/b;
- }
- s = listBox1->Items[i]->ToString();
- String^ s = listBox1->Items[i]->ToString();
- array<String^>^ splitted = s->Split('/');
- int a = int::Parse(splitted[0]);
- int b = int::Parse(splitted[1]);
- label1->Text += (a/b).ToString();
Add Comment
Please, Sign In to add comment