![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++习题答案
P_leopard17
这个作者很懒,什么都没留下…
展开
-
C++习题(from the teacher)Apr.
Apr.04_22_1//4.22-1 字符正方形#include using namespace std; int main(void){ int n,flag=0; char ch; cout do { cin>>n;原创 2008-04-24 20:32:00 · 974 阅读 · 2 评论 -
C++习题(from the teacher)May.
05_01_105_01_2//哥德巴赫猜想//1既不是素数也不是合数。猜想中N应该从4开始。//将要分解的i从4开始遍历,为了提高效率先采用筛选//原理:偶数=奇数+奇数=偶数+偶数(只有4=2+2成立);#include using namespace std;const int TRUE(1);const int FALSE(0);int PrimeN原创 2008-05-04 23:22:00 · 848 阅读 · 0 评论