Code:
#include <string.h>
#include <iostream.h>
#include <stdlib.h>
int main()
{
char college[256];
cout<<"Do you go to a large or small college?";
cin.getline(college,256,'\n');
if(strcmpi(college,"small")==0)
{
cout<<"You go to a small college. Good scholarship opportunities and a great learning experience.. you suck.\n";
}
if(strcmpi(college,"large")==0)
{
cout<<"You go to a large college.. lots of booze and chicks, just waiting to sleep with a 1337 H4x0r like you. You rule.\n";
}
system("PAUSE");
return 0;
}
Compiles perfectly in Dev 4.
(Very simple and newbish!)