我正在尝试为我父亲的餐厅制作计费系统,仅供练习.所以,我面临的问题是我无法一次读取完整的字符串.如果在txt文件中有鸡汉堡而不是编译器读取它们但是将它们分成两个单词.我正在使用以下代码,该文件已存在.
std::string item_name;
std::ifstream nameFileout;
nameFileout.open("name2.txt");
while (nameFileout >> item_name)
{
std::cout << item_name;
}
nameFileout.close();
Run Code Online (Sandbox Code Playgroud) 我试图通过css和html制作翻转效果.在Firefox上工作正常但没有使用chrome.I也尝试webkit前缀但不工作可以任何人帮助我.紧急.其中代码
.flip3D{
width: 240px;
height: 200px;
margin: 10 px;
float: left;
}
.flip3D > .front{
position: absolute;
-webkit-transform: perspective( 600px ) rotateY( 0deg);
transform: perspective( 600px ) rotateY( 0deg);
background-color: #D8D2D2;
width: 180px;
height: 200px;
border-radius: 7px;
color: black;
-webkit-backface-visibility:hidden;
backface-visibility:hidden;
transition: -webkit-transform 0.5s ;linear 0s;
transition: transform 0.5s ;linear 0s;
}
.flip3D > .back{
position: absolute;
-webkit-transform: perspective( 600px ) rotateY( 180deg);
transform:perspective( 600px ) rotateY( 180deg);
background-color:#30D2FF;
width: 180px;
height: 200px;
border-radius: 7px;
color: white;
-webkit-backface-visibility:hidden;
backface-visibility:hidden;
transition: …
Run Code Online (Sandbox Code Playgroud)