[C/C++]没有名字的参数也可以用(英文)Functions with parameters holding no names

   #include <bits/stdc++.h>
   using namespace std;
   int print_zero(size_t,int);
   int main(){
    
    	
   		print_zero(1,1);	
   		return 0;
   }
   int print_zero(size_t,int){
    
    	cout << "zero" << endl;}

It works,it’s amazing!

We also know that size_t means the result of sizeof() or the index of a sequence

猜你喜欢

转载自blog.csdn.net/qq_51899357/article/details/121868512