User:Concernedresident/assquotesource

From RationalWiki
Jump to navigation Jump to search
/* 

Author: Concernedresident

Website: http://rationalwiki.com/wiki/User:Concernedresident

Date: 16th of March, 2010

This is a quick and dirty attempt to make something similar to the fortune program, but instead of platitudes and trivia, it'll provide the wisdom and insights of Andrew Schlafly of Conservapedia. It's my first program in many years, so the code is likely very messy.

Schlafly is based on RationalWiki's Schlafly Quote Generator:

http://rationalwiki.com/wiki/Fun:Schlafly_Quote_Generator

This code is covered by two separate licences (just to make things awkward for you).

The text used to populate the choices arrays is released under a Creative Commons licence:

http://creativecommons.org/licenses/by-sa/3.0/

There are comments in the source to indicate sections covered by a Creative Commons licence.

The ISC licence applies to everything outside of those comments.

Permission to use, copy, modify, and/or distribute this software for any

purpose with or without fee is hereby granted, provided that the above

copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF

MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR

ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES

WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN

ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF

OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

*/

#include <iostream>

#include <iomanip>

#include <stdlib.h>

#include <vector>

#include <time.h>

using namespace std;

vector<string> choice0(5);

vector<string> choice1(5);

vector<string> choice2(5);

vector<string> choice3(5);

vector<string> choice4(5);

vector<string> choice5(5);

vector<string> choice6(5);

//string userName[20];

//choices[0] = "(inappropriate name),";

//choices[1] = "(if that is your real name),";

int main()

{

srand ( time(NULL) );

char *date;

        

    time_t timer;

    timer=time(NULL);

    date = asctime(localtime(&timer));

// the text within the choice strings is covered by the Creative comments licence mentioned at the top of this file.

choice0[0] = "(inappropriate name),";

choice0[1] = "(if that is your real name),";

choice0[2] = "(what a ridiculous user name!),";

choice0[3] = "(obviously not your real name),";

choice0[4] = "(specialty not in breast cancer),";

choice1[0] = " the problem is that you say you're a conservative, but you have \33[1mliberal style\33[0m.";

choice1[1] = " you're trying to sing a tune of one view Christianity, but it's slightly off key and even if it were on key it would be merely one view.";

choice1[2] = " you're doing everything except basing your analysis on translating, analyzing and quoting the Bible.";

choice1[3] = " if you're arguing that people who thumb their noses at a presiding judge are not punished, that's wrong.";

choice1[4] = " looks like we've stumbled into another example of the \33[1mliberal\33[0m double standard: call something subjective when you don't like it, but call something objective when you do.";

choice2[0] = " I looked at your contributions";

choice2[1] = " I reread the beginning of your rant at the top of this section";

choice2[2] = " I skimmed through your recent edits";

choice2[3] = " I've managed to read your rants";

choice2[4] = " I've analyzed your unconcise replies";

choice3[0] = " and I doubt you've taken half the statistics courses that I have";

choice3[1] = " and you list yourself as an \"agnostic\" here, yet 100% of your edits here have been of an atheistic nature. An agnostic, if fair-minded, should be at least 50% Bible-based and 50% atheistic-based";

choice3[2] = " and I feel depression and animosity coming through in your comments";

choice3[3] = " and you still don't seem to grasp how liberals try to claim exclusive control of knowledge and its recognition, and how you should be objecting to that";

choice3[4] = " and based on your postings, I bet you don't spend even 5% of your spare time reading or analyzing the Bible";

choice4[0] = " so clearly you're";

choice4[1] = " so admit it, you're";

choice4[2] = " so let me guess:";

choice4[3] = " so there's a 95% chance that you're";

choice4[4] = " so anyone with an open mind can see that you're";

choice5[0] = " another \33[1mliberal\33[0m enemy of \33[1mconservative\33[0m principles.";

choice5[1] = " a supporter of infanticide.";

choice5[2] = " a supporter of \33[1mLenski\33[0m.";

choice5[3] = " an \33[1mObama\33[0m supporter.";

choice5[4] = " an \33[1mevolutionist\33[0m.";

choice6[0] = " In Christ.";

choice6[1] = " Enough said.";

choice6[2] = " \33[1mGodspeed\33[0m.";

choice6[3] = " Thanks and \33[1mGodspeed\33[0m.";

choice6[4] = " The truth shall set you free.";

// End of Creative Commons covered section

// I'm not sure how getenv works on non-Unix systems, so you may need to change this if you're using Windows, or a Unix environment in which the USER variable isn't set.

cout << left <<"\33[1m\"" << getenv("USER") << "\"\33[0m " << 

choice0[rand() % 5 ] << 

choice1[rand() % 5 ] << 

choice2[rand() % 5 ] << 

choice3[rand() % 5 ] << 

choice4[rand() % 5 ] << 

choice5[rand() % 5 ] << 

choice6[rand() % 5 ] << 

"--\33[1mAschlafly.\33[0m " <<

date <<

endl;

return 0;

}