A&M Soccer Forum - Rule #1 2.0 edition

765,380 Views | 6858 Replies | Last: 1 mo ago by CDub06
Pro Sandy
How long do you want to ignore this user?
AG
Long Beach Cali, dawg. Yo, me and louie dog, he keeps me sane you know, we run to the party and dance to the rhythm. It gets harder
Pro Sandy
How long do you want to ignore this user?
AG
programming jokes on twitter? Lame-o.

Post them here.

Here's one.

C++? It should be ++C!
mid90
How long do you want to ignore this user?
AG
A wife asks her husband, a software engineer...
"Could you please go shopping for me and buy one carton of milk, and if they have eggs, get 6!" A short time later the husband comes back with 6 cartons of milk. The wife asks him, "Why the hell did you buy 6 cartons of milk?" He replied, "They had eggs."
Pro Sandy
How long do you want to ignore this user?
AG
To prevent issues similar to that, I ask my kids "Do you want cake exclusive or ice cream?" I'm not letting them get away with any of this nonsense.

Unrelated, I think ohsnap should replace helloworld as the "basic" program. ohsnap would allow you to demonstrate while loops, input, and display. Here it is in python.

#ohSnap.py
#Pro Sandy
#Python 3, ver: 3.3.2
#Wing IDE 101, 5.0.1-1 (rev 30370)
#Program determines if an "Oh, snap!" is appropriately warranted.

def ohSnap():
YES = ["YES", "Y"]
NO = ["NO", "N"]
YNOPTIONS = YES + NO


while True:
toldCheck = input("Did someone get told? ")
if toldCheck.upper() in YNOPTIONS:
if toldCheck.upper() in YES:
print("Oh, snap!\n")
break
else:
print("Tell them.\n")

else:
print("Invalid input. You got told.")

Now in C++

//ohSnap.cpp
//Pro Sandy
//C++
//Microsoft Visual C++ 2010 Express Ver. 10.0.30319.1
//Determines if Oh, Snap! is warranted.

#include <iostream>
#include <string>
#include <sstream>

using namespace std;

void ohSnap (){
string told;
string yes = "yes";
string no = "no";

cout << "Was someone told? ";
getline (cin, told);
if(told == yes){
cout << "Oh snap!" << endl;
}
else if(told == no){
cout << "Tell them." << endl;
}
else{
cout << "Invalid input. You got told." << endl;
}
return;

}

int main(){
ohSnap();
return 0;
}


Finally, Prolog.

%ohSnap.pl
%
%Pro Sandy
%Created: February 1, 2014
%
%Written in Microsoft Windows Notepad
%Developed for and tested using SWI-Prolog version 7.1.5
%
%This program runs on query.
%
%This program query's the user to determine if the use of Oh Snap is warranted.

ohSnap(oh_snap) :-
told(yes),
!.

ohSnap(tell_them) :-
told(no),
!.

ohSnap(invalid_input_you_got_told) :-
told(C).

getTold :-
write('Did someone get told?: '),
read(A),
nl,
assert(told(A)).

query :-
retractall(told(A)),
getTold,
ohSnap(B),
write(B),
nl.

#__main__
if __name__ == "__main__":
ohSnap()
mid90
How long do you want to ignore this user?
mid90
How long do you want to ignore this user?
mid90
How long do you want to ignore this user?
AG
hey I'm the nerd here
mid90
How long do you want to ignore this user?
AG
But I am currently brushing up on C++ and learning Python for job hunting purposes/making myself more marketable. So this is relevant to my interests.

What do you do for a living Sandy?
CDub06
How long do you want to ignore this user?
AG
Here's a joke:

You call an IT guy and tell him that there is a problem on his network. He accepts responsibility and embarks to correct it immediately.

LOL JK

He blames someone else then watches Netflix because he's lazy.
Pro Sandy
How long do you want to ignore this user?
AG
Why would anyone bet on A&M in pickoff this week??? Current 1 to 494...
CDub06
How long do you want to ignore this user?
AG
Party at the Conroe AT&T store
jeffk
How long do you want to ignore this user?
AG
Are you one of those knuckleheads camping out for a new iPhone?
CDub06
How long do you want to ignore this user?
AG
Don't call me a knucklehead. I have a chair. The knuckleheads don't.
CDub06
How long do you want to ignore this user?
AG
Sterling? Ha. Your record doesn't look so Sterling to me. Amiright?
mid90
How long do you want to ignore this user?
AG
Did you tell them to shut up and take your money?
CDub06
How long do you want to ignore this user?
AG
I tried walking out with money left in my wallet. They don't allow that.
CDub06
How long do you want to ignore this user?
AG
POTD Nominee! I'm famous
jeffk
How long do you want to ignore this user?
AG
quote:
Sterling? Ha. Your record doesn't look so Sterling to me. Amiright?


Well, it's unblemished by wins if that's what you're getting at.
CDub06
How long do you want to ignore this user?
AG
I was talking trash TO Sterling. Scuff their record up some more.
jeffk
How long do you want to ignore this user?
AG
Right.... Got it!

I would give your POTD nominee some love, but I'm currently an lolpoor.
Pro Sandy
How long do you want to ignore this user?
AG
mid, navy. Currently getting a degree in compsci
Pro Sandy
How long do you want to ignore this user?
AG
What's the name of your WiFi router?
byfLuger41
How long do you want to ignore this user?
AG
Anyone else get the new iPhone?
Pro Sandy
How long do you want to ignore this user?
AG
I asked the first question!

Everyone. Post your WiFi router name. I'm hoping theyre funny.

Mines WiFi for Freedom.
jeffk
How long do you want to ignore this user?
AG
Doghouse
byfLuger41
How long do you want to ignore this user?
AG
Sanduskys Playground
mid90
How long do you want to ignore this user?
AG
whatever the AT&T default designation is
CDub06
How long do you want to ignore this user?
AG
The Interwebs
Pro Sandy
How long do you want to ignore this user?
AG
These are kind of lame.
Pro Sandy
How long do you want to ignore this user?
AG
I can currently see one network that is called "Hidden Network"
Pro Sandy
How long do you want to ignore this user?
AG
Pro Sandy
How long do you want to ignore this user?
AG
hey cdub, what happen to jfishsux?
Pro Sandy
How long do you want to ignore this user?
AG
Only lost $1,951 this week in pick 'em.
CDub06
How long do you want to ignore this user?
AG
I dont live near jfish anymore so there's no need to taunt them.
mid90
How long do you want to ignore this user?
AG
2014 Pick 'em Week 4 Update

Week 4 Standings
#128 jeffk
#130 mid90
#230 GigemNick
#1040 CDub06
#1063 Pro Sandy

Overall Standings
#40 mid90
#368 jeffk
#815 Pro Sandy
#818 GigemNick
#1132 CDub06
First Page Last Page
Page 114 of 196
 
×
subscribe Verify your student status
See Subscription Benefits
Trial only available to users who have never subscribed or participated in a previous trial.