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

📄 emp1_12.cpp

📁 该包是数据结构的实验软件,来源于合肥工业大学人工智能与数据挖掘实验室,用来实现数据结构.
💻 CPP
字号:
// {emp1_12}
#include"tools.h";
     unsigned char  sarr[6][25];
     boolean  Lenenough(word len)
	{int  i;//:byte;
	boolean suc;
	  suc=true;
	  for( i=0;i<6;i++)
	    suc=(suc&&(strlen(sarr[i]) >=len) ) ;
	   boolean lenenough=suc ;
	   return  lenenough;
       }

     main()
     {
       gwindow gwnd;
	string s0;
	int i,j,lastk;//:byte;
	boolean funckey;

	Into_graph();

	Statusline("依次编辑各串,直到所有串的长度超过4为止");
       s0="GWindow";
       Gwindow_init(gwnd,25,10,55,15);
       Gwindow_newwindow(gwnd);
       for( i=0; i<6 ;i++)
	  strcpy(sarr[i],"");
       strcat(s0,":");
       for (i=1;i<=6;i++)

	  Gwindow_showstring(gwnd,1,i,s0);
       do
	   for (i=1;i<=6;i++)
	      Gwindow_editstring(gwnd,strlen(s0)+2,i,sarr[i-1]);
       while(! Lenenough(5) );
       Statusline("");
       Wait();
     }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -