上一页 1 ··· 96 97 98 99 100 101 102 103 104 ··· 133 下一页
摘要: 参数可以是 switch 语句中的 参数必须是一个整型或枚举类型,或者是一个 class 类型,其中 class 有一个单一的转换函数将其转换为整型或枚举类型。 所以用string也可以,6666 阅读全文
posted @ 2018-05-15 18:14 朱小勇 阅读(195) 评论(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 朱小勇 阅读(277) 评论(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 朱小勇 阅读(281) 评论(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 朱小勇 阅读(1500) 评论(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 朱小勇 阅读(1036) 评论(0) 推荐(0)
摘要: 用于避免重复包含头文件#ifndef _STDIO_H_ #define _STDIO_H_ ...... #endif 阅读全文
posted @ 2018-05-04 16:54 朱小勇 阅读(234) 评论(0) 推荐(0)
摘要: 注释: CTRL+K,C 取消注释:CTRL+K,U 代码格式化:CTRL+K,K 小番茄提示:CTRL+J 阅读全文
posted @ 2018-05-03 11:34 朱小勇 阅读(134) 评论(0) 推荐(0)
摘要: #include<iostream.h> 不用using namespace std; #include<iostream>要用using namespace std; 阅读全文
posted @ 2018-05-03 11:30 朱小勇 阅读(445) 评论(0) 推荐(0)
摘要: 使用dumpcpp.exe,这个文件在Qt的bin里,把路径加入环境变量。 之后使用cmd进入动态库【.dll、.ocx、cpl、.drv 】的路径,dumpcpp.exe xxx.dll,即可在动态库文件夹里生成.h和.cpp 阅读全文
posted @ 2018-05-02 17:12 朱小勇 阅读(527) 评论(0) 推荐(0)
上一页 1 ··· 96 97 98 99 100 101 102 103 104 ··· 133 下一页