搜索结果
找到约 22 项符合
Namespace 的查询结果
按分类筛选
教育系统应用 c++图书管理系统 include <iostream> #include <iomanip> #include <string> #include <
c++图书管理系统
include <iostream>
#include <iomanip>
#include <string>
#include <fstream>//输入/输出文件流类
using namespace std
const int Maxr=100 //最多的读者
const int Maxb=100 //最多的图书
const int Maxbor=5 //每位读者最多借五本书
//读者类,实现对读者的信息的描述 ...
书籍源码 在本光盘中提供了由谭浩强编著的《C++程序设计》(清华大学出版社出版)一书中各章的例题程序以及全部习题的参考解答
在本光盘中提供了由谭浩强编著的《C++程序设计》(清华大学出版社出版)一书中各章的例题程序以及全部习题的参考解答,以方便教师进行教学,也便于读者上机运行这些程序以及在此基础上修改和调试程序。
程序按章设立文件夹(子目录),例如文件夹c12中包含的是第12章全部例题的程序。程序的文件名以c开头,与例题号一一对应 ...
Java编程 This inspired me to make this tool. This tool is not a professional one but shows an example which m
This inspired me to make this tool. This tool is not a professional one but shows an example which makes use of the System.Diagnostics namespace. With this tool, you can write small console based Java programs, compile and run. Just a way to practically learn Java.
C/C++语言编程 toj 4022源代码
#include <iostream>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
long long n;
cin>>n;
if(n%2==1)
cout<<(n*n-1)/4<<endl;
else if (n%4==0)
cout <<(n*n)/4-1<<endl;
else{
if(n==2)
cout<<1<<endl;
else{
long long k=n/2-1;
cout <<k*k+2*k-3<<endl;
}
...
Linux/uClinux/Unix编程 c语言程序源
#include <iostream>
using namespace std;
class Student
{
public:
Student(int, int);
int num;
int grade;
};
Student::Student(int n, int g)
{
num = n;
grade = g;
}
int maxGradeIndex(Student* s)
{
int maxGrade, index = 0, i = 0;
maxGrade = s[0].grade;
for (i = 0; i<5; i++)
{
if (s[i].grade > maxGrade)
...
笔记 编写一个程序,要求用户输入一年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;// ...