离散数学92133.docVIP

  • 0
  • 0
  • 约7.6千字
  • 约 13页
  • 2016-12-09 发布于江西
  • 举报
离散数学92133

#includeiostream using namespace std; void main() { int p,q; cout请输入p和q的值:endl; cinpq; cout输出p的否定是:!pendl; cout输出p的否定是:!qendl; cout输出p与q的合取是:(pq)endl; cout输出p与的析取是:(p||q)endl; cout输出p与q的条件式是:((!p)||q)endl; if((p==0q==0)||(p!=0q!=0)) cout输出p与q的双条件是:1endl; else cout输出p与q的双条件是:0endl; 11级计算机科学与技术特色班 李徐红 #define MAX_SIZE 100 #includeiostream const int SIZE=6; using namespace std; template class ElemType class DataList { private: ElemType data[MAX_SIZE]; int size; void Swap(const int mark1, const int mark2); public: DataList(int sz=6):size(sz) {}; ~DataList(void) {};

文档评论(0)

1亿VIP精品文档

相关文档