请问c语言程序运行错误为何报错啊,C++

C++报错尝试引用已删除的函数有图 有代码,为何,求速度,谢谢。。。
来源:csdn
【VS2015双击错误得到的提示位置在这
friend istream operator>>(istream &in, Student &s)
in >> s.m_ID >> s.m_Name >> s.m_Sex >> s.m_Tel >> s.m_E
friend ostream operator<<(ostream &out, const Student &s)
out<< s.m_ID << s.m_Name << s.m_Sex << s.m_Tel << s.m_E
全部代码(还未完成)在此,大神们顺便看看这个入门的单向链表的使用是否正确
#pragma once
static int number = 0;
class Student
protected:
string m_N
string m_S
string m_T
Student(int ID = 0, string Name = "δ?", string Sex = "δ?", string Tel = "δ?", int English = 0)
m_ID = ID;
m_Name = N
m_English = E
Student(const Student &s)
m_ID = s.m_ID;
m_Name = s.m_N
m_Sex = s.m_S
m_Tel = s.m_T
m_English = s.m_E
~Student()
friend istream operator>>(istream &in, Student &s)
in >> s.m_ID >> s.m_Name >> s.m_Sex >> s.m_Tel >> s.m_E
friend ostream operator<<(ostream &out, const Student &s)
out << s.m_ID << s.m_Name << s.m_Sex << s.m_Tel <>(istream &in, Graduate &s)
in >> s.m_ID >> s.m_Name >> s.m_Sex >> s.m_Tel >> s.m_English >> s.m_Majorfield >> s.m_P
friend ostream operator<<(ostream &out, Graduate &s)
out<< s.m_ID <<endl
<<s.m_Name <<endl
<<s.m_Sex <<endl
<<s.m_Tel <<endl
<<s.m_English <<endl
<<s.m_Majorfield <<endl
<<s.m_Papers<>(istream &in, Undergraduate &s)
in>> s.m_ID >> s.m_Name >> s.m_Sex >> s.m_Tel >> s.m_English >> s.m_Math >> s.m_C
friend ostream operator<<(ostream &out, Undergraduate &s)
out<<s.m_ID <<endl
<<s.m_Name <<endl
<<s.m_Sex <<endl
<<s.m_Tel <<endl
<<s.m_English <<endl
<<s.m_Math <<endl
<<s.m_Cpp<<
#pragma once
#include"student.h"
class LinkL
class Node
data = &t;
next = NULL;
next =NULL
next = NULL;
T SetData(T &t)
data = &t;
void ShowData()
cout << data<<
friend LinkL
class LinkList
protected:
LinkList()
this->m_head = NULL;
void InsertAtHead(const Node &t)
p = new Node(t);
p->next = m_
void show()
while (p != NULL)
p->ShowData();
#include"链表.h"
#include"graduate.h"
#include"undergraduate.h"
void main()
LinkList list1;
list1.InsertAtHead(Student(5,"xiaosan","man","",98));
list1.show();
friend istream operator>>(istream &in, Student &s)改成friend istream& operator>>(istream &in, Student &s)返回引用试试
免责声明:本站部分内容、图片、文字、视频等来自于互联网,仅供大家学习与交流。相关内容如涉嫌侵犯您的知识产权或其他合法权益,请向本站发送有效通知,我们会及时处理。反馈邮箱&&&&。
学生服务号
在线咨询,奖学金返现,名师点评,等你来互动

我要回帖

更多关于 vrvrf c.exe程序错误 的文章

 

随机推荐