C语言代码分析:计算字符串中左括号的数量
int maxsize, i = 0; //BTnode *t; /nchar string[] = "x(a(b(c(z,y),d),d))"; /nwhile (string[i] != '/0') { /n if (string[i] == '(') /n i++; /n maxsize = i; /n i++; /n} /nprintf("%d/n", maxsize); //createbtree(t,string); /nreturn 1;
原文地址: http://www.cveoy.top/t/topic/p3Md 著作权归作者所有。请勿转载和采集!