- 博客(6)
- 收藏
- 关注
原创 哈工大sse实验题4.1
#include <iostream>#include <cmath>using namespace std;#include <iomanip>using std::setw;int main(){ int n=10000,i,j,sqrti,k=0; cout<<"The prime numbers from 1 to 10000 are:"<<endl; for(i=2; i<=n; i++)
2021-04-12 00:18:10
383
原创 哈工大sse实验题3.3
在这里插入代码片```#include <iostream>using namespace std;#include <iomanip>int main(){int count = 0; float faHeight,moHeight,yourHeight; char gender, likeSport, goodDiet,go; int flag=1; while(flag==1) { cout<<"Input your gende
2021-04-11 21:53:27
440
原创 哈工大sse3.2
#include <iostream>using namespace std;#include <iomanip>int main(){int count = 0;for(int a=1;a<=500;a++){ for(int b=1;b<=500;b++) { for(int c=1;c<=500;c++) { if(c*c==a*a+b*b&&a<b
2021-04-11 20:10:29
310
原创 哈工大sse实验题
#include using namespace std;#include int main(){int hours; double rate,Salary;cout << “Enter hours worked (-1 to end):” << setiosflags(ios::fixed | ios::showpoint);cin >> hours;while( hours!=-1){cout << “Enter hourly rate
2021-04-11 19:39:49
1369
原创 哈工大sse3.1
#include using namespace std;#include int main(){int accountNumber;double balance, charges, credits, limit;cout << "Enter account number (-1 to end):";cin>>accountNumber;while(accountNumber!=-1){cout<<"Enter beginning balance:";
2021-04-11 13:16:36
454
原创 哈工大sse实验2.4
#include <iostream>#include<math.h>using namespace std;#define PI 3.1415926int main() {char ch; cout<<"please input your character:"; ch=cin.get(); cout<<"the character is:"; if (ch>='A' &&ch<
2021-04-10 13:56:58
249
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人