Solution to the problem number 11956 of UVA - 11956.

Any questions do not hesitate to contact.

#include <bits/stdc++.h>
using namespace std;
int main() {
    int t, cases = 0;
    char cmd[100005];
    cin>>t;
    getchar();
    while(t--) {
        gets(cmd);
        unsigned char mem[100] = {};
        int idx = 0, i;
        for(i = 0; cmd[i]; i++) {
            switch(cmd[i]) {
                case '>':idx++;break;
                case '<':idx--;break;
                case '+':mem[idx]++;break;
                case '-':mem[idx]--;break;
            }
            if(idx >= 100)  idx = 0;
            if(idx < 0) idx = 99;
        }
        printf("Case %d:", ++cases);
        for(i = 0; i < 100; i++)
            printf(" %02X", mem[i]);
        puts("");
    }
    return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!