我的C++程序在删除的时候出错。。帮我看看//串子结构.cpp:
// 串子结构. : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include using namespace std; #include #define max 80 typedef struct {char ch[max]; int len; }seqstring; seqstring S,T1,T2,T; seqstring inputstr(seqstring T) /*输入字符串*/
delstr 常态下没有返回。最后应加一句 return S; 另外,你的编程思维似乎还是停留在面向过程的编程上面,而没有转向面向对象 -:)