ProgramAlgTrain/test.cpp

21 lines
320 B
C++
Raw Normal View History

2024-09-07 07:53:11 +00:00
//using C++17
2024-09-06 16:06:31 +00:00
2024-09-07 07:53:11 +00:00
#include <cmath>
#include<iostream>
2024-09-06 16:06:31 +00:00
2024-09-07 07:53:11 +00:00
template<typename ...Args>
void println(const Args& ...args){
((std::cout<<args<<" "),...);
std::cout<<"\n";
}
2024-09-06 16:06:31 +00:00
int main(){
2024-09-07 07:53:11 +00:00
println("Hello,World!","-by","Zengtudor");
println("End");
println(std::pow(2,10));
}
/*
Hello,World! -by Zengtudor
End
*/