C++

I hope this gets stickied… sorry if theres a rule against saying that. This is for anybody to post some programs written in any language (c++, java, python, etc). Please, your own work. And feel free to comment, give tips, or help people with there code in general.

[CENTER]
I’ll start it out[/CENTER]

//Phoenix Gillis
//FakeFan: A Simulation of people who don't know what they're talking about and are shitty fans
#include <iostream>
#include <string>
using namespace std;
int main()
{
	string teamOne;
	string teamTwo;
	int scoreOne, scoreTwo;
	cout << "Team one: ";
	getline(cin, teamOne);
	cout << "Team two: " ;
	getline(cin, teamTwo);
	cout  << "Enter score for the " << teamOne << ": ";
	cin >> scoreOne;
	
	
	cout << "Enter the score for the " << teamTwo << ": ";
	cin >> scoreTwo;
	if (scoreOne > scoreTwo)
	cout << "Go " << teamOne << "!!!";
	if (scoreOne < scoreTwo)
	cout << "Go " << teamTwo << "!!!";
	if (scoreOne == scoreTwo)
	{
		cout << "What??? It can't be a tie! give me the real score for the " << teamOne << ": ";
		cin >> scoreOne;
		if (scoreOne > scoreTwo)
		cout << endl << "Knew it! Go " << teamOne <<"!";
		if (scoreOne < scoreTwo)
		cout << endl << "knew it! Go " << teamTwo << "!";
		if (scoreOne == scoreTwo)
		cout << endl << "Wow, it really was a tie!" ;
	}
	cout <<endl << "Thanks for telling me!";
	cin.ignore();
	cin.get();
	return 0;
	
}

It’s a pain because the newline characters messed up the cin.get… but i fixed it with my 1337 skills xD

Close this if you don’t think anybody will reply.

Ok.