try replacing the gets with a cin, it's probably a bug in microsoft's stupid compiler...