请帮我修改其中的错误并加以解释
// a.cpp : 定义控制台应用程序的入口点。
//
/* note:this program contains errors*/
/*entered for the purpose of teaching*/
/*you how to use the integreated debugger!*/
#include "stdafx.h"
#include<cstdio>
using namespace std;
/*the following symbolic constant is used to dimension the array*/
#define SIZE 5
/*function prototype*/
void print_them(int offset,char con,int iarray[SIZE]);
int _tmain(int argc,_TCHAR* argv[])
{
int offset;/*array element selector*/
int iarray[SIZE];/*integer array*/
char con=0;/*used to hold user's response*/
/*first function call prints variable's "as is"*/
print_them(offset,con,iarray);
/*welcome message and input of user's response*/
printf("\nnwelcome to a trace demonstration!");
printf("\nwould you like to continue(y/n)");
scanf("%c",con);
/*user-input of new integer array data*/
if(con=="y")
for(offset=0;offset<SIZE;offset++)
{
printf("nplease enter an integer:");
scanf("%d",&iarray[offset]);}
/*second fubction call prints user-entered data*/
print_them(offset,con,iarray);
return 0;
}
/*function outputs the contents of all variables*/
void print_them(int offset,char con,int iarray[SIZE])
{printf("\n\n%d",offset);
printf("\n\n%d",con);
for(offset=0;offset<SIZE;offset++)
printf("\n%d",iarray[offset]);
}