一、手册代码以及图示 二、流程说明 1、角度计算函数说明 //============================================================================ //函数名称:void AngleCalculate(void) //函数返回:无 ...
分类:
其他好文 时间:
2015-11-08 20:45:15
阅读次数:
353
#include
#include
#include
#define NULL 0
struct SNode{
int data; //data domain
SNode *next; //pointer domain
};
class Stack{
public:
Stack();
~Stack();
void Push(int e);...
分类:
其他好文 时间:
2015-11-08 19:30:24
阅读次数:
164
1 using UnityEngine; 2 using System.Collections; 3 4 public class pipe : MonoBehaviour { 5 void Start() { 6 RandomGeneratePosition(); 7 ...
分类:
其他好文 时间:
2015-11-08 19:22:49
阅读次数:
210
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //或sd的路径 File fil...
分类:
其他好文 时间:
2015-11-08 19:11:33
阅读次数:
180
1、选择排序(时间复杂度为O(n2))选择排序的思想是在线性表中找到最小数,并将其放在表头,然后在剩下的数中找到最小数,放在第一个数之后,直到线性表中仅剩下一个数为止。Java实现: public static void choiceSort(Integer[] a) { if (a == nu.....
分类:
编程语言 时间:
2015-11-08 17:44:22
阅读次数:
217
容器启动过程总体流程 public?void?refresh()?throws?BeansException,?IllegalStateException?{
//容器在启动之前要获得对象锁,保证容器只有一个启动synchronized?(this.startupShutdownMonitor)?{
//?...
分类:
编程语言 时间:
2015-11-08 15:27:20
阅读次数:
273
文件重定向
#include
using namespace std;
void main()
{
char str[30] = { 0 };
cin >> str;
cout << str;
system(str);
cerr << "error for you";
cin.get();
cin.get();
}
键盘输入流
#include
#incl...
分类:
编程语言 时间:
2015-11-08 15:16:44
阅读次数:
352
1 import java.lang.reflect.*; 2 3 class reflectDemo 4 { 5 public static void main(String[] args) throws Exception 6 { 7 String s="He...
分类:
编程语言 时间:
2015-11-08 15:12:49
阅读次数:
293
对于堆排序,最重要的两个操作就是构造初始堆和调整堆;当然堆排序分为大顶堆和小顶堆,它是根据排序中根节点大小来描述的。构造初始堆:从最后一个非叶节点开始,使Key[i]>=Key[2i+1]&&key>=key[2i+2]void heap_sort_init(int *pArr, int len){...
分类:
编程语言 时间:
2015-11-08 15:09:36
阅读次数:
243
题目的意思是求重合层数最多的段(把点也看成段)。给的数据范围为N 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 void local(int l,int r,int k); 9 void add(int l,i...
分类:
其他好文 时间:
2015-11-08 14:51:23
阅读次数:
188