摘要:
/*--------------------------------------------------------- Title: Sequence Stack(顺序栈) 顺序栈-顺序存储结构的栈 请先阅读教材67页, 2.3.2,2.3.3节, 栈的定义及基本运算 (注意以下程序为简化后的,仅供入门学习之用) --------------------------------------... 阅读全文
摘要:
//结构体与指针 #include #include struct student { int number; char name[10]; }; void main() { struct student a; struct student *ptr=&a; a.number=10;//ptr->number=10; strcpy(a.name,"li");//strcpy(ptr->na... 阅读全文