13 Star 69 Fork 22

johnsonyl/cpps

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
iostream.cpp 457 Bytes
一键复制 编辑 原始数据 按行查看 历史
//simple like iostream..
class EndLineStream{
}
class COutStream
{
var operator << (var v){
if(iskindof(EndLineStream,v)){
print("\r\n");
}else{
print(v);
}
return this;
}
}
class CInStream{
var operator >> (var &v){
v = io.getc();
}
}
var endl = new EndLineStream();
var cout = new COutStream();
var cin = new CInStream();
cout << "test" << endl;
cout << "test2" << endl;
var s = "";
cin >> s;
cout << "s = " << s << endl;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/cppscript/cpps.git
git@gitee.com:cppscript/cpps.git
cppscript
cpps
cpps
master

搜索帮助