1 # 2 # 3 #all: 4 # arm-linux-gcc main.c -c -o main.o -I./include 5 # arm-linux-gcc hardware.c -c -o hardware.o -I./include 6 # arm-linux-as start.S -... ...
分类:
其他好文 时间:
2018-04-24 00:25:38
阅读次数:
15
题目:https://www.luogu.org/problemnew/show/P1462 最大值最小问题,二分答案。 代码如下: ...
分类:
其他好文 时间:
2018-04-24 00:23:34
阅读次数:
19
1.//Complex.h class Complex{ public: Complex(float X,FLOAT Y):x(X),y(Y){} Complex(float X):x(X){} void add(Complex &c); void show(); private: float x, ...
分类:
其他好文 时间:
2018-04-24 00:15:46
阅读次数:
7
第二题 include using namespace std; class Graph { public: Graph(char t, int n); void draw(); private: char ch; int number; }; Graph::Graph(char t, int n) ...
分类:
其他好文 时间:
2018-04-24 00:15:23
阅读次数:
7
头文件,源文件一开始分不清,然后查了一下,发现一篇讲的挺好的,下面是链接 https://blog.csdn.net/SleepBoyer/article/details/54577848 第二题 原来的包含在选做一里面了,下面是选做一的代码 graph.cpp ... include "graph ...
分类:
其他好文 时间:
2018-04-23 22:48:57
阅读次数:
11
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 //素数测试 8 bool is_prime(int n) 9 { 10 for(int i=2; i*i divisor(int n) 18 { 19 ve... ...
分类:
其他好文 时间:
2018-04-23 22:44:06
阅读次数:
11
#include<iostream>#include<string>usingnamespacestd;classBook{public:Book(stringna,stringau,intpage,floatprice):name(na),author(au),page(page),price(price){cout<<"书名:"<&
分类:
编程语言 时间:
2018-04-23 22:42:01
阅读次数:
6
2.代码: 结果: 3.代码: 结果 负数的计算没能想出来. ...
分类:
其他好文 时间:
2018-04-23 22:41:46
阅读次数:
5
#ifndef GRAPH_H #define GRAPH_H class Graph { public: Graph(char ch, int n); void draw(); private: char symbol; int size; }; #endif #include "graph...... ...
分类:
其他好文 时间:
2018-04-23 22:41:27
阅读次数:
6
题意:给你几组字符串,每组添加多少个字符能够构成循环. 题解:最小循环节,注意讨论的三种情况,题上刚好给了这三种情况(要是不给我这弱鸡又考虑不全了) 1 #include <iostream> 2 #include <cstring> 3 #include <string> 4 #include < ...
分类:
其他好文 时间:
2018-04-23 22:38:33
阅读次数:
5