Author Topic: ITT - everyone here is a robot  (Read 4418 times)

I am a member of the Homo sapiens, or, as my fellow species members say, "human".
« Last Edit: March 06, 2016, 08:29:49 PM by Swat 3 »


i protect cyberspace from Xabaras, the sector lv. 95 boss

edit:

< him
« Last Edit: March 06, 2016, 08:42:50 PM by Donnies Catch »

if I'm a robot I can finally be a qt3.14 anime girl

that does not compute

what if gary is a robot


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

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

Request accepted.
Searching for solution....
....
....

ERROR: No such instance as a "button_shutdown" on subject

Joy = true - if integers = -1 < x < 2

Code: [Select]
#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;
}


edit: i used string wrong sue me
« Last Edit: March 07, 2016, 02:52:42 AM by Tudoreleu »


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

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

That matches grammatically incorrect constructions such as "are you not notnotnotnotnotnotnotnotnotno tnotnotnotnotnot a robot".  The proper regex would be /are you (not ){2,}a robot/.

Booroop boop boop, boop boop!
Spongebob reference yo