Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using namespace std;
- void main()
- {
- int y = 0;
- int i = 0;
- int size = 20;
- char* str = new char[size];
- cout << "Enter your string, please: \n";
- cin.getline(str, size);
- char *qw = strtok(str, " ");
- while (qw != NULL)
- {
- //cout << qw << endl; //выводим строки
- int x = 0;
- x = strlen(qw);
- _asm
- {
- xor EAX, EAX
- xor EBX, EBX
- mov EAX, x
- mov EBX, 2
- cmp EAX, EBX
- je s
- jne f
- s :
- xor ECX, ECX
- mov ECX, 1
- mov y, ECX
- f :
- xor ECX, ECX
- mov ECX, 0
- mov y, ECX
- }
- qw = strtok(NULL, " ");
- }
- if (y = 1)
- {
- i++;
- }
- cout << i << endl;
- system("pause");
- //return 0;
- }
Add Comment
Please, Sign In to add comment