I didn't try the code out, but here's the guidelines for the program as written.
1) sscanf("%d", &i); would seem to be wrong. It most likely would be scanf("%d", &i);
The reason that I say this, is because sscanf() scans a string, whereas scanf() reads from the keyboard. See these 2 links: http://www.cplusplus.com/reference/clibrary/cstdio/sscanf/, and http://www.cplusplus.com/reference/clibrary/cstdio/scanf/
2) scanf("%d", &i); would simply scan in an integer from the command line. The reason that you give it the ampersand ('&'), is so that it can store the value from the command into that variable.
3) "%d" in the scanf(), and the sscanf(), and the printf() functions are used to specify that the variable is an integer. Here's a little more help with that: http://www.cplusplus.com/reference/clibrary/cstdio/printf/
4) The "\t", and "\n" are what is known as escape sequences. What that allows you do to in C/C++ is to put a specific character or number after it, to specify a specific ASCII characters. "\t" = tab, "\n" = newline. Here's a list of the ASCII and Extended ASCII set of characters: http://www.asciitable.com/
5) printf() is a function that allows you to display something on the console window. printf("\tyou"); would display a tab on the window, and then display the word "you". printf("see %d\n", i); would display the text: "see
" (where is the number you entered), and move down to the next line of the display.
6) The switch ... case ... break statement is used to say "If the value is a zero (0), do this, if the value is a one (1) do this, if there is no specific match, then default to doing this. The "break", in a switch ... case set of statements is used to say you are done specifying what do do for the given case (i.e. 1, 0, etc.). Basically a switch ... case statement can make if ... else statements much easier to read.