student.cpp
来自「STRUCTURI DE DATE SI ALGORITMI」· C++ 代码 · 共 33 行
CPP
33 行
#include<stdio.h>
#include<conio.h>
#include"student.h"
#include<alloc.h>
#include<string.h>
void InitStudent(Student &a){
printf("\nIntroduceti numele:");
a.nume=new char;
scanf("%s",a.nume);
printf("\n Si nota:");
scanf(" %d",&a.nota);
}
void AfisStudent(Student a){
printf("\nNUME :%s NOTA :%d",a.nume,a.nota);
}
void StergeStudent(Student *a){
delete(a);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?