上一页 1 ··· 96 97 98 99 100 101 102 103 104 ··· 133 下一页
摘要: enum orientation:byte { north =1, south =2, east =3, west=4 } 注意:声明在代码的主体之外 阅读全文
posted @ 2018-05-15 18:28 朱小勇 阅读(386) 评论(0) 推荐(0)
摘要: 参数可以是 switch 语句中的 参数必须是一个整型或枚举类型,或者是一个 class 类型,其中 class 有一个单一的转换函数将其转换为整型或枚举类型。 所以用string也可以,6666 阅读全文
posted @ 2018-05-15 18:14 朱小勇 阅读(191) 评论(0) 推荐(0)
摘要: 1、字符串转double int number; string str="123"; number= Convert.ToDouble(str); 2、大写转小写 string.ToLower 3、使用System命名空间的Convert 阅读全文
posted @ 2018-05-15 17:49 朱小勇 阅读(275) 评论(0) 推荐(0)
摘要: #region Using directives //my code #endregion 阅读全文
posted @ 2018-05-15 17:35 朱小勇 阅读(237) 评论(0) 推荐(0)
摘要: 1、 Console.WriteLine("hello world ");//自动换行 2、 Console.Write("hello world ");//不换行 3、 Console.ReadKey(); //等待键入 4、格式输出 int myInteger; string myString; 阅读全文
posted @ 2018-05-15 17:31 朱小勇 阅读(277) 评论(0) 推荐(0)
摘要: warning MSB8027: Two or more files with the name of moc_Geometry.cpp will produce outputs to the same location. This can lead to an incorrect build re 阅读全文
posted @ 2018-05-14 09:57 朱小勇 阅读(1497) 评论(0) 推荐(1)
摘要: 1、安装vs 2、安装qt【带msvc编译器的】 3、安装addin插件 4、新建qt app项目 5、在qt options里添加qt版本 路径添加到msvc那一层,如:E:\Qt5.9\5.9\msvc2013_64 现在当前的vs的qt插件已经绑定了msvc2013_64这个版本 6、为当前项 阅读全文
posted @ 2018-05-04 19:28 朱小勇 阅读(1030) 评论(0) 推荐(0)
摘要: 用于避免重复包含头文件#ifndef _STDIO_H_ #define _STDIO_H_ ...... #endif 阅读全文
posted @ 2018-05-04 16:54 朱小勇 阅读(232) 评论(0) 推荐(0)
摘要: 注释: CTRL+K,C 取消注释:CTRL+K,U 代码格式化:CTRL+K,K 小番茄提示:CTRL+J 阅读全文
posted @ 2018-05-03 11:34 朱小勇 阅读(133) 评论(0) 推荐(0)
摘要: #include<iostream.h> 不用using namespace std; #include<iostream>要用using namespace std; 阅读全文
posted @ 2018-05-03 11:30 朱小勇 阅读(443) 评论(0) 推荐(0)
上一页 1 ··· 96 97 98 99 100 101 102 103 104 ··· 133 下一页