Skip to content
Permalink
dc01c996cd
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
55 lines (46 sloc) 797 Bytes
#include <iostream>
#include <fstream>
#include <windows.h>
using namespace std;
void NormalCat()
{
system("cls");
ifstream f("normalCat.txt");
if (f.is_open())
cout << f.rdbuf();
}
void RelaxedCat()
{
system("cls");
ifstream f("relaxedCat.txt");
if (f.is_open())
cout << f.rdbuf();
}
void StretchCat()
{
system("cls");
ifstream f("stretchCat.txt");
if (f.is_open())
cout << f.rdbuf();
}
void PlayCat()
{
system("cls");
ifstream f("playCat.txt");
if (f.is_open())
cout << f.rdbuf();
}
int main()
{
for(int i = 0; i < 25; i++)
{
NormalCat();
Sleep(10);
RelaxedCat();
Sleep(10);
StretchCat();
Sleep(10);
PlayCat();
Sleep(10);
}
}