2671
Off Topic / Re: Kid's Programming that isn't stupid
« on: October 01, 2012, 09:52:02 PM »
#include <iostream>
#include <ctime>
using namespace std;
int a;
int main()
{
srand((unsigned)time(0));
a = 1+rand()%(4);
switch(a)
{
case 1:
cout << "Watch Doctor Who" << endl;
break;
case 2:
cout << "Watch Futurama" << endl;
break;
case 3:
cout << "Read Reddit" << endl;
break;
case 4:
cout << "Sleep" << endl;
break;
}
return 0;
}
so proud of my little cousin <3
OH TV thought you meant computer programming no never heard of it nope
#include <ctime>
using namespace std;
int a;
int main()
{
srand((unsigned)time(0));
a = 1+rand()%(4);
switch(a)
{
case 1:
cout << "Watch Doctor Who" << endl;
break;
case 2:
cout << "Watch Futurama" << endl;
break;
case 3:
cout << "Read Reddit" << endl;
break;
case 4:
cout << "Sleep" << endl;
break;
}
return 0;
}
so proud of my little cousin <3
OH TV thought you meant computer programming no never heard of it nope