z++
Jump to navigation
Jump to search
Z++ is the language that from C++.
| Designed by | User:PrySigneToFry |
|---|---|
| Appeared in | 2024 |
| Computational class | Unknown |
| Reference implementation | Unimplemented |
| File extension(s) | .zpp |
Syntax
See also C++.
Programs
I/O
Hello, world
#引入头文件<iostream>
使用 命名空间 标准库;
整型 主函数()
{
输出流<<"Hello, world!"<<换行符;
返回 0;
}
Variables
A+B Problem
#引入头文件<bits下的stdc++.h>
使用 命名空间 标准库;
整型 a, b, c;
整型 主函数()
{
输入流>>a>>b;
c=a+b;
输出流<<c;
返回 0;
}
99 Bottles of BEERS
#引入头文件<bits下的stdc++.h>
#引入头文件<windows.h>
使用 命名空间 标准库;
字符串 unit="bottles";
整型 主函数()
{
重复执行(整型 i=99; i>0; i--)
{
输出流<<i<<" "<<unit<<" of the beers on the wall, "<<换行符
输出流<<i<<" "<<unit<<" of the beers."<<换行符;
输出流<<"Take one down, pass it around, \n"<<i-1<<" "<<unit<<" of the beers on the wall."<<"\n\n";
等待(1000);
}
输出流<<"No more bottles of beer on the wall, \nno more bottles of beer.";
输出流<<"Go to the store and buy some more, \n99 bottles of beer on the wall.";
返回 0;
}