我已经制作了一个关于此的{
"address":[
"subsystem",
"datagrid-infinispan",
"cache-container",
"clustered",
"configurations",
"CONFIGURATIONS",
"distributed-cache-configuration",
"cart"
],
"operation":"add",
"mode":"SYNC",
"store-type":"None",
"store-original-type":"None",
"template":false
}
程序,它使用 Dev C ++ 创建了大量文件,这也是Dev C ++的一部分,但现在它显示错误。我的 var gett = function() {
return driver
.executeScript(
"return document.querySelectorAll('#gbw > div > div > div.gb_7d.gb_R.gb_hg.gb_9f > div:nth-child(1) > a')"
)
.then(function(results) {
results.forEach(function(result) {
result.getText().then(function(txt) {
console.log(txt);
});
});
});
};
专门用于创建CPP
模板,但它显示code
。
这是我的一些HTML
:
error
答案 0 :(得分:0)
只需将#include <fstream>
添加到您的包含:
#include <iostream>
#include <fstream>
using std::cout;
using std::cin;
using std::ofstream;
using std::endl;
void HelloWorld() {
ofstream outfile ("html1.html");
outfile << "<html> " << endl;
outfile << " <head> <title> Template Hello World </title> </head>" << endl;
outfile << " <body> <h1> Hello World! </h1> </body> " << endl;
outfile << "</html> " << endl;
outfile << "// Template HTML 2018 " << endl;
cout << "Created Succesfuly! Directory: Program's folder " << endl;
outfile.close();
}
int main()
{
HelloWorld();
return 0;
}
输出:
Created Successfully! Directory: Program's folder