摘要: C语言占用的内存可以分为5个区: ①代码区(Text Segment):不难理解,就是用于放置编译过后的代码的二进制机器码。 ②堆区(Heap):用于动态内存分配。一般由程序员分配和释放,若程序员不释放,结束程序时有可能由操作系统回收。(其实就是malloc()函数能够掌控的内存区域) ③栈区(St 阅读全文
posted @ 2019-11-23 11:50 风间6324 阅读(972) 评论(0) 推荐(0) 编辑
摘要: #pragma once #define MAXSIZE 1000 #include<iostream> using namespace std; template<class DataType> class triple { public: int row, col; DataType e; }; 阅读全文
posted @ 2019-11-04 16:10 风间6324 阅读(477) 评论(0) 推荐(0) 编辑
摘要: int m[][4] = { {0,0,0,1}, {1,0,0,1}, {0,0,1,0} }; Mtriple<int> t(3, 4, (int*)m); 在传递任意行和列的二维数组时,可以采取在main函数中写成上述形式的方法 而头文件中写的函数要通过地址找到值 template<class 阅读全文
posted @ 2019-11-04 12:40 风间6324 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 我丢在了public里 http://localhost:8080/index.json 可以访问到了 阅读全文
posted @ 2019-10-15 15:37 风间6324 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 任务管理器打开服务,找到这俩 手动把服务开了就好了 阅读全文
posted @ 2019-06-20 09:11 风间6324 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 原因是我定义了一个二维数组 int e[510][510]; 而在使用fill对数组初始化时,并没有采用二维数组初始化的方式,而是写成了: fill(e, e + 510 * 510, inf); 正确写法应该是: fill(e[0], e[0] + 510 * 510, inf); 阅读全文
posted @ 2019-05-20 22:44 风间6324 阅读(5344) 评论(0) 推荐(2) 编辑
摘要: Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat 阅读全文
posted @ 2019-05-20 21:53 风间6324 阅读(159) 评论(0) 推荐(0) 编辑
摘要: A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Specification: Each inp 阅读全文
posted @ 2019-05-20 20:37 风间6324 阅读(275) 评论(0) 推荐(0) 编辑
摘要: This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu 阅读全文
posted @ 2019-05-16 20:41 风间6324 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 使用sprintf 头文件 #include<stdio.h> 栗子 哈哈哈哈真的神器妈的 早知道用这个我就不会在字符串上吃这么多亏了 阅读全文
posted @ 2019-05-16 16:39 风间6324 阅读(11908) 评论(0) 推荐(0) 编辑