我有这个代码
#mtitle {
display: inline-block;
margin: 0;
background-color: #000000;
z-index: 999;
}
#tsub {
display: inline-block;
margin-left: 0;
left: 0;
position: absolute;
font-size: 85px;
z-index: 0;
}Run Code Online (Sandbox Code Playgroud)
<header>
<h1 id="mtitle">Tepid Beans</h1>
<div id="tsub"><span>- Games</span>
</div>
</header>Run Code Online (Sandbox Code Playgroud)
#tsub出现在的顶部#mtitle,但我不知道为什么。
我用这段代码得到了这个错误:
string folder;
getline(cin, folder);
string folder2 = folder + "/index.txt";
const char* oldhtml[] = { folder2.c_str() };
folder2 = folder + "/index.html";
const char* newhtml[] = { folder2.c_str()};
rename(oldhtml, newhtml);
Run Code Online (Sandbox Code Playgroud)
发生错误: rename(oldhtml, newhtml);
我是C++的新手.所以,如果这是一个简单的修复我道歉