Wednesday, 27 September 2017

visual c++ - error related to c++ compile file

when i am trying to run following code




#include
using namespace std;
class Rectangle
{
public:
int x,y;
Rectangle(int a,int b)
{
x=a;

y=b;
}

int area()
{
return x*y;

}



};


int main()
{

Rectangle a(3,4);
cout<


return 0;
}


i am getting this error



1>------ Build started: Project: project_class, Configuration: Debug Win32 ------
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



please helped me to clarify reason of this error

No comments:

Post a Comment

casting - Why wasn&#39;t Tobey Maguire in The Amazing Spider-Man? - Movies &amp; TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...