Is Visual Studio C or C++

This is a discussion on Is Visual Studio C or C++ within the C Programming forums, part of the General Programming Boards category; I started downloading the free version of VS, but it seemed to be installing C++ not C. Excuse my ignorance, ...

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    3

    Is Visual Studio C or C++

    I started downloading the free version of VS, but it seemed to be installing C++ not C. Excuse my ignorance, but I had a go at C++ years ago and gave up in disgust. Too complicated, or so I thought. If I continue with the download and install, can I run just basic C code.

  2. #2
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,438
    you gave up in disgust?! perhaps neither of these languages are suitable for you then or any at all if no patience, because they are very similar, you can more or less happily code C in a C++ environment as i understand it

  3. #3
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    > If I continue with the download and install, can I run just basic C code.
    Yes, just compile as C.

  4. #4
    Registered User
    Join Date
    Sep 2009
    Posts
    3
    Thanks for that.
    Now a bit deeper. I use C for interfacing to microcontrollers via RS232. But my old TurboC only does DOS application which is fine on older PC's, but runs unhappily on Windows XP etc. and has no idea of USB. So before RS232 totally disappears, does VS have USB capabilities. And is the free version too old to support it.

  5. #5
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    Check this
    It supports VS C/C++

  6. #6
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I use VS for C and have no problems. Just use a C filename extension, and you're good to go.

    I also gave up on C++ in disgust at the level of complications involved in it. My C book had 350 pages or so, and you could work with C when you finished it.

    My C++ book had 1,400 pages in it, (same author and publisher), and when you finished it, you were nowhere near decent with C++ programming.

    If you need to model something as an object, then C++ is fine. For anything else, my opinion of it, is that's it's crap. Despite stronger type checking, it has more pitfalls in it, than any language I've ever seen.

  7. #7
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by Adak View Post
    I use VS for C and have no problems. Just use a C filename extension, and you're good to go.

    I also gave up on C++ in disgust at the level of complications involved in it. My C book had 350 pages or so, and you could work with C when you finished it.

    My C++ book had 1,400 pages in it, (same author and publisher), and when you finished it, you were nowhere near decent with C++ programming.

    If you need to model something as an object, then C++ is fine. For anything else, my opinion of it, is that's it's crap. Despite stronger type checking, it has more pitfalls in it, than any language I've ever seen.
    Well then I guess Java or C# would definitely be out of the question for you.
    Were do you find a C-only job anyways? 99% of the jobs I see posted are for Java or .NET.
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  8. #8
    Registered User
    Join Date
    Aug 2008
    Location
    Bristol
    Posts
    10
    I have given up on C++ as well But aiming to get back to it next year as I have to learn c# and java now
    to topic: Yea use VS and extencion .c or linux

  9. #9
    1337
    Join Date
    Jul 2008
    Posts
    135
    Quote Originally Posted by cpjust View Post
    Well then I guess Java or C# would definitely be out of the question for you.
    Were do you find a C-only job anyways? 99% of the jobs I see posted are for Java or .NET.
    Are you sure? I think opensource job availability is high too. Some people just hate .NET, and I dont really know why. However, they will use it for rapid GUI developments. Actually it depends on what you are developing and doing. Anyway, "99% of the jobs I see posted are for Java or .NET" is a crap.

    You should have said 100%!!, just kidding by the way.

  10. #10
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,031
    I gave up C in disgust* it was just so inferior to modern languages
    *) Not true, I haven't actually read C whatsoever. But my overall statement is the same. C lacks too many modern functions to be a productive programming language. If you do complex programs in C, it's going to be a headache, but if you would learn a language such as C++/C#/Java...
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    MTK
    MTK is offline
    Registered User
    Join Date
    Aug 2009
    Posts
    198
    Quote Originally Posted by Elysia View Post
    I gave up C in disgust* it was just so inferior to modern languages
    *) Not true, I haven't actually read C whatsoever. But my overall statement is the same. C lacks too many modern functions to be a productive programming language. If you do complex programs in C, it's going to be a headache, but if you would learn a language such as C++/C#/Java...
    I actually like C better because it is very low-level and does not do a lot of abstraction from the way the computer works, so it is not that mysterious what it actually does with your computer. And you can have it and an almost-object-oriented language using structs and functions that take it as an argument.

    A long time ago I had C++ and Visual Studio, but I gave up because I neither liked C++ or IDEs. Programming on GNU/Linux is almost effortless, though.

  12. #12
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,031
    The real beauty of C++ is it essentially in a language standpoint is a C with classes and templates.
    "Real" C++ code is (usually) nothing more than C code. There's no built-in string type, no classes for integers, etc. But what C++ allows is for more abstraction. This allows you to easily abstract your low-level code and protect the outside from changes to that code. It's really a win-win.

    Still, different people have different interests, that's a given, so there's no one for all.
    Writing C++ code in C ways is usually frowned upon, so that's where C fits in I guess.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  13. #13
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by Elysia View Post
    Still, different people have different interests, that's a given, so there's no one for all.
    Still, C++ programmers seem to be the most defensive people in the business. More so than python programmers even. Not very encouraging...
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  14. #14
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,265
    Quote Originally Posted by Elysia
    C lacks too many modern functions to be a productive programming language.
    What modern function is C missing that C++ has which increases productivity? I'm willing to bet there are far more applications in use today which use C than use C++. In fact, I'm willing to bet that only Java has more applications in use today than C. I think it's safe to say that C is a pretty productive programming language...
    bit∙hub [bit-huhb] n. A source and destination for information.

  15. #15
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,031
    I sincerely disagree. It's the lack of funding mostly, I think, which makes C more widely used. People simply don't want to investigate enough to create a proper C++ compiler for hardware or we're working mostly with legacy code written in C.
    It lacks classes, templates, type safety and abstraction among other things. It also lacks convenient things like references (which really could just be implemented as pointers behind the scene).
    Remember that C++ is C + extras, so there is no place where C++ couldn't be used where C is today. It's other reasons why C is still dominant on that bit.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Page 1 of 6 123456 LastLast
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, 03:58 PM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 01:13 AM
  4. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 09:57 AM

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