Test
Tests for new website features
注释
This is a notation.例题
输入两个整数 ,输出它们的和。()
Code (1)
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<a+b<<'\n';
return 0;
}
按键
Ctrl + C or ⌘ + C
脚注
实时编辑器
Live Editor
function Clock(props) { const [date, setDate] = useState(new Date()); useEffect(() => { const timerID = setInterval(() => tick(), 1000); return function cleanup() { clearInterval(timerID); }; }); function tick() { setDate(new Date()); } return ( <div> <h2>It is {date.toLocaleTimeString()}.</h2> </div> ); }
Result
Loading...
窗口
http://localhost:3000
This is a browser window.