eominsuk55/sunrin_nefus — comment on commit 8a56a71bcafd285b67e238f8bc12f5c680f1f711
File:  line 0
By eominsuk55:

#include
using namespace std;

int main(void)
{
int Tape[100];
int* Head = Tape;
char String[100];

for( ; ; )
{
fgets(String, 100, stdin);

for(unsigned int i = 0 ; i < (strlen(String) - 1) ; i++)
{
switch(String[i])
{
case '>':
Head++;
break;
case '<':
Head--;
break;
case '!':
cout << *Head << endl;
break;
case '?':
cin >> *Head;
break;
case '+':
++*Head;
break;
case '-':
--*Head;
break;
case '*':
for(int i = 0 ; i < *Head ; i++)
cout << '*';
cout << endl;
break;
}
}
}
}