本人写了一个DLL实现了字符串的一个操作,输入的参数是两个string类,输出也是string类。
但是问题出现了,为了使用string,我必须在.h文件里面使用
#include<string>
using namespace std;但是,我在.cpp里面还用到了
#include<iostream.h>
#include <stdio.h>
#include <stdlib.h>
#include <cstdlib>
#include <iostream.h>
#include <fstream.h>
#include <iomanip.h>
#include <math.h>
错误出现了,并且是102个,好像都是关于string类的问题,请问这种问题我该怎么解决?
谢谢!!!
但是问题出现了,为了使用string,我必须在.h文件里面使用
#include<string>
using namespace std;但是,我在.cpp里面还用到了
#include<iostream.h>
#include <stdio.h>
#include <stdlib.h>
#include <cstdlib>
#include <iostream.h>
#include <fstream.h>
#include <iomanip.h>
#include <math.h>
错误出现了,并且是102个,好像都是关于string类的问题,请问这种问题我该怎么解决?
谢谢!!!
解决方案 »
- socket编程声明就出错,有劳定位下,辛苦了
- 问按一按钮弹出一个窗口,窗口类似于千千静听歌曲列表的窗口能跟着主窗口移动
- CreateProcess与WinExec的区别是什么啊?在线等~,解决就给分
- 如何得到本程序所在的目录及文件名?
- 我做了一个Client-Server的通信,是用对话框做的.用FormView怎么通信啊?(急!!!送分100)
- winsock的具体作用是什么(这个问题并不简单),有人能回答一下吗
- 如何最简单的连入一个数据库并且执行一个存储过程啊?
- 对话框内含有很多控件,如何做到在双击某一个控件时让其最大化(对话框已经最大化了)
- 关于树控件、列表控件等等的打印问题
- 请问在状态条中如何创建一个小的子窗口?
- 最优网络线路选择,给点思路?
- 请教文件操作很普遍的问题, 对高手应该不难 100分在线等!
#include <iostream.h>
#include <fstream.h>
#include <iomanip.h>
把CPP里面的这几个头文件去掉,去不掉的就把“.h”删去