2012年12月1日

Freopen()与ofstream()

摘要: freopen:freopen(const char *filename,const char *type, FILE *stream);也就是说将stream流于文件名为filename的关联起来。。。进行类型为第二个参数type的操作。。。(一般是‘w’或者'r')这样,就可以在程序中直接进行原来的输入输出,而程序会自动的将输入输出与指定的内容绑定起来~ofstream ifstreamofstream name("path");定义一个文件流名,以及其引号中的路径以及文件名;即与文件流的输入输出相绑定的文件;之后,就可以直接用name来<< 阅读全文

posted @ 2012-12-01 19:46 yumao 阅读(508) 评论(0) 推荐(0) 编辑

usaco pro 52 Calf Flac

摘要: Calf FlacIt is said that if you give an infinite number of cows an infinite number of heavy-duty laptops (with very large keys), that they will ultimately produce all the world's great palindromes. Your job will be to detect these bovine beauties.Ignore punctuation, whitespace, numbers, and case 阅读全文

posted @ 2012-12-01 18:24 yumao 阅读(300) 评论(0) 推荐(0) 编辑

导航