#include <iostream>
#include<string>
using namespace std;


template<int N>
class Pow3{
public:
    static const int result = 3 * Pow3<N-1>::result;
};

template < >
class Pow3<0>{
public:
    static const int result =1;
};

int main(int argc, char *argv[]){
    cout << "Pow3<2>::result= "<< Pow3<2>::result << endl;
    return 0;
}

  

简直就是SQL中的语法分析

相关文章:

  • 2021-10-09
  • 2021-12-19
  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
  • 2022-01-25
  • 2021-10-22
  • 2021-11-25
猜你喜欢
  • 2021-10-31
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
相关资源
相似解决方案