it s a sorting c code which is using many kinds of sort algorithm

源代码在线查看: inser.c

软件大小: 215 K
上传用户: hufei108
关键词: algorithm sorting kinds which
下载地址: 免注册下载 普通下载 VIP

相关代码

				#include "stdio.h"
				#include "stdlib.h"
				#include "string.h"
				int main()
				{
				  FILE *fp=fopen("data.txt","r");//data.txt颇老阑 佬扁葛靛肺 悸泼
				  char data[10][5][5];//颇老俊辑 佬绢辑 历厘且函荐
				  int i=0,j=0;
				  char read_line[256];//颇老俊辑 茄临阑 佬绢辑 历厘且 函荐
				  char *str;//箭磊父 眠免且锭 荤侩且 函荐
				  while(1)
				  {
				     if(fscanf(fp,"%s",read_line)==EOF)break;//颇老俊辑 茄临阑 佬绢可聪促.
				     str=strtok(read_line,"TAB:/");//"TAB:/"巩磊甫 哗绊 箭磊父 眠免钦聪促.
				     while(str != NULL)
				     {     
				         strcpy(data[i][j],str);//眠免茄 箭磊甫 历厘 钦聪促.   
				         str=strtok(NULL,"TAB:/ ");//澄巩磊甫 父朝锭 鳖瘤 眠免                     
				         j++;         
				     }
				     j=0;
				     i++;
				  }
				  
				
				  //颇老俊辑 佬绢柯 单捞鸥甫 免仿
				  for(i=0;i < 10;i++)
				  {   for(j=0;j < 5;j++)
				      {
				        printf("%s ",data[i][j]);
				      }
				      printf("\n");
				  }
				  fclose(fp);  
				  system("pause");  
				  return 0;
				}
							

相关资源