0.素数计数函数x/ln(x)
1.随机化的代码:
#include<cstdlib>
#include<ctime>
srand((unsigned)time(NULL));
m=rand()%(r-l+1)+l;
2.读入一整行字符串
getline(cin,s);
cin.ignore();//忽视一行
0.素数计数函数x/ln(x)
1.随机化的代码:
#include<cstdlib>
#include<ctime>
srand((unsigned)time(NULL));
m=rand()%(r-l+1)+l;
2.读入一整行字符串
getline(cin,s);
cin.ignore();//忽视一行