Sign-up....

请各位大虾帮个忙看一下这个,怎么调试时内存出错啊,不理解啊!!!

#include <iostream.h>

#include <math.h>

#include <string.h>

#include <stdio.h>

class cj;

class student

{private:

char *name,*sex;

int age;

public:

student(char *n,char *s,int a)

{name=new char(strlen(n)+1);

strcpy(name,n);

[295 byte] By [lw] at [2007-8-15 11:20:58]

C/C++

All Classified