c programming in visual c++ 2010

This is a discussion on c programming in visual c++ 2010 within the C Programming forums, part of the General Programming Boards category; hello this is my first post Im beginning to learn c programming but i have some problems in my college ...

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    1

    c programming in visual c++ 2010

    hello this is my first post

    Im beginning to learn c programming
    but i have some problems in my college they use old(ancient) compliers for c
    I downloaded visual c++ express 2010
    where it has alot of options win32, clr, general which option should select to open c editor

    and if i open helloworld.c file which i created using notepad in MS visual C++ theres no debugging option

    please can some show how they write c programs and compline in visual c++

    thanks

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Welcome to the forum!

    There is a large video tutorial that you can d/l for working with visual express 2010. Your d/l website should have it.

    It covers a LOT.

  3. #3
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,648
    Create a new Console project. Add the helloworld.c file to the project. Compile and run.

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by sharan01 View Post
    hello this is my first post

    Im beginning to learn c programming
    but i have some problems in my college they use old(ancient) compliers for c
    I downloaded visual c++ express 2010
    First off, lets clear up one common misconception: "Newer" does not mean "better"

    If you want the best results from your course, you should use the same compilers they are using. You can't learn Biology from a text book on History.

    If you want a relatively good --and free-- C-99 compiler that is still under active development try downloading a copy of Pelles C ...

    smorgasbordet - Pelles C

    I use it daily and it's very close to standards, with some really nifty extensions. It will compile for console, Windows and Windows CE in both 32 and 64 bit flavors... It also lets you make DLLs, LIBs, and RCs with internal support for visual resource editing.

  5. #5
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,794
    As mentioned by rags_to_riches, you need to add the indicated source file to a project. Visual Studio does not allow you to open a random source file and just start debugging/compiling it unless it is a part of a project.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  6. #6
    Registered User
    Join Date
    Jul 2007
    Posts
    131
    Quote Originally Posted by CommonTater View Post
    First off, lets clear up one common misconception: "Newer" does not mean "better"
    In main stream compilers, IMO it does.

    If you want the best results from your course, you should use the same compilers they are using.
    I wouldn't say so. A C course shouldn't concentrate much on using the tools, only the basic usage in the beginning, and you can do that easily with Google. If the instructor uses some ancient tools, I would suggest using newer toolset.

    If you want a relatively good --and free-- C-99 compiler that is still under active development try downloading a copy of Pelles C ...

    smorgasbordet - Pelles C

    I use it daily and it's very close to standards, with some really nifty extensions. It will compile for console, Windows and Windows CE in both 32 and 64 bit flavors... It also lets you make DLLs, LIBs, and RCs with internal support for visual resource editing.
    For almost same reasons (minus "nifty extensions" and resources) I would suggest GCC, possibly in (near?) future clang.

  7. #7
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by fronty View Post
    In main stream compilers, IMO it does.
    Well, it's been my experience that most software reaches a certain point where it's nearly as good as it's gonna get but then one more generation and it all goes to crap. I've seen many softwares (especially in the Shareware world where it's update or perish) go from modest beginnings to steallar half lives then on to garbage retirement. (I won't mention specific programs because I really don't need their authors mad at me)

    For almost same reasons (minus "nifty extensions" and resources) I would suggest GCC, possibly in (near?) future clang.
    From what I've seen GCC is pretty good. I haven't played with it enough to have a solid opinion about it... FWIW... Don't both Pelles and GCC come from LCC roots?

    But we all have our favorites...

  8. #8
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,528
    Quote Originally Posted by CommonTater View Post
    From what I've seen GCC is pretty good. I haven't played with it enough to have a solid opinion about it... FWIW... Don't both Pelles and GCC come from LCC roots?)
    I do not believe GCC has LCC roots - you can read about its history here, here, here, and here. gcc is an excellent C compiler, which produces fast running executables.
    Last edited by kermit; 09-06-2010 at 02:04 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. LDAP Query
    By Travoiz in forum C++ Programming
    Replies: 0
    Last Post: 08-13-2009, 02:58 PM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 04:45 PM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  4. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 09:43 AM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21