摘要: #include<iostream>using namespace std; int main(){ unsigned int x; cin>>x; int a,i=0,j=0,max=0; while(x>0) { a=x%10; if(a==0) j++; if(a>max) max=a; x= 阅读全文
posted @ 2017-04-23 22:08 可馨517 阅读(501) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;typedef struct student { char name[10]; int ID; int age; float score[3]; float sum;}student;int main(){ int i, j 阅读全文
posted @ 2017-04-23 22:02 可馨517 阅读(4692) 评论(0) 推荐(0)
摘要: #include<iostream>#include<iomanip>using namespace std;void invert2(int x){ int num,flag; flag=x%2; num=x/2; if(num>0) { invert2(num); } cout<<flag;}v 阅读全文
posted @ 2017-04-23 21:23 可馨517 阅读(444) 评论(0) 推荐(0)
摘要: #include<stdio.h>void convert2(int n){ int flag,num; flag=n/2; num=n%2; if(flag==0) printf("%d",num); else { n=flag; convert2(n); printf("%d",num); }} 阅读全文
posted @ 2017-04-23 10:37 可馨517 阅读(559) 评论(0) 推荐(0)