Hi all I am new to Visual c++2008 sp1 as well as to this forum.I just downloaded it yesterday and tried to give it a shot.So I ran a program but the output it shows is in nor relation with the program.The file is:
Code:
#include<iostream>
#include "stdafx.h"
using namespace std;
int main()
{ int i;
system("cls");
cout<<"\n Enter the value of i=";
cin>>i;
cout<<"\n Result="<<i;
system("pause");
return 0;
}
and the output is like:
Enter the value of i4
i=4Press any key to continue..........
As you can see this is not the correct output of the program.Please help!!!