摘要: memcpy原型:extern void *memcpy(void *dest, void *src, unsigned int count);   用法:#include <string.h>   功能:由src所指内存区域复制count个字节到dest所指内存区域。   说明:src和dest所指内存区域不能重叠,函数返回指向dest的指针。   注意:与strcpy相比,memc... 阅读全文
posted @ 2010-11-20 02:32 瓜蛋 阅读(890) 评论(0) 推荐(0) 编辑
摘要: #ifndef IOSTREAM#include <iostream>#endiftemplate<class T>class Stack{public: Stack(int MaxSize=10); ~Stack(); bool IsEmpty()const{return top==0;} bool IsFull()const{return top==MaxTop;} T Top()const; Stack<T>&Add(const T &x); Stack<T>&Delete(T&x); int GetStac 阅读全文
posted @ 2010-11-20 01:48 瓜蛋 阅读(322) 评论(0) 推荐(0) 编辑