C++ and C# differences seem small

  • (2 Pages)
  • +
  • 1
  • 2

27 Replies - 2961 Views - Last Post: 11 October 2009 - 09:08 AM

#1 Keevu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 41
  • Joined: 13-September 09

C++ and C# differences seem small

Posted 13 September 2009 - 03:08 AM

I wrote a converting program in c# using if statements and I was looking at an identical program written in c++ using mainly if statements to convert units of measure. It doesn't seem like C++ is very hard. It seems just as easy to learn as C#. I'm thinking of switching to C++ for the heck of it.
Is This A Good Question/Topic? 0
  • +

Replies To: C++ and C# differences seem small

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: C++ and C# differences seem small

Posted 13 September 2009 - 05:17 AM

I think you'll find that pretty much all languages are easy enough to learn...it's only the first that may have a steeper learning curve. the real knowledge and challenge is understanding programming concepts. Once you have a feel for those, the language is often irrelevant (the caveat being that some languages are more developed in certain areas than others).

C++ and C# are both great languages.
Was This Post Helpful? 0
  • +
  • -

#3 carltech  Icon User is offline

  • What did you call me?
  • member icon

Reputation: 28
  • View blog
  • Posts: 997
  • Joined: 19-October 07

Re: C++ and C# differences seem small

Posted 13 September 2009 - 06:26 AM

C++ and C# are both modernized off shoots of C with added OO features.

The real difference is that C# is in the .NET framework which makes things much more easily accessible. C# can do GUI programs quite simply when compared to C++ yet C++ is still a little more powerful and more commonplace in the programming market even though C# has simpler features.

C# fast and easy access to many things
C++ More powerful with more direct access to things
Was This Post Helpful? 0
  • +
  • -

#4 SixOfEleven  Icon User is offline

  • using Caffeine;
  • member icon

Reputation: 945
  • View blog
  • Posts: 6,342
  • Joined: 18-October 08

Re: C++ and C# differences seem small

Posted 13 September 2009 - 10:09 PM

As it has been pointed out the difference between languages is mostly syntax. C, C++, C# and Java are all curly brace languages. For things like if statements, switches, loops, methods (though some prefer the term functions), even arrays to an extent they all follow the same general pattern. I found knowing any one of the above made learning the others relatively easy. As it has also been pointed out many times, it is the libraries that are hard to learn. C# has the .NET framework which simplifies things quite a bit. Java has, forgive me if I get this wrong as I've only glanced at Java, it's packages. C++, because it is an ANSI language and supported on many different platforms, has many different libraries for coding GUI. I would recommend learning one fully before moving on to another though.
Was This Post Helpful? 0
  • +
  • -

#5 Locke  Icon User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 520
  • View blog
  • Posts: 5,596
  • Joined: 20-March 08

Re: C++ and C# differences seem small

Posted 13 September 2009 - 11:19 PM

View PostAmadeus, on 13 Sep, 2009 - 06:17 AM, said:

I think you'll find that pretty much all languages are easy enough to learn...it's only the first that may have a steeper learning curve. the real knowledge and challenge is understanding programming concepts. Once you have a feel for those, the language is often irrelevant (the caveat being that some languages are more developed in certain areas than others).

C++Java and C# are both great languages.


I fixed it for ya. ;)
Was This Post Helpful? 0
  • +
  • -

#6 thursdayniac  Icon User is offline

  • D.I.C Regular

Reputation: 6
  • View blog
  • Posts: 255
  • Joined: 26-April 09

Re: C++ and C# differences seem small

Posted 28 September 2009 - 10:01 AM

View PostLocke, on 13 Sep, 2009 - 10:19 PM, said:

View PostAmadeus, on 13 Sep, 2009 - 06:17 AM, said:

I think you'll find that pretty much all languages are easy enough to learn...it's only the first that may have a steeper learning curve. the real knowledge and challenge is understanding programming concepts. Once you have a feel for those, the language is often irrelevant (the caveat being that some languages are more developed in certain areas than others).

C++Java and C# are both great languages.


I fixed it for ya. ;)


How is c++ not a great language?
Was This Post Helpful? 0
  • +
  • -

#7 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 611
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: C++ and C# differences seem small

Posted 28 September 2009 - 11:25 AM

View PostLocke, on 13 Sep, 2009 - 10:19 PM, said:

View PostAmadeus, on 13 Sep, 2009 - 06:17 AM, said:

I think you'll find that pretty much all languages are easy enough to learn...it's only the first that may have a steeper learning curve. the real knowledge and challenge is understanding programming concepts. Once you have a feel for those, the language is often irrelevant (the caveat being that some languages are more developed in certain areas than others).

C++Java and C# are both great languages.


I fixed it for ya. ;)


You really need to get off it.
Was This Post Helpful? 0
  • +
  • -

#8 Locke  Icon User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 520
  • View blog
  • Posts: 5,596
  • Joined: 20-March 08

Re: C++ and C# differences seem small

Posted 28 September 2009 - 10:00 PM

View Postthursdayniac, on 28 Sep, 2009 - 11:01 AM, said:

How is c++ not a great language?


It is, I just don't like it because programming in it makes me want to shoot myself from time to time.

View PostRaynes, on 28 Sep, 2009 - 12:25 PM, said:

You really need to get off it.


Take your own advice.
Was This Post Helpful? 0
  • +
  • -

#9 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 611
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: C++ and C# differences seem small

Posted 29 September 2009 - 02:49 PM

View PostLocke, on 28 Sep, 2009 - 09:00 PM, said:

View PostRaynes, on 28 Sep, 2009 - 12:25 PM, said:

You really need to get off it.


Take your own advice.


Get off of what? What, may I ask, have I done wrong?

Do explain, dear sir.
Was This Post Helpful? 0
  • +
  • -

#10 Locke  Icon User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 520
  • View blog
  • Posts: 5,596
  • Joined: 20-March 08

Re: C++ and C# differences seem small

Posted 29 September 2009 - 11:09 PM

View PostRaynes, on 29 Sep, 2009 - 03:49 PM, said:

Get off of what? What, may I ask, have I done wrong?

Do explain, dear sir.


View PostLocke, on 28 Sep, 2009 - 09:00 PM, said:

Take your own advice.

Was This Post Helpful? -1
  • +
  • -

#11 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 611
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: C++ and C# differences seem small

Posted 30 September 2009 - 06:57 PM

View PostLocke, on 29 Sep, 2009 - 10:09 PM, said:

View PostRaynes, on 29 Sep, 2009 - 03:49 PM, said:

Get off of what? What, may I ask, have I done wrong?

Do explain, dear sir.


View PostLocke, on 28 Sep, 2009 - 09:00 PM, said:

Take your own advice.


View PostRaynes, on 29 Sep, 2009 - 03:49 PM, said:

Get off of what? What, may I ask, have I done wrong?

Do explain, dear sir.

Was This Post Helpful? 0
  • +
  • -

#12 log3337  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 0
  • View blog
  • Posts: 73
  • Joined: 22-July 09

Re: C++ and C# differences seem small

Posted 30 September 2009 - 07:52 PM

Locke: just stop being a douchebag

all languages has strengths and weaknesses. everything else is up to personal preference
Was This Post Helpful? 0
  • +
  • -

#13 Locke  Icon User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 520
  • View blog
  • Posts: 5,596
  • Joined: 20-March 08

Re: C++ and C# differences seem small

Posted 01 October 2009 - 04:12 PM

View Postlog3337, on 30 Sep, 2009 - 08:52 PM, said:

Locke: just stop being a douchebag


:blink:

Who are you again? Oh wait, I forgot...I don't care.

side-note: Your signature is a bit redundant. You use the namespace log, then call your name with log::...USELESS...

This post has been edited by Locke: 01 October 2009 - 04:13 PM

Was This Post Helpful? -1
  • +
  • -

#14 log3337  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 0
  • View blog
  • Posts: 73
  • Joined: 22-July 09

Re: C++ and C# differences seem small

Posted 01 October 2009 - 04:32 PM

its a sig! i can do what the fuck i want
Was This Post Helpful? 0
  • +
  • -

#15 Locke  Icon User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 520
  • View blog
  • Posts: 5,596
  • Joined: 20-March 08

Re: C++ and C# differences seem small

Posted 01 October 2009 - 04:44 PM

I know. I never said anything to the contrary.

But it shows either horrible coding style or horrible memory of what namespaces you're using and aren't using.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2