c++ - 如何将引号(“”)放入引号中?
问题描述
我在创建 .vbs 文件时遇到问题,因为此“”无法将其放入“”。有例子:在哪里 batch<<"echo x=msgbox(" <-- 这个引号挡住了最后一个。我怎样才能让它工作?
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ofstream batch;
batch.open("name.bat");
batch<<"@echo off";
batch<<"echo x=msgbox("Your Text Here" ,0, "Your Title Here") >> msgbox.vbs";
batch<<
batch.close();
std::cin.get();
return 0;
}
解决方案
推荐阅读
- python - 如何在 tkinter 的 while 循环中制作 matplotlib 动画
- angular - 无法在 Object.eval 角度读取未定义的属性
- python - 无法解决总和为 k 的连续子数组数量中的边缘情况
- android - 缩放时暗模式下的android Googlemap错误
- azure-cosmosdb - Azure 搜索索引 Cosmos DB 所需的 IP 地址/范围
- python - 如何使用注册或登录表单更改条带结帐表单
- c - 分段错误 - 无法将一个文件的内容写入另一个文件
- json - Why does jq expression loop through array separately from another similar expression at the same level?
- html - 如何让背景图片覆盖整个页面
- javascript - document.getElementsByClassName 添加第二种方法时出错