⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 text1.c

📁 S接线程序,基于pcm的控制程序
💻 C
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -