I'm trying to turn a string input into a linked list as per a programming assignment, and it's spitting out a few errors, all of which seem to be string-related. To test a hunch, I wrote a stupidly simple test program:
According to this site, I have all of the right Include files, and my syntax seems fine.
Compile turns up four errors, which are all caused by the initial String failure:
1) My VS98 install is borked
2) This is something that changed after MS Visual Studio/C++ 6.0
Can anyone help?
Code:
#include<iostream.h>
#include<conio.h>
#include<string.h>
void main()
{
string a="Hello world.";
cout<<a;
getch();
}
Compile turns up four errors, which are all caused by the initial String failure:
I'm beginning to think one of two things happened:'string' : undeclared identifier
syntax error : missing ';' before identifier 'a'
'a' : undeclared identifier
'=' : cannot convert from 'char [14]' to 'int'
1) My VS98 install is borked
2) This is something that changed after MS Visual Studio/C++ 6.0
Can anyone help?