Be a Supporter!

what to use... vb or c/c++?

  • 521 Views
  • 5 Replies
New Topic Respond to this Topic
Red-Soldier145
Red-Soldier145
  • Member since: Aug. 23, 2005
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
what to use... vb or c/c++? 2006-11-08 20:48:20 Reply

Well, a little background on myself..

I've taken a year of 10th grade highschool vb - just went into the basics -control types, variables, branch structures (acutally only did the If statement), for/next and do loops, no arrays whatsoever, though I've created hundred of simple programs. Easiest course ever.

This year I'm taking the 11th grade VB course, though its still pretty basic... same stuff as last year with the addition of the select case statement and some string manipulation...

I somewhat resent how basic the course is.. I'd like to learn more of the functions of a RAD like VB... The thing is, there is no C course at my school so I couldn't take it even though I wanted to. I've tried some simple C++ from online tutorials, though I was put off by the range of C compilers and their range of different language and syntax nuances. Tried bloodshed, dev-c++, some other console based C compiler.

But I've always wondered how C++ is better than VB. I've heard that VB can serve all the same functions that C++ can, just with a different language. Why is it that so many of you prefer c++ to vb?

jarrydn
jarrydn
  • Member since: Jul. 15, 2002
  • Offline.
Forum Stats
Moderator
Level 10
Artist
Response to what to use... vb or c/c++? 2006-11-08 21:18:36 Reply

C++ is quicker and more portable :)


audio / bbs troubles? drop me a PM

BBS Signature
Cinjection
Cinjection
  • Member since: Apr. 6, 2004
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to what to use... vb or c/c++? 2006-11-08 21:41:42 Reply

C++ is Object oriented for one. That's a really really major advantage. It's also faster, more efficent and portable. I think you can do several things in C++ that you can't in VB too. C++ also gives you A LOT more control over your program. On top of that it's more widely used in the programming community. And to top it all off, it's just plain sexy.

thoughtpolice
thoughtpolice
  • Member since: Mar. 24, 2003
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to what to use... vb or c/c++? 2006-11-08 22:40:47 Reply

At 11/8/06 08:48 PM, Red-Soldier145 wrote: I somewhat resent how basic the course is.. I'd like to learn more of the functions of a RAD like VB...

Want to learn another RAD? Pick yourself up a copy of Delphi such as Turbo Delphi or Delphi 6, I believe Delphi to offer some of the absolute best RAD capabilities you can ask for.

But I've always wondered how C++ is better than VB. I've heard that VB can serve all the same functions that C++ can, just with a different language.

They are equivilant. It's just that some things are achieved differently and more easily/difficult than the other way. So it's really just a matter of application.

Why is it that so many of you prefer c++ to vb?

Dunno, some people just prefer other languages intrinsically, I suppose.


omg.
Playstation Network tag: muffin-noodle
the empty set

Red-Soldier145
Red-Soldier145
  • Member since: Aug. 23, 2005
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to what to use... vb or c/c++? 2006-11-08 22:41:56 Reply

But isn't Visual Basic object oriented as well? and what is meant by portability?

CronoMan
CronoMan
  • Member since: Jul. 19, 2004
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to what to use... vb or c/c++? 2006-11-09 02:44:02 Reply

At 11/8/06 10:41 PM, Red-Soldier145 wrote: But isn't Visual Basic object oriented as well? and what is meant by portability?

Visual Basic.NET is object oriented, VB6 is not

By portability, he means that the code can be compiled on several platforms, and not just Windows. VB only runs on Windows.

There are some limitationts to vb (6) that can't be overridden (createwindow f. ex.)
and VB6 is ANSI and NT is natively unicode which can lead to certain problems when tricking your way into more complicated api calls.

VB6 is (as others have earlier mentioned) alot slower than C++ as well


"no sound in ass"