Hello,
I am using visual c++ 6 and i am having problems with string to work.
******** Here is the program project.cpp**** *****
#include <iostream.h>
#include <string>
#include "stdafx.h"
// This program just inverts the tickers.csv files execpt first line
int main(){
string ticker ;
return 0;
}
*************** ************
on compiling i get this error message
*************** ***********
Compiling...
StdAfx.cpp
Compiling...
Project.cpp
C:\Windows\Desk top\Project\Pro ject.cpp(17) : error C2065: 'string' :
undeclared identifier
C:\Windows\Desk top\Project\Pro ject.cpp(17) : error C2146: syntax error
: missing ';' before identifier 'ticker'
C:\Windows\Desk top\Project\Pro ject.cpp(17) : error C2065: 'ticker' :
undeclared identifier
Error executing cl.exe.
Project.exe - 3 error(s), 0 warning(s)
*************** *************
can someone tell me whats wrong here ?
thank you in advance.
Gaurav
I am using visual c++ 6 and i am having problems with string to work.
******** Here is the program project.cpp**** *****
#include <iostream.h>
#include <string>
#include "stdafx.h"
// This program just inverts the tickers.csv files execpt first line
int main(){
string ticker ;
return 0;
}
*************** ************
on compiling i get this error message
*************** ***********
Compiling...
StdAfx.cpp
Compiling...
Project.cpp
C:\Windows\Desk top\Project\Pro ject.cpp(17) : error C2065: 'string' :
undeclared identifier
C:\Windows\Desk top\Project\Pro ject.cpp(17) : error C2146: syntax error
: missing ';' before identifier 'ticker'
C:\Windows\Desk top\Project\Pro ject.cpp(17) : error C2065: 'ticker' :
undeclared identifier
Error executing cl.exe.
Project.exe - 3 error(s), 0 warning(s)
*************** *************
can someone tell me whats wrong here ?
thank you in advance.
Gaurav
Comment