c讀取文本文件並將單詞存入數組排序輸出

// homework0213.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include
#include 
#include 
#define NUM 20
#define COUNT 10000


typedef struct words
{
    char word[NUM];
    int count; 
}Words;


Words text[COUNT];
int rc = 0; 

void store(char* word)
{   
    int i=0;
    int flag = 0;
    if(rc==0)
    {
        strcpy(text[rc].word,word);
        text[rc].count = 1;
        rc++;
    }
    else
    {
        for(i=0;i0;--i)
        for(j=0;j

你可能感兴趣的:(c讀取文本文件並將單詞存入數組排序輸出)