解決資料輸入的乙個嘗試

2021-08-14 11:30:00 字數 578 閱讀 1088

應用系統資料輸入是個大問題。乙個客戶很多資料存在word檔案裡,word檔案是文字與**混排。需要將**中的資料提取出來。c#開發,採用了這種方式:

for (int tablepos = 1; tablepos <= odoc.tables.count; tablepos++)

/個表:/n", tablepos, odoc.tables.count);

for (int rowpos = 1; rowpos <= nowtable.rows.count; rowpos++)

tablemessage += "/n";

}string msgtable = tablemessage;

}odoc.close(ref omissing, ref omissing, ref omissing);

oword.quit(ref omissing, ref omissing, ref omissing);

marshal.releasecomobject(odoc);

marshal.finalreleasecomobject(oword);

oword = null;}}



乙個乙個的輸入資料

有兩個需要注意的點 1.while中的內容 whlie ch getchar 0 ch eof 注意這兩個書寫的形式是不一樣的 2.while中就不用再寫getchar了,因為while中本身就有ch getchar 輸入描述 一行,字串行,包含a或b,輸入以字元0結束。輸出描述 一行,乙個字元,a...

嘗試實現乙個簡單的threadpool

參考資料 c 高併發多執行緒學習 一 c 併發程式設計 part 2 標頭檔案 include include include include include include include include include using namespace std class task task vi...

嘗試乙個「建立知識」的過程

大多數的外在特性是容易從系統中辨識出來的。例如,我們要做乙個辦公系統 oa,office anywhere 那麼我們可以肯定幾點事實 1 這一系統總是某些辦公室成員使用的 2 這一系統總是提供上述人員的日常工作所需的功能 3 這一系統既包括對現實工作的對映,也包括一些試圖改變現行工作的電子化需求。這...