2014年11月5日

类的简单运算

摘要: 1 #include 2 using namespace std; 3 4 class rectangle 5 { 6 private: 7 int length,width; 8 public: 9 rectangle(){};10 rectangle(int a,... 阅读全文

posted @ 2014-11-05 15:51 嘘寒问暖 阅读(215) 评论(0) 推荐(0) 编辑

c语言读写文件操作

摘要: 1 #include 2 #include 3 #include 4 void writefile() 5 { 6 FILE *fp; 7 fp = fopen("e://ss.txt","w+"); 8 if(fp == NULL) 9 {10 ... 阅读全文

posted @ 2014-11-05 15:37 嘘寒问暖 阅读(164) 评论(0) 推荐(0) 编辑

求100-1000之间的素数

摘要: 1 #include 2 #include 3 int main() 4 { 5 int i=2, a=100, flag=0; 6 for (a=100;a<=1000;a++) 7 { 8 flag=0; 9 i= 2;10 ... 阅读全文

posted @ 2014-11-05 15:18 嘘寒问暖 阅读(451) 评论(0) 推荐(0) 编辑

导航