摘要:
#include #include int main(){ int count = 1; char str[1024]; int i=0; int j =0; char ch='0'; while(ch != '\n') //输入一串英文 { ... 阅读全文
摘要:
如程序:#include #include using namespace std;int main(){ int a[]={15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0}; int i,j; int len = sizeof(a)/sizeof(in... 阅读全文
摘要:
#include #include using namespace std;int main(){ char str[1024]; cin>>str; int i = 0; while(str[i]!='\0') { ... 阅读全文
摘要:
#include #include using namespace std;int mystrcmp(const char * str1,const char * str2){ int i=0; while(1) { if(str1[i]=='\0' &&str2[i]!='\0') ... 阅读全文