#include <stdio.h>
#include<string.h>
#include<stdlib.h>
#pragma warning(disable:4996)
int main()
{
/*用户输入10个数,再输入x,请删除x后输出数组。
注意:x可能不存在,此时应输出Not found x (多个x)*/
int a[10], b[10] = { 0 };
for (int i = 0; i < 10; i++)
{
scanf("%d", a + i);
}
int x; scanf("%d", &x);
for (int i = 0; i < 10; i++)
{
if(*(a+i)==x)b[i]=1;//1代表删除
}
printf("\n\n\n输出开始\n");
int zhixing = 0;
for (int i = 0; i < 10; i++)
{
if (b[i] == 1) { zhixing++; continue;}
printf("%d\n", *(a + i));
}
if (zhixing == 0)printf("Not found x\n");
}