原文:ArcGIS for Desktop入门教程_第六章_用ArcMap制作地图 - ArcGIS知乎-新一代ArcGIS问答社区 1 用ArcMap制作地图 作为ArcGIS for Desktop的组成部分之一,ArcMap用于数据的浏览.编辑.显示.查询.地图排版等.ArcMap和ArcCatalog一起构成了完整的数据处理与管理分析的功能.在前一章中已经介绍了ArcCatalog的使用,本章中将介绍ArcMap的使用.本章的例子依然使用第4章里的小区平面图示例,但是将从原理的角度做更加…
例8.1 分析下面程序的输出结果. 例8.2 分别使用指针和引用的display函数. #include <iostream> using namespace std; const double PI = 3.14159; class Point { private: double x, y; public: Point(double i, double j) { x = i; y = j; } virtual double area() { ; } }; class Circle :publ…
# 6.1_引言 程序1: 结果: Sum from 1 to 10 is 55Sum from 20 to 38 is 513Sum from 35 to 50 is 630 程序2: #程序1和2表达的意思是一样的,得到的结果也是一样的. # 6.2_定义一个函数 #6.3_调用一个函数 程序清单6-1: 结果:The larger number of and 2 is 5 #6.4_带返回值或不带返回值的函数 程序清单6-2:(不带返回值的函数) 结果: Enter a score:79.…
例4.1 描述点的Point类. 例4.2 根据上面对Point类的定义,演示使用Point类的对象. #define _SCL_SECURE_NO_WARNINGS #include <iostream> using namespace std; class Point//类名Point { private://声明为私有访问权限 int x, y;//私有数据权限 public://声明为公有访问权限 void Setxy(int a, int b);//无返回值的公有成员函数 void…
无论传递什么参数,函数都有副本机制 改变一个变量,需要传入变量的地址 改变一个指针变量,需要传入指针变量的地址 //int add(int a, int b);挖取函数声明 //int ()(int a, int b);换成括号 //int (*p)(int a, int b);加上*指针名 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> int add(int a, int b) { ret…
例7.1 使用类模板的实例. 例7.2 求4个数中最大值的类模板程序. #include <iostream> using namespace std; template <class T> class Max4 { T a, b, c, d; T Max(T a, T b) { return (a > b) ? a : b; } public: Max4(T, T, T, T); T Max(void); }; template <class T>//定义成员函…
例6.1 使用默认内联函数实现单一继承. #include<iostream> using namespace std; class Point { private: int x, y; public: Point(int a, int b) { x = a; y = b; cout << "Point..." << endl; } void Showxy() { cout << "x=" << x <…
链式编程 每次调用方法后,返回的是一个对象 /* * 链式编程 * 每次调用方法后,返回的是一个对象 */ class Student { public void study() { System.out.println("good good study, day day up!"); } } class StudentDemo { public Student getStudent() { return new Student(); } } public class InnerCla…
例9.1一个文件复制应用程序,将某个文件的内容全部复制到另一个文件. import java.io.*; public class Example9_1 { public static void main(String arg[]) { File inputFile = new File("file1.txt"); File outputFile = new File("file2.txt"); int ch; try { FileReader in = new F…