gdb FILE 调试程序gdb run 运行程序gdb list 查看代码break num
设置断点breac function info b 查看断点 delete b 删除断点break operator(函数名) 条件断点step 单步 next
往下执行 display varible ...
分类:
数据库 时间:
2014-05-27 03:07:35
阅读次数:
309
/*C控制语句--分支和跳转*//*关键字 if else switch continue break
case default goto 运算符:&&(且) ||(或) ?:(三元运算符) 函数 getchar() putchar()
怎样使用if和if else 语句以及如何嵌套使用它们。...
分类:
其他好文 时间:
2014-05-27 01:17:44
阅读次数:
282
定义一个类来表示2D平面几何中的点。这个类实例化的对象拥有一个名为r()的方法,用来计算该点到原点的距离function Point(x,y){ this.x
= x; this.y = y;}var p = new Point(1,1);Point.prototype.r = func...
分类:
编程语言 时间:
2014-05-24 07:36:10
阅读次数:
235
void IsPrimeInteger(int n){ if(n n) break; if(n%i
== 0) return false; } return true;}
分类:
其他好文 时间:
2014-05-23 11:06:30
阅读次数:
178
指针悬空
指针悬空在我们使用指针的时候很容易被忽视,主要的表现是:指针所指向的内存
释放,指针并没有置为NULL,致使一个不可控制的指针。
#include
#include
int *pointer;
void func()
{
int n=8;
pointer=&n;
printf("pointer point data is %d\n",...
分类:
编程语言 时间:
2014-05-22 09:03:09
阅读次数:
371
实现Label与DataGridView对齐有两种方法,差别不大:
定义:
Label名称:lblName
DataGridView名称:dgvData
第一种:
lblName.Location = new Point(dgvData.Location.X + dgvData.Width - lblName.Width, lblName.Location.Y);
第二种:
lb...
//#define LOCAL#include#include#include#includeint
const MAX_N=101;typedef struct Point{ int x,y; bool operatorVec[i].y) { ...
分类:
其他好文 时间:
2014-05-19 17:08:45
阅读次数:
253
A linked list is given such that each node
contains an additional random pointer which could point to any node in the list
or null.Return a deep copy ...
分类:
其他好文 时间:
2014-05-19 15:50:28
阅读次数:
447
1.点对点拓扑 point-to-point scheduling
该拓扑结构简单,整个网络的阻抗特性容易控制,时序关系也容易控制,常见于高速双向传输信号线;常在源端加串行匹配电阻来防止源端的二次反射。2.菊花链结构
daisy-chain scheduling 如下图所示,菊花链结构也...
分类:
其他好文 时间:
2014-05-19 12:50:38
阅读次数:
227
class Point{ public double x; public double y;}
对于可变的类来说,应该用包含私有域和公有设值方法的类来代替:class Point{ private double x; private double y;
Point(d...
分类:
其他好文 时间:
2014-05-19 12:37:01
阅读次数:
224