Monthly Archives: December 2010

Read file , and count the IDs.

I’ve forgot the useage of fstream.getline function. #include <iostream>#include <fstream>#include <stdio.h>using namespace std;int main(int argc,char * argv[]){ fstream MyFileStream; char ReadInput[1024]; int IdMax= -1 , Counts = 0; MyFileStream.open(“Book_data.prn”,ios_base::in); while(!MyFileStream.eof() && MyFileStream.getline(ReadInput,1024)) { int ReadId=atoi((strtok(ReadInput,” “))); if(IdMax < ReadId) { … Continue reading

Posted in 程式設計 | Leave a comment

冒痘痘的位置可能顯示出身體的警訊

臉上是否常常長痘痘?這代表妳/你 的身體代謝可能出了些問題… 額頭﹕脾、胃出現問題﹔眉心﹕心火旺﹐心包括心臟和大腦﹐意指過于勞心傷神﹔鼻樑和鼻頭﹕脾有問題﹔鼻兩側﹕胃火大﹐消化系統異常﹔左邊臉頰﹕肝功能不順暢﹔右邊臉頰﹕肺功能失常﹔左右腮﹕胰部出現問題﹔下巴﹕腎功能受損或內分泌失調。 想知道更詳細情況,請至 http://tw.myblog.yahoo.com/jw!eRN1fU.QHALGaK0ojRax1gU-/article?mid=837&prev=838&l=f&fid=8

Posted in 生活 | 2 Comments