Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- using namespace std;
- int main() {
- char arr[256];
- int l;
- cout << "Gebe deinen Namen ein\n ohne Leerzeichen" << endl;
- cin >> arr;
- l = strlen(arr);
- for(int i=0;i<l;i++) {
- if((arr[i]=='k'||arr[i]=='K')&&arr[i+1]=='e'&&arr[i+2]=='v'&&arr[i+3]=='i'&&arr[i+4]=='n') {
- cout << "Blockiert !" << endl;
- system("pause");
- return 0;
- }
- else {
- }
- }
- cout << "Geschafft !" << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement