Advertisement
Evgeniy175

Untitled

Nov 18th, 2014
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     char a[] = "Delete  lalala(string)";   
  6.     int j = 0;
  7.     for (int i = 0; i <= 100; i++)
  8.     {
  9.         if (a[i] == '('){
  10.             do
  11.             {
  12.                 cout << a[i]; i++;
  13.             } while (a[i] != ')');
  14.             cout << a[i] << '\n';
  15.             j = 1;         
  16.         }
  17.         if (j == 1) break;
  18.     }
  19.    
  20.     system("pause");
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement