首页 新闻 会员 周边
2
回答数

回答被采纳 10 c++模板示例 template<class T, T::type n = 0> 第二个参数报语法错误,是示例有问题,还是说有其它方法可以屏蔽报错?

示例来自与cppreference.com,代码如下: template<class T, T::type n = 0> class X; struct S { using type = int; }
2
回答数

回答被采纳 40 c语言结构体出现了问题

include<stdio.h> struct Date { int year; int month; int day; } date; struct Book { char title[128];