• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

from vb to c


i have approximately 2.5 years vb experience, and i want to learn c (or c++)

what would be the way to go?
0
Mark_FreeSoftware
Asked:
Mark_FreeSoftware
  • 4
  • 3
  • 3
  • +4
5 Solutions
 
Harisha M GCommented:
Hi, get a good book and carry on !

First you need to learn C. Then move on to C++

Since you already know a language, it shouldn't be that difficult for you to learn C

Good Luck !


---
Harish
0
 
Harisha M GCommented:
I would vote for "C++ The Complete Reference" by Herbert Schildt. It initially covers almost all the features of C and then explains C++ in detail.

http://www.amazon.com/exec/obidos/tg/detail/-/0078824761?v=glance
0
 
StillUnAwareCommented:
One of the downloadable and most rated books is Thinking in C++ 2nd Edition by Bruce Eckel :

http://mindview.net/Books/TICPP/ThinkingInCPP2e.html
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Mark_FreeSoftwareAuthor Commented:
>>One of the downloadable and most rated books is Thinking in C++ 2nd Edition by Bruce Eckel :
>>
>>http://mindview.net/Books/TICPP/ThinkingInCPP2e.html


sounds very interesting, but what compiler is it written for? (i couldnt find it)
0
 
Harisha M GCommented:
Mark_FreeSoftware, most books work for every compiler that supports standard C++.
0
 
Harisha M GCommented:
From the page http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html


Note that the code has only been compiled and tested under 32-bit Windows and Linux (with the latest gcc compiler). Although some code may compile under 16-bit DOS compilers, no support is provided for those compilers, since most of them will be old and won't contain more modern features in ISO C++.
0
 
AlexFMCommented:
"Thinking in C++" is a good choice.
I am not agree that it is necessary to start from C. It is better to start from C++ directly. Knowing C++ you can write in C - just don't use classes. Of course, knowing high-level C++ doesn't make you real time programmer, I guess this is what mgh_mgharish means.

All examples from "Thinking in C++" can be compiled in free MS VC++ Express Edition.

0
 
List244Commented:
Hi, I would suggest that you not start with C.  Also, I would suggest you NOT start with Thinking in C++.
Thinking in C++ is quite honestly one of the worst learning references I have ever been forced to use.  I think
you will find many other books much more suiting.  Perhaps looking back on it at a later time would do you
some good, but don't start there.

http://www.vbip.com/books/1893115763/pub.asp 

This book is called C++ for VB Programmers.  It is not what you think.  It does start from having no knowledge
of C++ and it does try to show you from a vb perspective how things work.  It is also a great book in my opinion.
It is pretty easy to follow and pretty good at showing you the basics.  It goes through classes and pointers which
is pretty deep in C++.  HOWEVER, the goal of the book is writing c++ to enhance VB.  So once you get the basics
the book turns to showing you how you can write C++ DLLs and such for VB.  So while it is a good book to start
if you want to get deeper into C++ than that, this book will not take you all the way.
  - I was able to get a copy in almost MINT condition for 4 dollars including shipping costs (Half.com)

http://www.amazon.com/gp/product/1576761193/102-4382766-0721705?v=glance&n=283155
This book is a bit more expensive and goes a lot deeper.  It is also a great book.  I have used this and found it
pretty easy to follow.  It tells you what you need to know, shows you examples and such.  If you want to get into
C++ this is a great book.  Little more expensive though.

http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=10376&lngWId=3
This is the last I will mention.  I have viewed this slightly in the past, nothing too much however.  It is a LARGE
tutorial taking you from no knowledge through pointers/classes/file access/inheritance.. etc.  I would suggest
looking at this one before buying a book, if it does it for you, you will save some money.

All of these I offer you I have used myself.  The first two I have used a lot and the last I have used for review purposes.
0
 
Mark_FreeSoftwareAuthor Commented:

ok, thank you!
0
 
ExtremeFitnessCommented:
Maybe look at C# seems it the up and comming thing....
0
 
lojk.Net and Infrastructure ConsultantCommented:
A hardcore VB developer for years, i learned (the differences) in C# in a weekend with a "c# complete" book and i can at least now decipher c++, even if i cant write it.

Why C++ anyway? C# is pretty much a standard language( i know the .net framework isnt but the language is 'open') and is VERY closely related to Java. Unless you want to earn MEGA money, write for non-windows o/s's (even thats not quite true anymore, checkout Wine or Mono for Linux) or control hardware directly C++ is mostly unneccesary.

Ill take my chances knowing VB, C# and Java, thats enough for most real world development scenarios but if you have plenty of time and headache tablets, go for it!
0
 
List244Commented:
C++ is actually not that bad.  I did not find too much trouble in my learning as of yet anyway.  And, you can write for linux and other os's.  Who knows if Microsoft will hold strong in the future or not.  If you want to take the easy way out, I would say go for Java, at least then you have some portability.
0
 
Mark_FreeSoftwareAuthor Commented:

does C# depends on the framework?

then it's definately a no go for me.


i'm looking for another language to learn, because vb depends on the msvbvm60 dll, and i don't like references like that.

(and it's not possible to write somthing bootable in vb)
0
 
List244Commented:
All things inside the .NET package other than C++ rely on the framework.  C++ can as well, but does not have to use the framework.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 3
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now