VBBR
Moderator
Brazil
617 Posts |
Posted - Apr 29 2004 : 1:55:54 PM
|
Yeah I was already making it in VB6, I asked just to know your opinion, thanks...
|
Whatever. Who knows... |
|
|
VBBR
Moderator
Brazil
617 Posts |
Posted - May 07 2004 : 2:46:53 PM
|
Hey just came here and noticed a question wasn't answered...
quote: Originally posted by VBBR
What is the usefullness of C? I think C++ is the "important" as yourself said...
So...? |
Whatever. Who knows... |
|
|
EACam
Warrior
154 Posts |
Posted - May 07 2004 : 8:46:06 PM
|
WEEELLLL....C is technically faster than C++, but I can't think of any compilers for only C. C doesn't support OOP...so there's a plus. (I personally hate OOP...it's slow and annoying [what's up with this Friend business? Just use a module for goodness sake! ])
C++ was adapted from C and is fully backwards compatable...no idea if that's of any use.
I'm not a C or C++ programmer (i know a little)...so my words are dirt, really. |
Edited by - EACam on May 07 2004 8:48:33 PM |
|
|
Sr. Guapo
Swordmaster
USA
272 Posts |
Posted - May 07 2004 : 10:44:03 PM
|
From what I understand, C++ is C, with a couple of extras (like OOP). It makes sense that C is a little faster, but I can't imagine it being enough to worry about. |
|
|
Eric Coleman
Gladiator
USA
811 Posts |
Posted - May 07 2004 : 11:45:56 PM
|
ANSI C is generally better, in my opinion, for creating helper DLL's for VB. You can easily manage memory through VB, and thus you generally don't have to worry about memory leaks. Also, you can't be a decent C++ programmer if you don't first learn the basics of C programming. Learning C++ without first learning C is like learning to Run before you Walk. |
|
|
cjb0087
Knave
Australia
76 Posts |
Posted - May 08 2004 : 01:11:20 AM
|
C used to be faster than C++ , but since then compilers have gotten alot better at optimising, so there is pretty much no difference. and with classes in c++ they are pratically the same a structs(types) except with some added features, so no speed difference(that i know of)
|
www.bugsplat.tk |
|
|
VBBR
Moderator
Brazil
617 Posts |
Posted - May 08 2004 : 07:17:19 AM
|
quote: Originally posted by Eric Coleman
Also, you can't be a decent C++ programmer if you don't first learn the basics of C programming.
Sorry but could you explain why? I have found C++ really easier than C...
Comparing, isn't it like VB is to BASIC as well as C++ is to C ? So is it needed to learnd BASIC before VB?
(little side note: not to admit anything, but I think learning BASIC helped me a little with VB. ) |
Whatever. Who knows... |
|
|
sdw
Warrior
USA
160 Posts |
Posted - May 08 2004 : 3:23:33 PM
|
quote: Also, you can't be a decent C++ programmer if you don't first learn the basics of C programming. Learning C++ without first learning C is like learning to Run before you Walk.
I don't agree with that. I learned a lot of C++ without looking at C. I always thought they were basically the same syntax except that one's OOP, the other's not. Maybe what you were thinking is that people who are new to programming should start at a higher level language that wouldn't be so hard to follow as C++ would be.
quote: You can easily manage memery through VB, and thus you generally don't have to worry about memeory leaks.
Amen to that. Not to mention whatever you do in C/C++ could be done much faster with VB.
quote: What is the usefullness of C? I think C++ is the "important" as yourself said...
It's still used in some system and network programming. However, C came first therefore it's still around. C++ is more commonly used though.
quote: So is it needed to learnd BASIC before VB?
No. It's not _needed_ to learn any language first before another, it's only recommended. |
|
|
Eric Coleman
Gladiator
USA
811 Posts |
Posted - May 08 2004 : 5:56:27 PM
|
C++ is a superset of C, so if you learn C++, then you ARE learning C. BASIC and VB are two totaly different languages, so its not fair to compare them. They might be related, but they're not sets of each other.
C is like addition, C++ is like multiplication.
If you skip learning how to add and go directly to multiplication, then you are learning how to add, it's just that the learning curve is would be steeper than if you were to learn addition first. |
|
|
Sr. Guapo
Swordmaster
USA
272 Posts |
Posted - May 08 2004 : 6:05:08 PM
|
I agree with sdw. I learned c++ with no knowledge of c. They are so similar, it would be like learning VB .net before VB 6. The sytax id almost exactly the same. A c program should work on a c++ compiler. It may help to know the basics of C, but is not required. |
|
|
Eric Coleman
Gladiator
USA
811 Posts |
Posted - May 08 2004 : 6:07:36 PM
|
I never said it was required, I only said it is more difficult. |
|
|
VBBR
Moderator
Brazil
617 Posts |
Posted - May 08 2004 : 6:19:21 PM
|
OK so I'll stick with learning just C++. I guess it shouldn't be too difficult because I already know a lot of VB and the general programming principles are always the same.
Also I'm already learning C++ at www.cplusplus.com and I am not finding it hard. Just pointers that are kinda confuse... like *p.xxx is the same as p->xxx or something like that... and then there is the fact that arrays and pointers are basically the same thing, and it takes some time for you to absorb that.
Anyway I recommend this site for anyone wanting to learn C++, it is very complete. I have tried www.cprogramming.com but www.cplusplus.com is a lot better. |
Whatever. Who knows... |
Edited by - VBBR on May 08 2004 6:21:03 PM |
|
|
ballistik
Moderator
72 Posts |
Posted - May 08 2004 : 6:52:08 PM
|
Taken from Sams; Teach Yourself C++ in 24 Hours:
quote:
C++ benefited from its relationship to C for many years, as C programmers could ease into their use of C++. To really get the full benefit of C++ however, many programmers found they had to unlearn much of what they knew and learn a whole new way of conceptualizing and solving programming problems.
...
The question inevitable arises: because C++ is a superset of C, should I learn C first? (Bjarn) Stroustrup (creator of C++) and most other C++ programmers agree: not only is it unnecessary to learn C first, it is a bad idea.
Through my experience, I agree with them. |
_____________________ ..::||::.. |
|
|
VBBR
Moderator
Brazil
617 Posts |
Posted - May 08 2004 : 7:11:37 PM
|
One argument more for me |
Whatever. Who knows... |
|
|
cjb0087
Knave
Australia
76 Posts |
Posted - May 09 2004 : 04:28:00 AM
|
yeah learning c first is a bad idea, because you dont use c++'s best featueres as much as you usually would like OOP and streams |
www.bugsplat.tk |
|
|