【文章內(nèi)容簡(jiǎn)介】
YTaiyuan University of Technology (TUT) has its history traced all the way back to the Western Learning School of Shanxi Grand Academy (1902), which was one of the three earliest national universities in China. With the tradition and development of over 100 years, TUT is now a general university with engineering as the major, sciences and technology integrated and coordinate development of multiple disciplines. It is a university that is included in the “Project 211” the national higher education promotion program for 100 top universities in China.……Recollecting the centennial history, generations of TUT have created its mission and glory of a century with responsibility and confidence。 expecting the promising tomorrow, over 30,000 TUT students and faculty are producing splendor and perspectives by their wisdom and diligence. In the new era, Taiyuan University of Technology, following the Conception of Scientific Development, is determined to further the reformation on education, to reinforce the teaching management so as to upgrade its teaching and researching levels. Taiyuan University of Technology will be turning itself into a researchbased university.設(shè)計(jì)C或C++程序,統(tǒng)計(jì)在這樣的英文文本文件中,出現(xiàn)了多少個(gè)單詞,每個(gè)單詞出現(xiàn)了幾次。連續(xù)的英文字符都認(rèn)為單詞(不包括數(shù)字),單詞之間用空格或標(biāo)點(diǎn)符號(hào)分隔?!驹O(shè)計(jì)需求及分析】(1) 定義結(jié)構(gòu)體用于存儲(chǔ)一個(gè)單詞,freopen語(yǔ)句生成文本文檔并用來(lái)保存結(jié)果。(2) 通過(guò)FILE指針判斷文本打開是否成功,成功則輸入單詞?!驹O(shè)計(jì)功能的實(shí)現(xiàn)】includeincludeincludeincludedefineN1000structa{charch[20]。intm。intflag。}。voidmain(){freopen(,w,stdout)。//。 structaword[N]={NULL}。chartem[20]。intk=0,j=0,i=0,count=1。FILE*fp。charc[20]。if((fp=fopen(,r))!=NULL){while(!(feof(fp))){fscanf(fp,%s,word[k].ch)。k++。}//如果tyut的文本打開成功,則向文本中輸入單詞。for