This commit is contained in:
Zengtudor 2024-09-07 15:53:11 +08:00
parent 0a097a142e
commit 3ee6d3ba3d
2 changed files with 18 additions and 6 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
/build /build
/.vscode /.vscode
/.xmake /.xmake
/test.asm
# ---> C++ # ---> C++
# Prerequisites # Prerequisites
*.d *.d

View File

@ -1,10 +1,21 @@
#include <iostream> //using C++17
using namespace std;
#include <cmath>
#include<iostream>
template<typename ...Args>
void println(const Args& ...args){
((std::cout<<args<<" "),...);
std::cout<<"\n";
}
int main(){ int main(){
unsigned int a{}; println("Hello,World!","-by","Zengtudor");
for(;;){a++;} println("End");
cout<<a<<endl; println(std::pow(2,10));
} }
/*
Hello,World! -by Zengtudor
End
*/