c语言文件读写代码
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
typedef struct{
char name[20];
}id;
/*class exchange {
public:
int exchangeoddeven(int x) {
int res=0;
int t;
stack stk;
while(x)
{
t=x%2;
x/=2;
stk.push(t);
}
int n=stk.size();
if(n%2==1){
stk.push(0);
n++;
}
t=n;
int x1;
int y;
//cout< res;
for(int i=0;i<6;i++)
res.push_back(i);
for(int i=0;i<6;i++)
{
cout<
段友7542324