Literal Values

// Literal Values
// TYPE(S)                 CATEGORY    SUFFIX                            EXAMPLE/ALLOWED VALUES
// bool                    boolean     none                              true or false
// int, uint, long, ulong  integer     none                              100
// uint, ulong             integer     u or U                            100U
// long, ulong             integer     l or L                            100L
// ulong                   integer     ul, uL, Ul, UL, lu, lU, Lu, LU    100UL
// float                   real        f or F                            1.5F
// double                  real        none, d, D                        1.5
// decimal                 real        m or M                            1.5M
// char                    character   none                              ‘a‘, or escape sequence
// string                  string      none                              "a…a", may include escape sequences

Escape Sequences for String Literals

// ESCAPE SEQUENCE CHARACTER PRODUCED      UNICODE VALUE OF CHARACTER
// \‘              Single quotation mark   0x0027
// \"              Double quotation mark   0x0022
// \\              Backslash               0x005C
// \0              Null                    0x0000
// \a              Alert (causes a beep)   0x0007
// \b              Backspace               0x0008
// \f              Form feed               0x000C
// \n              New line                0x000A
// \r              Carriage return         0x000D
// \t              Horizontal tab          0x0009
// \v              Vertical tab            0x000B
//
// -The Unicode Value of Character column of the preceding table shows the hexadecimal values of the
// -characters as they are found in the Unicode character set. As well as the preceding, you can specify any
// -Unicode character using a Unicode escape sequence. These consist of the standard \ character followed by a
// -u and a four-digit hexadecimal value
//
// -the following strings are equivalent:
// "Karli\‘s string."
// "Karli\u0027s string."
//
// -strings are reference types,can be assigned the value null
//
//
// -verbatim string literals
// -the following strings are equivalent:
// "C:\\Temp\\MyDir\\MyFile.doc"
// @"C:\Temp\MyDir\MyFile.doc"

时间: 2024-12-06 08:41:36

Literal Values的相关文章

k8s-configmap

一.目的 把应用的代码和配置分开,通过配置configmap管理pod,一种统一的集群配置管理方案.ConfigMap API资源提供了将配置数据注入容器的方式,同时保持容器是不知道Kubernetes的.ConfigMap可以被用来保存单个属性,也可以用来保存整个配置文件或者JSON二进制等对象. 二.基本原理 ConfigMap是存储通用的配置变量的.ConfigMap有点儿像一个统一的配置文件,使用户可以将分布式系统中用于不同模块的环境变量统一到一个对象中管理:而它与配置文件的区别在于它是

dmalloc 原文 翻译整理

http://blog.csdn.net/cardinal_508/article/details/5553387 L13 从快速入门开始(Quickstart) 这个库是一个文件中所有简化用法中最常见的:FTP下载它,编译它(-03),并连接到其他程序. 全部编译时默认选择合理值在大多数平台. 之后你也可以单步编译多次并动态调整选项. This library is all in one file to simplify the most common usage:  ftp it, comp

C# 2012 step by step 学习笔记8 CHAPTER 9 Creating Value types with enumerations and Structures

C# 2012 step by step 学习笔记8 CHAPTER 9 Creating Value types with enumerations and Structures things about 1. Declare an enumeration type. 2. Create and use an enumeration type. 3. Declare a structure type. 4. Create and use a structure type. 5. Explain

设计模式SOLID - 里氏代换原则

Principles Rule!It's been a while since OOP/Design Pattern principles have been a topic on this blog, and now is as good time as any. The 1987 OOPSLA keynote address by Barbara Liskov contained what has become known as the Liskov Substitution Princip

C++ supports various string and character types,

String and Character Literals (C++) Visual Studio 2015 Other Versions C++ supports various string and character types, and provides ways to express literal values of each of these types. In your source code, you express the content of your character

SQL for SQLite

语法 verb + subject + predicate commannds(命令) SQL由命令组成,以分号为结束.命令有token组成,token由white space分隔,包括空格.tab.换行. literals 有三种 字符串.由单引号'包围.如果字符中要有',用两个连续的'.比如'kenny''s chicken' 数值.整型.小数.科学计数法 二进制.x'0000'.二进制值长度必须是8bit的倍数. 关键字和标识符 于此,SQL是对大小写不敏感的. SELECT * from

21.5.3 Updatable and Insertable Views

http://dev.mysql.com/doc/refman/5.7/en/view-updatability.html Some views are updatable and references to them can be used to      specify tables to be updated in data change statements. That is,      you can use them in statements such as       UPDAT

a byte of python(摘02)

a byte of python 第四章 运算符与表达式 运算符 运算符优先级 (运算符通常由左向右结合,即具有相同优先级的运算符按照从左向右的顺序计算.例如, 2 + 3 + 4 被计算成 (2 + 3) + 4 .一些如赋值运算符那样的运算符是由右向左结合的,即 a = b = c 被处理为 a = (b = c) .) 表达式 第五章 控制流 if语句: if(): ... if(): ... else: ... if(): ... elif(): ... else ... int(raw

Spring实战3:装配bean的进阶知识

主要内容: Environments and profiles Conditional bean declaration 处理自动装配的歧义 bean的作用域 The Spring Expression Language 在装配bean—依赖注入的本质一文中,我们探讨了Spring的三种管理bean的方式:自动装配.基于JavaConfig.基于XML文件.这篇文字将探讨一些Spring中关于bean的管理的高级知识,这些技能你可能不会每天都用,但是非常重要. 3.1 Environments