01001001 00100000 01100011 01100001 01101110 01101110 01101111 01110100 00100000 01100110 01100101 01100101 01101100 00100000 01101100 01101111 01110110 01100101 00100000 01101111 01110010 00100000 01100101 01101101 01101111 01110100 01101001 01101111 01101110 00001101 00001010 01110000 01101100 01100101 01100001 01110011 01100101 00100000 01100101 01101110 01100100 00100000 01101101 01111001 00100000 01101100 01101001 01100110 01100101
#include <iostream>#include <artifInt.h>void replyToNextPost() { string inp = ' '; cin >> inp; switch (inp) { case "are you a robot": cout << "i cannot say one way or the other"; break; case "are you not a robot": cout << "i cannot say one way or the other"; break; case "are you not not not not not not not not not not not not not a robot": cout << "forget you"; break; default: cout << "speak up sonny"; }}int main() { replyToNextPost(); return 0;}
I've never used regex with C++ but for the "not not not..." one you could totally use regex/are you not (not ?)+ a robot/ will match that question with two or more nots