糯米文學吧

位置:首頁 > 計算機 > 計算機三級

2016年計算機三級網絡機試題及答案

函數TeadDat()實現從文件夾中讀取一篇英文文章存入到字符串組xx中,請編制函數SortCharD(),其函數的`功能是:以行為單位對字符按從小到大的順序進行排列,排列後的結果仍按行重新存入字符串組xx中,最後調用函數wrintDat()把結果xx輸出到文件中。

2016年計算機三級網絡機試題及答案

例:原文:dAe,BfC.

CCbbAA

結果:,ef

DDCCBB

#include

#include

#include

char xx[50][80];

int maxlien=0;

int ReadDat(void);

void WriteDat(void);

void SortCharD(void);

{

//在此區域填寫你的答案。

}

void main

{

clrscr();

if(ReadDat())

{

printf("數據文件不能打開!n