1、学生信息管理
问题描述:
已知程序要求管理的学生信息包括:学号(不重复),班级,姓名,年龄,性别,出生日期,地址,电话,E-mail等。设计一程序,完成以下功能:
1) 能从键盘输入学生的信息(增加,输入时需要能检查该学号的学生的记录是否已经存在,出生日期格式是否合法(格式为:YYYY-MM-DD,如2009-01-02))
2) 能从指定的文件中读入学生的信息
3) 能按学号查询学生的信息
4) 能按班级查询学生信息
5) 能删除指定学号的学生信息
6) 能将学生信息保存在指定的文件中
提示:
从文件读入学生信息时,需要先设计好文件的格式,从文件中读取数据后,按照预先设计的格式分析数据,提取学生的信息,读入程序
定义一个日期结构体保存日期,具体信息为:年、月、日
......................
阅读全部
|
唐朝的宇宙
贴于 2013年3月26日 16:39
hide
bbsi
#include<windows.h>
#include<iostream.h>
DWORD WINAPI Fun1Proc(LPVOID lpParameeter);
DWORD WINAPI Fun2Proc(LPVOID lpParameeter);
int tickets=100;
HANDLE g_hEvent;
......................
阅读全部
|
renhongjin
贴于 2013年3月25日 22:14
hide
bbsi
#include <stdio.h>
#include <stdlib.h>
#include <wtypes.h>
#include <winbase.h>
#include <time.h>
#include <conio.h>
struct
{
int choice;
char name[50];
char num[50];
char position[50];
......................
阅读全部
|
面朝大海1994
贴于 2013年3月25日 21:48
hide
bbsi
#include <stdio.h>
//指数运算
_int64 _pow(int base,int p)
{
int i=0;
_int64 ret=1;
if (p==0) return 1;
for(i=1;i<=p;i++)
{
ret=ret*base;
}
......................
阅读全部
|
wp231957
贴于 2013年3月24日 21:11
hide
bbsi
#include<iostream>
#define N 20;
using namespace std;
typedef struct ANode {
int AdjV; //邻接点在顺序表中的位置
int Wn; //权值(用于网,图可省略)
struct ANode *next; //指向下1个邻接点
} *AdjLink; //邻接点存储结构
typedef struct {
int data;//顶点数据元素
......................
阅读全部
|
我是打酱油的
贴于 2013年3月24日 20:33
hide
bbsi
#include <stdio.h>
#include <math.h>
void main()
{
int a,b,sum;
sum=a+b;
scanf("请输入两个整数a和b,%d,%d\n",a,b);
printf("sum is %d",sum);
}
为什么运行通过结果却是错误的??、
阅读全部
|
xuexue1280
贴于 2013年3月24日 20:00
hide
bbsi
#include<stdio.h>
void main()
{
printf("hello world");
}
阅读全部
|
guoq416
贴于 2013年3月24日 00:32
hide
bbsi
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
......................
阅读全部
|
gbeixin
贴于 2013年3月22日 20:15
hide
bbsi
#include<stdio.h>
#define LEN 100
int main()
{
char str[LEN];
fgets(stdin, LEN, stdin);
puts(str);
}
阅读全部
|
北辰风
贴于 2013年3月21日 17:49
hide
bbsi
#include <stdio.h>
//获取公历年初至某整月的天数
int year_sumday(int year,int month)
{
int sum=0;
int rui[12]={31,29,31,30,31,30,31,31,30,31,30,31};
int ping[12]={31,28,31,30,31,30,31,31,30,31,30,31};
int ruiflag=0;
if((year%4==0 &&year%100!=0) || year%400==0) ruiflag=1;
for(int index=0;index<month-1;index++)
{
......................
阅读全部
|
wp231957
贴于 2013年3月21日 11:01
hide
bbsi