Question:

How to write C programs by using visual C++ 2008? Help please.?

by  |  earlier

0 LIKES UnLike

Hi. I'm TOTALLY TOTALLY new to programming. I'm learning the C language at university and I'd like to know if I can create programs in C language by using visual c++ 2008 express edition. If yes, how? Help me please.

Thanks.

 Tags:

   Report

3 ANSWERS


  1. Yes, C++ is just a super set of C.  If you want a pure ANSI C only program than just don't use any of the C++ specific libraries or C++ syntax, which means no STL no string structure and no classes.

    There should be a switch in the project properties pane that lets you check a box that says make it strict ANSI C or something like that.  You can usually set it to warn or give a build error if you try to use C++ and not std. C.

    Also, with C only, name your source files

    myfile.c


  2. You can use 2008 as is. There are some subtle differences between how C and C++ are compiled, but they don't really matter. The lesson 1 video at the link below will show you how to compile your first program. It uses cout, which is a C++ but you can replace that with a printf command for C programming:

    http://xoax.net/comp/cpp/index.php


  3. You should be able to.  C++ compilers can be used to compile C programs as well.  Your best bet is to create a "Console Application".  This is the simplest project, and is closest to most beginning C program assumptions about your starting environment.

    Good luck !!

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.