上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 24 下一页
摘要: 同C++ 支持if、switch、?: 不同之处 1. switch case支持字符。 参考: http://www.runoob.com/csharp/csharp-switch.html http://www.runoob.com/csharp/csharp-decision.html 阅读全文
posted @ 2018-05-21 15:35 路边的十元钱硬币 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 1. 支持++和-- 含义和C++中相同 2. 条件运算 同C++ 3. 位运算 ^ 异或 ~ 取反 4. 支持?:运算 5. 特殊 参考: http://www.runoob.com/csharp/csharp-operators.html 阅读全文
posted @ 2018-05-21 15:32 路边的十元钱硬币 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1. 进制 前缀:0x 或 0X 表示十六进制,0 表示八进制,没有前缀则表示十进制。 后缀:可以是 U 或 L 的组合,其中,U 和 L 分别表示 unsigned 和 long。后缀可以是大写或者小写。 2. 科学记数法 e 3. 字符串 转义字符同C++ @的用法: 4. const 参考: 阅读全文
posted @ 2018-05-21 15:25 路边的十元钱硬币 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1. 不支持括号初始化; 2. 支持强制类型转化; 3.运算规则同C++ 参考: http://www.runoob.com/csharp/csharp-variables.html 阅读全文
posted @ 2018-05-21 15:12 路边的十元钱硬币 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 支持强制类型转换。 常用的转化函数如下: 示例: 参考: http://www.runoob.com/csharp/csharp-type-conversion.html 阅读全文
posted @ 2018-05-21 14:28 路边的十元钱硬币 阅读(99) 评论(0) 推荐(0) 编辑
摘要: --- # 1 数据类型 --- ## 1 和C++不同的数据类型: byte: 8位,0~255 decimal:范围大于double,128位 sbyte: 8位,-128~127 uint 32 ubyte 8 ushort 16 ulong 64 支持 sizeof() 返回的是字节数,不是比特数(位数) ## 2 字符串中的 @ 用法: ### 2.1 @"C:\Windows... 阅读全文
posted @ 2018-05-21 13:34 路边的十元钱硬币 阅读(90) 评论(0) 推荐(0) 编辑
摘要: /* * Notes: * 1. 标识符必须以字母、下划线或 @ 开头,后面可以跟一系列的字母、数字( 0 - 9 )、下划线( _ )、@ * */ using System; namespace RectangleApplication { class Rectangle { double length; double widt... 阅读全文
posted @ 2018-05-21 13:20 路边的十元钱硬币 阅读(74) 评论(0) 推荐(0) 编辑
摘要: /* * 主文件是 xxx.cs * 基本的 hello world 程序如下: */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _01_hello_world { cl... 阅读全文
posted @ 2018-05-21 12:36 路边的十元钱硬币 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 1. CMakeLists.txt 需要设置为 Debug 模式 示例 2. 在Kdevelop中 Run -> Configure Launches... 设置一下(一般默认就可以,由于我之前配置的是python ,所以新建了一个Configuration) 在代码中建立断点; ctrl + al 阅读全文
posted @ 2018-05-04 10:08 路边的十元钱硬币 阅读(1275) 评论(0) 推荐(0) 编辑
摘要: Ubuntu下: 使用的IDE是Kdevelop。(使用别的也可以) 安装Kdevelop的方法见: http://www.cnblogs.com/alexYuin/p/8989228.html 1.安装 2.免编译,只要包含头文件 新建一个文件夹01-test,所有的测试文件,都放在该目录下。 3 阅读全文
posted @ 2018-05-04 09:56 路边的十元钱硬币 阅读(419) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 24 下一页