摘要:
C#:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 结构{ class Program { static void Main(string[] args) { A a; a.age = 111; a.arr = new int[] { 11, 22, 33 }; A a2 = a; a2.age = 99; a2.arr[0] = 66; B b = new B(); b.age = 111; b.arr = new int[] { 11, 22, 33 } 阅读全文
摘要:
public class MyCache{ /// summary /// 插入一个缓存 /// /summary /// param name="name"缓存键/param /// param name="value"缓存值/param /// param name="isAbsoulute"是否使用绝对过期,是则为true否则为false/param /// param name="isOverride"如果缓存存在,是否覆盖缓存值/param /// param name="absoluteDate"绝对过期时间/param /// p 阅读全文
摘要:
C/C++:#include "stdio.h"struct People{ int age; int arr[3];};void main(){ //printf("%d\n",sizeof(People)); struct People m={3,{4,5,6}}; struct People m2=m; m2.arr[2]=99; printf("%d\n",m.arr[2]);}C#:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 结构{ class 阅读全文