Thursday, July 30, 2009

I have Microsoft Visual studio, the complete edition! Anyone knows how can I make and compile a C project?

I installed all of it! C++, J#, C#, web development, etc, all of them, but How do I make a C project???

I have Microsoft Visual studio, the complete edition! Anyone knows how can I make and compile a C project?
To compile C with Visual Studio:





On Project menu, click the xxxProperties... item. Somewhere among the many Property Pages options you'll see an item labeled "Compile as C++." You can change it to "Compile as C." Make sure that the extension of your source file has the ".c" extension, instead of the ".cpp" extension.





----------------------





Remember, starting with Visual Studio .NET 2003, Visual C++ will no longer ship the old iostream libraries. For details, see the Help documention: Upgrade to the Standard C++ Library and the Standard C++ Library Overview.





The new iostream functions, as well as many other new functions, exist in the Standard C++ Library:





----------------------





These following #include statements are ideal for C programs:





#include %26lt;windows.h%26gt;


#include %26lt;stdlib.h%26gt;


#include %26lt;string.h%26gt;


#include %26lt;stdio.h%26gt;


#include %26lt;conio.h%26gt;


#include %26lt;process.h%26gt;


______________________________________...





Note: At the command prompt, you can try to compile with the following command line:





CL /yourProgramName.c
Reply:It would take me about a year to teach you programming.





It is not something your going to learn overnight or by asking questions on the net. You need to take a tech course or get some very good books.


No comments:

Post a Comment