[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

which option should I choose to program in c using windows 7

I want to use
c

which option should I choose to program in c using windows 7
0
rgb192
Asked:
rgb192
  • 2
  • 2
1 Solution
 
sarabandeCommented:
easiest is visual 2013 express which can be downloaded at  http://www.microsoft.com/en-us/download/details.aspx?id=40787.

create a new empty win32 console project in the ide (for example by choosing 'new project...' from welcome page. check option 'empty project' and uncheck 'precompiled headers' when creating the project. then add an xxx.c  source file with function main to the project ('add ... existing item'). you also can 'add ... a new item' and choose the type c++ source but use a .c extension for the filename. in the project properties choose 'all configurations' in the configuration combobox and change character set from unicode to multi-byte in the general page for both debug and release configuration.

then build the project by right-clicking on the project in project tree and choose 'Build'.

note, for a source with extension .c the default is the ansi-c compiler and not c++ compiler.

Sara
0
 
rgb192Author Commented:
comment edited:

add existing item:
only two options for add existing item and I can not create a new optiononly two options for add existing item and I can not create a new option
I can not just type xxx.c in textbox

add new item:
there are header (.h) and cpp (.cpp) file options

no .c option
0
 
rgb192Author Commented:
thanks

A related question is getting debugger working instead of just running a file
http://www.experts-exchange.com/Programming/Languages/C/Q_28498986.html
0
 
sarabandeCommented:
yes, they try to force you to .cpp file. but if you keep sturdy it works.

Sara
0
 
peprCommented:
they try to force you to .cpp file. but if you keep sturdy it works.

... but it is easier sometimes not to pee against the wind. It is quite usual to use .cpp extension for C++ source files, and .h or even .hpp for the header files (C++).
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now