自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (1)
  • 收藏
  • 关注

原创 note--基本语法(1)

1.作用域问题string text = "";  //这里必需初始化for (int i = 0; i text = "hello text" + i;}Console.WriteLine(text);2. switch case 必须加break3. int[][] array //锯齿数据  与 int[,] array 区别   int[][

2015-05-09 09:05:53 788

转载 Visimulator for Notepad++

ViSimulator for notepad++Description:ViSimulator for notepad++ is a plug-in for notepad++, which makes it possible to edit as vi/vim in notepad++. ViSimulator simulates/emulates most frequen

2015-03-28 16:51:51 3234

原创 c语言实现不同类型数组的print(union + flag)

#include #include #include union ArrayType { int *d; double *lf; char *c;};enum DATATYPE { CHAR = 'c', DOUBLE = 'l', INT = 'd'};struct ArrayType2 { enum DATATYPE flag; union { int *d; double *lf; char

2014-12-07 18:58:50 901

原创 c语言重载不同类型数组的print(c99标准)

#include #define printX(x, n) _Generic((x), \ double *: print_double, \ int *: print_int)(x, n)void print_double(double arr[], int n){ for (int i = 0; i < n; ++i) printf("double %lf\n", arr[i]);}void

2014-12-07 18:54:31 948

原创 unix Tutorial for beginners

http://www.ee.surrey.ac.uk/Teaching/Unix/

2014-11-16 22:49:07 637

原创 求整数二进制表示中1的个数,三种算法

void bitcount(int x){ printf("%d ",x); int i = 0; while(x) {   x &= x-1;   i++; }     printf("%d\n",i);}void bitcount2(int x){ printf("%d ",x); int i = 0; while(x) {

2014-10-21 17:28:50 553

转载 VLOOKUP制作EXCEL动态图

原链接

2014-01-20 10:43:21 1492

转载 R中利用apply、tapply、lapply、sapply、mapply、table等函数进行分组统计

原文链接apply函数(对一个数组按行或者按列进行计算):使用格式为:apply(X, MARGIN, FUN, ...)其中X为一个数组;MARGIN为一个向量(表示要将函数FUN应用到X的行还是列),若为1表示取行,为2表示取列,为c(1,2)表示行、列都计算。示例代码:> ma > ma     [,1] [,2] [,3] [,4][1,] 

2014-01-16 18:14:33 1806

原创 SQL删除部分字段重复

delete t1 from futures t1where exists( select 1 from futures t2 where t1.Code = t2.Code and t1.date = t2.date and t1.volume<t2.volume group by Code,date)--在 table futures中,删除字段code、date相同

2014-01-16 18:08:01 678

转载 内存对齐和sizeof(结构体)

有的时候,在脑海中停顿了很久的“显而易见”的东西,其实根本上就是错误的。就拿下面的问题来看:sizeof(T)的值为多少呢?structT{char ch;int i ;};在32位机中,int是4个字节,char是1个字节,所以T一共是5个字节。实践出真知,在VC6中测试了下,答案确实8个字节。为什么答案和自己想象的有出入呢?这里将引入内存对齐这个概念。许

2012-05-10 14:10:06 470

原创 pair类型 map

#include #include #include #include using namespace std;int main(){ pair exch ; typedef pair p; string first = "hello",last = "world",last2 = "new world"; exch = make_pair(firs

2012-04-23 16:34:37 537

微机原理——数制与编码

微机原理——数制与编码 一、进制转换及计算 进制:计数的一种制度(规则)。 不同进制之间本质是相同的,只是: 数码的个数不同 进位的基数不同

2011-03-10

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除