摘要: #include<iostream>#include<fstream>using namespace std;int main(){ ifstream ifle; char fn[20],ch; cout<<"输入文件名:"; cin>>fn; ifle.open(fn); if(!ifle) { 阅读全文
posted @ 2020-04-23 00:02 zhongxiaozheng 阅读(1287) 评论(0) 推荐(0)
摘要: #include<iostream.h>#include<fstream.h>#include<stdlib.h>void main(){ ofstream fout("xxxk1.txt"); if(!fout) { cout<<"文件没有打开!"<<endl; exit(1); } int x; 阅读全文
posted @ 2020-04-22 23:48 zhongxiaozheng 阅读(1059) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;int main(){ int max(int a,int b,int c=0); int a,b,c,m1,m2; cout<<"请输入两到三个正整数字"<<endl; cin>>a>>b>>c; m1=max(a,b,c 阅读全文
posted @ 2020-04-21 15:16 zhongxiaozheng 阅读(1507) 评论(0) 推荐(0)
摘要: #include<iostream.h>void main(){ char a; int i=32; cout<<"输入一个大写字母:"<<endl; cin>>a; if(a>='A'&&a<='Z') a=a+i; cout<<"转换成小写字母是:"<<a<<endl;} 阅读全文
posted @ 2020-04-21 14:51 zhongxiaozheng 阅读(8571) 评论(0) 推荐(0)
摘要: ''' 学生成绩系统 ''' class Student: def __init__(self,No,Name,Gender,Age): self.No=No self.Name=Name self.Gender=Gender self.Age=Age def show(self): print(" 阅读全文
posted @ 2020-04-21 09:56 zhongxiaozheng 阅读(2813) 评论(0) 推荐(0)