实验

实验3 类与数组、指针

实验任务1 point.hpp 1 #pragma once 2 #include <iostream> 3 using std::cout; 4 using std::endl; 5 class Point 6 { 7 public: 8 Point(int x0 = 0, int y0 = 0) ......
数组 指针

实验三

实验任务1 源代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #include <windows.h> 5 #define N 80 6 void print_text(int line, int col, ch ......

实验3 类与数组、指针

一.实验任务一 point.hpp #pragma once #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = d ......
数组 指针

实验三

#include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[]); // 函数声明 vo ......

实验三 类与数组,指针

Task1: point.hpp: #pragma once #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = d ......
数组 指针

实验3

#pragma once #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = default; int get_x( ......

实验三

实验一源代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[]); voi ......

实验3

实验1 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 #include<Windows.h> 5 #define N 80 6 7 void print_text(int line, int col, char test[ ......

实验 3

1. hpp #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = default; int get_x() cons ......

实验三 类与数组、指针

1.实验任务1 point.hpp 1 #include <iostream> 2 #include "point.hpp" 3 #include <vector> 4 using std::vector; 5 using std::cin; 6 // 输出vector<Point>对象内所有点的坐 ......
数组 指针

实验3_C语言函数应用编程

task1.c #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[]); // ......
函数 语言

实验三 类与数组指针

第一个任务 #pragma once #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = default; int ......
数组 指针

实验3 类与数组、指针

1、实验任务1 源码Point.hpp #pragma once #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = ......
数组 指针

实验三

任务一 task1.cpp 点击查看代码 #include <iostream> #include "point.hpp" #include <vector> using std::vector; using std::cin; void output(const vector<Point> &v) ......

实验三 类与数组,指针

任务1: 1.代码:point.hpp: 1 #pragma once 2 3 #include <iostream> 4 using std::cout; 5 using std::endl; 6 class Point { 7 public: 8 Point(int x0 = 0, int y0 ......
数组 指针

实验三 类与数组、指针

任务1 1 #pragma once 2 #include <iostream> 3 using std::cout; 4 using std::endl; 5 class Point { 6 public: 7 Point(int x0 = 0, int y0 = 0); 8 ~Point() = ......
数组 指针

实验三

task1源代码: #pragma once #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = default; ......

实验三

1.Point.hpp 1 #pragma once 2 #include<iostream> 3 using namespace std; 4 class Point{ 5 public: 6 Point(int x0=0,int y0=0); 7 ~Point()=default; 8 int ......

实验一 类和对象_基础编程1

任务一 task1.cpp #include <iostream> #include <string> #include <vector> #include <array> template<typename T> void output1(const T &obj){ for(auto i: ob ......
对象 基础

实验3 类与数组指针

task1 point.hpp #pragma once #include<iostream> using std::cout; using std::endl; class Point { public: Point(int x0=0, int y0=0); ~Point()=default; i ......
数组 指针

实验3 C语言函数应用编程

实验任务1 源代码: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #include <windows.h> 5 #define N 80 6 7 void print_text(int line,int col,c ......
函数 语言

实验三 类与数组、指针

任务一 point.hpp #pragma once #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = defau ......
数组 指针

实验三

实验一 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 #include<windows.h> 5 #define N 80 6 7 void print_text(int line,int col,char text[]) ......

实验3

#pragma once #include<iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = default; int get_x() ......

【单片机】初次实验:Keil51的使用

哔哩哔哩/CSDN/博客园:萌狼蓝天 延时器 delay(int count){ int i,j; for(i=0;i<count;i++){ for(j=0;j<1000;j++); } } 瞧一瞧 题目要求:P0口接八个发光二极管,先让后面四个灯亮,再让前面四个灯亮,循坏 # include < ......
单片机 Keil 51

实验3

1.Point.h #pragma once #include<iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = default; i ......

实验三

#include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line,int col,char text[]); void print_s ......

实验三

1. .hpp #pragma once #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = default; in ......

实验3 类与数组、指针

实验任务1 #pragma once #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); ~Point() = default; int ......
数组 指针

实验三

1.test1 1 #include <stdlib.h> 2 #include <time.h> 3 #include <windows.h> 4 #define N 80 5 #include<stdio.h> 6 7 void print_text(int line,int col,char ......