text1.c
来自「S接线程序,基于pcm的控制程序」· C语言 代码 · 共 31 行
C
31 行
/* s programable rectifier */
#include "stdio.h"
main()
{
int n=0,i=0;
int pcm[8]={0,1,2,3,4,5,6,7},pcm1[8];
printf("the inatialize of the pcm is :\n");
for(;i<=7;i++)
{
printf("%d,",pcm[i]);
}
i=0;
here:
printf("now,%d time is coming,please enter the way the data to go.",i+1);
n=getchar();
getchar();
printf("%d,",n);
pcm1[n]=pcm[i];
i++;
if (i>=8)
{
printf("after CM ,the new value of the pcm is:\n ");
for (i=0;i<=7;i++)
{
printf("%d,",pcm1[i]);
}
exit(0);
}
goto here;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?