- 博客(5)
- 收藏
- 关注
原创 C++敲桌子
#pragma warning(disable:4996)#include<stdio.h>#include<stdlib.h>#include<malloc.h>#include<iostream>using namespace std;#include<ctime>int main(){ for (int i = 0; i < 100; i++) { if (i % 7 == 0 || i % 10 == 7 |.
2021-03-20 14:42:44
81
原创 C++找水仙花数
#pragma warning(disable:4996)#include<stdio.h>#include<stdlib.h>#include<malloc.h>#include<iostream>using namespace std;#include<ctime>int main(){ int num = 100; while (num < 1000) { int a = 0; int b = 0; i.
2021-03-20 14:27:06
191
原创 C++随机数案例
C++随机数案例#pragma warning(disable:4996)#include<stdio.h>#include<stdlib.h>#include<malloc.h>#include<iostream>using namespace std;#include<ctime>int main(){ srand((unsigned)time(NULL)); int num = rand() % 100 + 1;
2021-03-20 14:03:55
116
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人