需要发送给我可执行的.exe文件还有源代码!!谢谢了!!!boheximi@126.com
输入随机的3个职工记录,按姓名字典序,年龄(由小到大),按小单位名,且姓名字典序,按工资多少 (由大到小)输出报告!!
编写一个订票系统,乘客向收票员提供要求,订票系统处理这个要求,并通知收票员能否满足这个要求。有三种座位可供选择:
经济舱、公务舱、头等舱。公务舱乘客可选靠窗和靠过道的座位。经济舱乘客不提供订餐服务(只配发),其他舱订餐可以选择的食品类型有鱼、鸡、牛肉、猪肉。头等舱乘客可选择地面接送服务。
给出一个实数,将该实数输出为整数。同时使用指针类型,计算0到该实数间的Hash值。
定义一个学生类,其中有3 个数据成员:学号、姓名、年龄,以及若干成员函数。同时编写main 函数使用这个类,实现对学生数据的赋值和输出
最后一题
public class StudentInfo {
String studentName;
int studentNo;
int studentAge;
String studentClass;
String studentAddress;
public String getStudentName() {
return studentName;
}
public void setStudentName(String studentName) {
this.studentName = studentName;
}
public int getStudentNo() {
return studentNo;
}
public void setStudentNo(int studentNo) {
this.studentNo = studentNo;
}
public int getStudentAge() {
return studentAge;
}
public void setStudentAge(int studentAge) {
this.studentAge = studentAge;
}
public String getStudentClass() {
return studentClass;
}
public void setStudentClass(String studentClass) {
this.studentClass = studentClass;
}
public String getStudentAddress() {
return studentAddress;
}
public void setStudentAddress(String studentAddress) {
this.studentAddress = studentAddress;
}
/**
* @param args
*/
public static void main(String[] args) {
StudentInfo studentInfo=new StudentInfo();
studentInfo.setStudentNo(1);
studentInfo.setStudentName("张三");
studentInfo.setStudentAge(18);
studentInfo.setStudentClass("1班轮缓");
studentInfo.setStudentAddress("xxx路xx号");
System.out.println("判改学生学号:"+studentInfo.getStudentNo());
System.out.println("学生姓名:"+studentInfo.getStudentName());
System.out.println("学生年龄:"+studentInfo.getStudentAge());
System.out.println("学生班级:"+studentInfo.getStudentClass());
System.out.println("学生地址腊冲模:"+studentInfo.getStudentAddress());
}
}
#include<iostream.h>
class student
{ public:
long num;
char name[30];
int age;
student(char* str,long num1,int age1)
{ strcpy(name,str);
age=age1;
num=num1;
}
~student();
}
int main()
{ char name1[30];
int age1;
扒燃 long num1;
cout<<"\nInput your name: "; cin>>name1;
cout<<"\nInput your num: "; cin>>num1;
cout<<"\nInput your age: "; cin>>age1;
student one(name1,num1,age1);
cout<<"\nThis is your information: 迅拦\nName: "<<one.name;
cout<<" Age"<<one.age<<" Number: "亩此胡<<one.num;
return 0;
}
第州岩一个:#include <拍迹圆stdio.h>#include <string.h>main(){ void input(int[],char name[][8]);
void sort(int[],char name[][8]);
void search(int,int[],char name[][8]);
int num[N],number,flag=1,c;
char name[N][8];
input(num,name);
sort(num,name);
while(flag==1) char a[3][6],t[6]; int i,j; for(i=0;i<3;i++) { printf("请输入第%d个袭塌同学名字:",i+1); gets(a[i]); } for(i=1;i<3;i++) for(j=0;j<3-i;j++) if(strcmp(a[j],a[j+1])<0) { strcpy(t,a[j]); strcpy(a[j],a[j+1]); strcpy(a[j+1],t); } for(i=0;i<3;i++) puts(a[i]);}运行成功!
亲 华理计算机系的吧(|||¬ω¬)