usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;namespacedemo{classProgram{staticvoidMain(string[]args){for(inti=1;i<=5;i++){for(intk=5;k>=i;k--){Console.Write("");}for(intj=1;j<=i;j++){Cons..
#include<stdio.h>
#defineSTR(s)#s
#defineCONS(a,b)(int)(a##e##b)
intmain()
{
printf(STR(vck));
printf("\n");
//vck
//2000
printf("%d\n",CONS(2,3);
return0
}宏定义中,#把宏参数变为一个字符串,用##把两个宏参数贴合在一起。
分类:
编程语言 时间:
2017-09-14 18:47:46
阅读次数:
100
一。const和引用的疑惑 输出结果 2.什么是符号表? #符号表是编译器在编译过程中产生的关于源程序中语法符号的数据结构。 #如常量表、变量名表、数组名表、函数名表。 #符号表是编译器自用的内部数据结构 #符号表不会进入最终产生的可执行程序中。 3.上面程序疑惑解答 a。只有用字面量初始化cons ...
分类:
其他好文 时间:
2017-09-12 23:12:24
阅读次数:
367
一、分号的作用: 在Java中,有一些字符被当作分隔符使用,最常用的分隔符是分号”;”,用来分隔语句。 二、关键字: 关键字是电脑语言里事先定义的,有特别意义的标识符,有时又叫保留字,还有特别意义的变量,关键字不能用作变量名、方法名、类名、包名和参数,Java语言规定关键字不能作为标识符。"cons ...
分类:
其他好文 时间:
2017-09-08 18:15:56
阅读次数:
118
1.线段树 //Twenty #include<cstdio> #include<cstdlib> #include<cstring> #define lc x<<1 #define rc x<<1|1 #define mid ((l+r)>>1) using namespace std; cons ...
分类:
其他好文 时间:
2017-09-04 18:55:31
阅读次数:
182
1、下载地址:https://www.consul.io/downloads.html linux 下载地址: wget https://releases.hashicorp.com/consul/0.7.0/consul_0.7.0_linux_amd64.zip 2、解压: unzip cons ...
分类:
其他好文 时间:
2017-09-01 15:04:17
阅读次数:
184
// // main.c // 指针和字符串 // // Created by xiaomage on 15/6/14. // Copyright (c) 2015年 xiaomage. All rights reserved. // #include int main(int argc, cons... ...
分类:
其他好文 时间:
2017-08-18 16:17:26
阅读次数:
232
代码片段1: var xx = 1 var xx = 2 console.log(xx) output: 2 代码片段2: let xx = 3; let xx = 4; console.log(xx) output:报错,提示重复定义 xx 正确: let xx = 3; xx = 4; cons ...
分类:
其他好文 时间:
2017-08-15 17:17:14
阅读次数:
227
第一部分:基本概念 我们知道根据作用域链的规则,一个函数是不能访问到在与他同一个作用域内的函数内的内部变量的,如下所示: function foo() { var a = 5; console.log(a); } foo(); function bar() { var b = a + 5; cons ...
分类:
编程语言 时间:
2017-08-11 12:20:09
阅读次数:
152
构造函数不是类的成员,它们不是由子类继承的。它们用于初始化实例变量。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 class CSuper { public CSuper() { System.out.println("Inside CSuper() cons ...
分类:
编程语言 时间:
2017-08-10 13:42:05
阅读次数:
179