搜索结果

找到约 22 项符合 Namespace 的查询结果

其他 写了一个小程序

写了一个小程序,听往上说什么将类的申明放在namespace里面的话,该类就不能再派生了,我做的这个程序还可以派生,不知道这是怎么回事
https://www.eeworm.com/dl/534/226820.html
下载: 86
查看: 1047

教育系统应用 c++图书管理系统 include <iostream> #include <iomanip> #include <string> #include &lt

c++图书管理系统 include <iostream> #include <iomanip> #include <string> #include <fstream>//输入/输出文件流类 using namespace std const int Maxr=100 //最多的读者 const int Maxb=100 //最多的图书 const int Maxbor=5 //每位读者最多借五本书 //读者类,实现对读者的信息的描述 ...
https://www.eeworm.com/dl/621/304040.html
下载: 55
查看: 1195

书籍源码   在本光盘中提供了由谭浩强编著的《C++程序设计》(清华大学出版社出版)一书中各章的例题程序以及全部习题的参考解答

  在本光盘中提供了由谭浩强编著的《C++程序设计》(清华大学出版社出版)一书中各章的例题程序以及全部习题的参考解答,以方便教师进行教学,也便于读者上机运行这些程序以及在此基础上修改和调试程序。 程序按章设立文件夹(子目录),例如文件夹c12中包含的是第12章全部例题的程序。程序的文件名以c开头,与例题号一一对应 ...
https://www.eeworm.com/dl/532/400386.html
下载: 186
查看: 1051

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.
https://www.eeworm.com/dl/633/462699.html
下载: 81
查看: 1027

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; } ...
https://www.eeworm.com/dl/502385.html
下载: 1
查看: 32

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) ...
https://www.eeworm.com/dl/510573.html
下载: 1
查看: 29

笔记 编写一个程序,要求用户输入一年12个月每月的降雨总量,并采用一个float数组存储。

程序显示: 一年内总降雨量、平均每月的降雨量、降雨量最大的月份和最小的月份。 #include<iostream> using namespace std; #include<stdlib.h> int main() .. .. .. cout<<"降雨量最小的月份是:"<<minyue<<"月   "<<"降雨量为:"<<min<<endl; } ...
https://www.eeworm.com/dl/517028.html
下载: 3
查看: 1049

源码 数据结构实验

#include <stdio.h>   #include <stdlib.h> ///链式栈      typedef struct node   {       int data;       struc ...
https://www.eeworm.com/dl/517413.html
下载: 2
查看: 48

源码 数据结构实验

#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;// ...
https://www.eeworm.com/dl/517414.html
下载: 2
查看: 50

软件 道理特分解法

#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= ...
https://www.eeworm.com/dl/517487.html
下载: 2
查看: 30