#include <bits/stdc++.h>
#include <direct.h>
using namespace std;
void print_start()
{
cout << "自制cmd程序Loading...\n";
stringstream s;
string s1;
for(int i = 0;i <= 15;i++)
{
s << ":";
s >> s1;
cout << s1;
sleep(1);
}
system("cls");
}
int main()
{
print_start();
char* buffer;
char* command;
while(1)
{
if((buffer = getcwd(NULL,0)) == NULL)
{
perror("buffer error");
}
else
{
printf("%s>",buffer);
gets(command);
system(command);
}
}
}