主题:字符串定义问题include没包进去????
#include<fstream.h>
#include<iostream.h>
#include<string.h>
#include<stdio.h>
//using namespace std;
int main()
{
ifstream infile("input.txt");
ofstream outfile("output.txe");
string word;\\这里老说Undefined symbol 'string' Statement missing Undefined symbol 'word'
char c;
while(infile>>word)
{
if(word[0]>='a'&&word[0]<='z')word[0]+='A'-'a';
outfile<<word;
infile.get(c);
outfile.put(c);
}
return 0;
}
在论坛下载的tcpp3full.zip要怎么改啊?
#include<iostream.h>
#include<string.h>
#include<stdio.h>
//using namespace std;
int main()
{
ifstream infile("input.txt");
ofstream outfile("output.txe");
string word;\\这里老说Undefined symbol 'string' Statement missing Undefined symbol 'word'
char c;
while(infile>>word)
{
if(word[0]>='a'&&word[0]<='z')word[0]+='A'-'a';
outfile<<word;
infile.get(c);
outfile.put(c);
}
return 0;
}
在论坛下载的tcpp3full.zip要怎么改啊?