MrDudeMan
Lifer
- Jan 15, 2001
- 15,069
- 94
- 91
/* the purpose of this program is to calculate how stupid ericiscool really is */
int main ()
{
...ifstream infile ;
...infile.open("listofasswipes.txt") ;
...string name ;
...while (infile)
...{
......infile >> name ;
......infile.ignore(100,'\n') ;
......if (name = "eric" )
......{
..........cout << "\nThe name listed was " << name << " and he is definitely a douchebag." ;
......}
......else
......{
.......cout << "\nThe name listed was " << name << " and he is not a douchebag, or at"
.......<< "\nleast not as much of a douchebag as eric!"
......}
...}
...infile.close() ;
}
int main ()
{
...ifstream infile ;
...infile.open("listofasswipes.txt") ;
...string name ;
...while (infile)
...{
......infile >> name ;
......infile.ignore(100,'\n') ;
......if (name = "eric" )
......{
..........cout << "\nThe name listed was " << name << " and he is definitely a douchebag." ;
......}
......else
......{
.......cout << "\nThe name listed was " << name << " and he is not a douchebag, or at"
.......<< "\nleast not as much of a douchebag as eric!"
......}
...}
...infile.close() ;
}