作业
weixin_45527685
这个作者很懒,什么都没留下…
展开
-
C#字符串生成二维码方式
//需要引用ThoughtWorks.QRCode.CodecQRCodeEncoder qrCodeEncoder = new QRCodeEncoder();qrCodeEncoder.QRCodeScale = 2;qrCodeEncoder.QRCodeVersion = 10;Image image = qrCodeEncoder.Encode(strData, System.Text.Encoding.UTF8);原创 2022-02-17 12:00:30 · 496 阅读 · 0 评论 -
C#通过文件路径获取文件名
string fullPath = @"\WebSite1\Default.aspx";string filename = System.IO.Path.GetFileName(fullPath);//文件名 “Default.aspx”string extension = System.IO.Path.GetExtension(fullPath);//扩展名 “.aspx”string fileNameWithoutExtension = System.IO.Path.GetFileNameWit转载 2022-02-17 11:46:51 · 3613 阅读 · 0 评论 -
c++中指定插入字符串和插入位置的操作
#include<stdio.h>#include#includeusing namespace std;void fun(){string a,b;cout <<“请输入你要被插入的字符串” <<endl;cin >> a;cout <<“请输入你要插入的字符串” <<endl;cin >>b...原创 2019-08-22 16:40:46 · 3159 阅读 · 0 评论