摘要: windows相对路径和绝对路径举例: 绝对路径:是从盘符开始的路径,形如C:\windows\system32\cmd.exe 相对路径:是从当前路径开始的路径,如当前路径为C:\windows,要描述上述路径,只需输入入system32\cmd.exe 。 LINUX系统中 的相对路径和绝对路径 阅读全文
posted @ 2022-06-28 14:36 雾枫 阅读(118) 评论(0) 推荐(0) 编辑
摘要: //选择文件(工程文件) QString _projectFileName = QFileDialog::getOpenFileName(this, QString::fromLocal8Bit(" 选择工程"),"*.ac"); //判断选择的工程文件是否是空 if (!_projectFileN 阅读全文
posted @ 2022-06-28 14:13 雾枫 阅读(97) 评论(0) 推荐(0) 编辑
摘要: #include <QFile> #include <QByteArray> int main() { QFile file("test1.txt"); if(!file.open(QIODevice::ReadOnly)){ return; } QByteArray array = file.Re 阅读全文
posted @ 2022-06-28 10:01 雾枫 阅读(1066) 评论(0) 推荐(0) 编辑