interruptz/sunrin_nefus — comment on commit 7b24c64b19a67c120daf188c0b275d18e1873553
File:  line 0
By eominsuk55:

//1학년 4반 21번 엄민석입니다. C++로 구현했습니다.
#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;
}
}
}
}