i have converted my project from vc++ 6.0 to visual studio 2005, then the following code is giving me a problem
sample()
{
//int i; -------------(1)
for(int i=0; i<5;i++)-------------(2)
{
......
.....
}
i=20;----------(3)
}
The error i got at (3) is Error C2065: 'i' : undeclared identifier. If i remove the declaration of i at (2) and declared at (1), iam getting lot of warnings like warning C4996: 'fopen' was declared deprecated... how can i declare
sample()
{
//int i; -------------(1)
for(int i=0; i<5;i++)-------------(2)
{
......
.....
}
i=20;----------(3)
}
The error i got at (3) is Error C2065: 'i' : undeclared identifier. If i remove the declaration of i at (2) and declared at (1), iam getting lot of warnings like warning C4996: 'fopen' was declared deprecated... how can i declare
Comment