Monday, May 24, 2010

I have a c++ program in a word file - how do i compile it using visual c++ 2005 express edition?

I dont know c++ that well. Someone wrote a program for me in put in a word file - How do I get it to work?

I have a c++ program in a word file - how do i compile it using visual c++ 2005 express edition?
You probably have to save it as a source file with the proper c++ extension for ms and then compile that file from the command line.
Reply:Beside it's content that you can see, a word document has a lot of metadata that is invisible to you but live there to make a document a word document. A C++ compiler won't understand those metadata and hence your pragram won't be compiled successfully at all. So all you have to do is to save the program in to a file with the extension of .cpp/.c and compile it afterwards.
Reply:just copy it from the file and paste it to VC++

wallflower

No comments:

Post a Comment