搜索结果
找到约 36 项符合
iostream 的查询结果
按分类筛选
源码 学生管理啊
#include <iostream.h>
#include <string.h>
#include <iomanip.h>
#include "Stud.h"
Stud::Stud(){}
char *Stud::getno() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//获取学号
{
return no;
}
char *Stud::getname() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//获取姓名
{
return name;
}
char *Stud::ge ...
笔记 编写一个程序,要求用户输入一年12个月每月的降雨总量,并采用一个float数组存储。
程序显示:
一年内总降雨量、平均每月的降雨量、降雨量最大的月份和最小的月份。
#include<iostream>
using namespace std;
#include<stdlib.h>
int main()
..
..
..
cout<<"降雨量最小的月份是:"<<minyue<<"月 &nbsp; "<<"降雨量为:"<<min<<endl;
} ...
源码 数据结构实验
#include&nbsp;<stdio.h>&nbsp;&nbsp;
#include&nbsp;<stdlib.h>&nbsp;///链式栈&nbsp;&nbsp;
&nbsp;&nbsp;
typedef&nbsp;struct&nbsp;node&nbsp;&nbsp;
{&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;data;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;struc ...
源码 数据结构实验
#include <iostream>
#include <stdio.head>
#include <stdlib.head>
#include <string.head>
#define ElemType int
#define max 100
using namespace std;
typedef struct node1
{
ElemType data;
struct node1 *next;
}Node1,*LinkList;//链栈
typedef struct
{
ElemType *base;
int top;
}SqStack;// ...
软件 道理特分解法
#include "iostream" using namespace std;
class Matrix
{
private:
double** A; //矩阵A
double *b; //向量b
public:
int size;
Matrix(int );
~Matrix();
friend double* Dooli(Matrix& );
void Input();
void Disp();
};
Matrix::Matrix(int x) {
size= ...
源码 C++1000以内的素数
#include<iostream>
using namespace std;
int s=0;&nbsp;
int prime(int x){
int i,p=1;
for(i=2;i<=x/2;i++){
if(x%i==0){
p=0;
break;
}
}
if(p!=0){
cout<<x<< " ";
s++;
}
}&nbsp;
int main(){
for (int k=5;k<=100;k++){
prime(k);
if(s%5==0)
cout<<'\n';
}
return 0;
} ...