标签:style blog color io ar for sp div c
#include<stdio.h> char A[10]; void inputElem(char &e){ scanf("%c",&e); } bool endValue(char &e){ if(e!=‘#‘) return false; else return true; } void createBST(){ char e;int i=0; printf("输入关键字值序列\n"); inputElem(e);//inputElem为表中元素输入函数 while(!endValue(e)){//当e不是结束标识值时,endValue为结束标示值得判定函数 A[i++]=e; inputElem(e); } } void main() { createBST(); for(int i=0;i<10;i++) printf("%c ",A[i]); }
标签:style blog color io ar for sp div c
原文地址:http://www.cnblogs.com/leijiangtao/p/3995475.html