20130401

1、vs里面光标跳转:

Ctrl+-
Ctrl+Shift+-
Ctrl+(Shift+)PageDn
Ctrl+pageUp
Ctrl+G 跳转到指定行

Ctrl+左右光标 以单词为单位移动
二、显示代码行号
  工具 - 选项 - 文本编辑器 选择 对应的语言 然后把 行号 勾上
Split(txtBarCode1.Text, Space(1))

If strBarCode1(0).StartsWith("3N1") Then
strBarCode1(0) = strBarCode1(0).Remove(0, 3)

1         Dim a() As String = {"3N1", "P", "1P"}
2         Dim b As String = "3N1P1Pdfksal;Pfjdka"
3         For Each aa As String In a
4             b = b.TrimStart(aa.ToCharArray)

isnumeric :表示表达式是否可以计算为数字类型

_可以用来断行

vb里怎样定义常量字符串数组?

Initialization. You must initialize the value of every constant inconstantlist. You use initializer to supply an expression to be assigned to the constant. The expression can be any combination of literals, other constants that are already defined, and enumeration members that are already defined. You can use arithmetic and logical operators to combine such elements.

exit for

用val函数 提取数字

<>:不等于
e.KeyCode = Keys.Enter

一个由c/C++编译的程序占用的内存分为以下几个部分 

1、栈区(stack)— 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中的栈。 

2、堆区(heap) — 一般由程序员分配释放, 若程序员不释放,程序结束时可能由OS回收 。注意它与数据结构中的堆是两回事,分配方式倒是类似于链表,呵呵。 

3、全局区(静态区)(static)—,全局变量和静态变量的存储是放在一块的,初始化的全局变量和静态变量在一块区域, 未初始化的全局变量和未初始化的静态变量在相邻的另一块区域。 - 程序结束后有系统释放 

4、文字常量区 —常量字符串就是放在这里的。 程序结束后由系统释放 

5、程序代码区—存放函数体的二进制代码
 1 //main.cpp
 2 int a = 0;      // 全局初始化区
 3 char *p1;      // 全局未初始化区
 4 void main()
 5 {
 6     int b;            // 栈区
 7     char s[] = "abc"; // 栈区
 8     char *p2; // 栈区
 9     char *p3 = "123456"; // p3在栈区;   "123456\0" 在常量区, 
10  
11     static int c =0;      // 全局(静态)初始化区
12     p1 = (char *)malloc(10);
13     p2 = (char *)malloc(20); // 分配得来的10和20字节的区域就在堆区 
14     strcpy(p1, "123456");    // "123456\0" 放在常量区,编译器可能会将它与p3所指向的"123456"优化成一个地方。
15 }
1   Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
2         If disposing Then
3             If Not (components Is Nothing) Then 
4                 components.Dispose() 
5             End If
6         End If
7         MyBase.Dispose(disposing)
8     End Sub
 http://wenku.baidu.com/view/7a41264433687e21af45a917.html

原文地址:https://www.cnblogs.com/xtypeu/p/2993245.html