Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 14 of 14
  1. #1
    New Coder
    Join Date
    Jul 2002
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question C++ vs Visual Basic

    For my Computer Programming course, I have the choice of learning C++ or Visual Basic. I will be learning on a Windozes 98 machine, but I would also like to be able to work on my own on my home iMac.

    What would be more beneficial for me to learn?

    Any thoughts will be appreciated.

  • #2
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Well, visual basic is windows only as far as I know, there may be runtimes (libraries of code to help vb programs run) for other operating systems but I don't know of any!

    I'm not sure if there are c++ compilers for mac, I know that java can be copmiled on mac and it's pretty similar to C which is pretty similar to C++ ..

    Ok after writing that last sentence I whent googling for info, I'm not 100% sure but I think there are compilers for C++ that work on mac. I'm sure there is a forum or something linked from the Apple website (www.apple.com) if you are willing to look.

    [edit:] In case you didn't know, a compiler will turn your code into machine code (binary) ...
    Omnis mico antequam dominus Spookster!

  • #3
    Regular Coder
    Join Date
    Feb 2003
    Location
    California
    Posts
    925
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Im pretty positive that macs can compile C++ source code but like mhtml said vb is windows specific.


    Jason

  • #4
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Of course there are C/C++ compilers for the Mac platform. C is still the the most common lower level functionality (kernel, IO, etc) language on all platforms. So common that it can be considered a de-facto standard for everything except LISP-machines and Java hardware runtimes. Codewarrior is the most used of course, and gcc in OS X. IBM has one of their own that I can't remember the name of for the moment. There are others as well, but none as big on the platform. In fact, GCC could be considered to be the most widely spread compiler of any kind, when it comes to number of platforms it supports.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #5
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    c++ will be more useful for powerful and portable applications, however visual basic 6 is a really easy language to work with for beginners.

    i learnt to use the windows API in VB6, and that is making c++ windows programming make a whole lot more sense than it did before i learnt vb.

    sadly, vb programs need all these runtime DLLs to run, which means lots of baggage when you distribute the application.
    life without death would get kinda monotonous after a while, eh?

  • #6
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    VC++ isn't exactly DLL independent either, unless you write all the functionality yourself.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    C++. you'll prefer it in the lng run. although VB might be better if ths is the first langauge you learn
    photoshop too expensive? use the GIMP! www.gimp.org

  • #8
    Regular Coder
    Join Date
    Dec 2003
    Posts
    367
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The best way to learn programming is with a procedural language like C (C, not C++) or Pascal. That's why they are usually the introductory classes to programming in the universities. They are the closest to what a computer really works like, and they'll give you the best background to then understand OOP (C++, Java, etc), and all other sorts (VB is kinda like an "other sort", not object oriented, but it has objects, and way too much of the "guts" of the computer is hidden/abstracted from the programmer). VB is the easiest language to have a quick Windows app up and running in no time (anyone with half a mind can have a VB hello world app 2 minutes after they fire up the IDE), but making the transition from VB to C or C++ will be much harder, than if you have a decent background in procedural programming.
    That's my 2 cents.

    shmoove

  • #9
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Universities I've had a look at tend to use C/C++, Java, Fortran and/or Pascal later on in the education, when the students do actual programming, but teaches programming basics in a more abstracted (often functional) language such as Haskell, SmallTalk, ML, Python, Scheme or LISP; or in a scripting language to remove the compilation and strict typing from being a factor.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #10
    Regular Coder
    Join Date
    Dec 2003
    Posts
    367
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Where I studied (and all the universities here in Israel, AFAIK), the first course in CS, called "Intro to Computing" is a C programming course (it used to be Pascal, but changed around 10 years ago). You just make simple console programs (compiling with good ol' Turbo C from Borland).
    And I think that is the best way to really learn programming in the general sense, not just knowing one or two languages, but understanding what the code you're writing really is. In the long run you'll become a better programmer that way (it's all 0's and 1's in the end, no matter what platform).

    shmoove

  • #11
    Regular Coder
    Join Date
    Dec 2003
    Posts
    367
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I just noticed this:
    VC++ isn't exactly DLL independent either, unless you write all the functionality yourself.
    You can always statically link what you need and then you won't have to use any dlls (although it might not be the best approach in many cases).

    shmoove

  • #12
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    It's hard to do with some windows APIs, for instance, since they change with the windows version...
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #13
    Regular Coder
    Join Date
    Dec 2003
    Posts
    367
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Like I said, not the best approach in many cases.

  • #14
    New Coder
    Join Date
    Dec 2003
    Location
    ireland
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i have three keyboards for my mac and not one of them has a # key!!!
    hello says narf
    and narf says hello


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •