2007-11-26

因式分解的算法

关键字: 因式分解的算法
xml 代码     笔试做到因式分解,因为时间不够没写完代码,现在把代码补全     #include<iostream.h>   #include <stdlib.h>      int *divp(int m,int &k);    bool isp(int n);   ...
2007-11-26

判断质数以及求某数以内的质数

关键字: 判断质数以及求某数以内的质数
xml 代码        今天去笔试,做了个关于求某数以内质数之和的题目,虽然做出来了,但是感觉效率还是很低,不过查了下,也没其他的效率高的方法(也许是baidu没用好的缘故)。先把自己的与大家一起分享,有什么建议希望大家不吝赐教。    #include<iostream.h>   #include <stdlib.h>   int main()  &nbs ...
2007-11-26

C/C++中typedef struct和struct的用法

关键字: C/C++中typedef struct和struct的用法
xml 代码 由于对typedef理解不够,因此从网上摘录了一些资料,整理如下:       C/C++中typedef struct和struct的用法       struct  _x1 { ...}x1; 和 typedef  struct  _x2{ ...} x2; 有什么不同?    ...
dikar
搜索本博客
存档
最新评论