#include <iostream> using namespace std; struct struct1{ /* struct1(){ cout<<"this is output by struct1 !"; } if add this code block , such errors like 'you must initlizer data number of struct1 by constructor in g++98' will occor in…
假设有这样一个值类型struct. public struct Size { public int Length; public int Width; public int Area() { return Length*Width; } } □ 客户端,给所有struct字段初始化后调用方法 class Program { static void Main(string[] args) { Size size; size.Length = 10; size.Width = 5; Console.…