2021年6月7日

c++中c_str()的用法详解(转)

摘要: //标准库的string类提供了三个成员函数来从一个string得到c类型的字符数组 //主要介绍c_str //c_str():生成一个const char*指针,指向以空字符终止的数组。 //这个数组应该是string类内部的数组 #include <iostream> //需要包含cstrin 阅读全文

posted @ 2021-06-07 17:11 xihong 阅读(226) 评论(0) 推荐(0)

c# 取当前运行程序目录的方法

摘要: 1、string strPath = AppDomain.CurrentDomain.BaseDirectory; 2、string filePath = Application.StartupPath; 阅读全文

posted @ 2021-06-07 10:05 xihong 阅读(153) 评论(0) 推荐(0)

zedgraph设置线型宽度(转)

摘要: LineItem具有支持设置线宽构造函数,因此你可以首先创建曲线,然后将其添加到您的GraphPane,像这样: LineItem myCurve1 = new LineItem("Sine Wave", spl1, Color.Blue, SymbolType.None, 3.0f); myPan 阅读全文

posted @ 2021-06-07 09:48 xihong 阅读(500) 评论(0) 推荐(0)

导航