We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

Generally, C# and Java can be just as fast or faster because the JIT compiler -- a compiler that compiles your IL the first time it's executed -- can make optimizations that a C++ compiled program cannot because it can query the machine. It can determine if the machine is Intel or AMD; Pentium 4, Core Solo, or Core Duo; or if supports SSE4, etc.
A C++ program has to be compiled beforehand usually with mixed optimizations so that it runs decently well on all machines, but is not optimized as much as it could be for a single configuration (i.e. processor, instruction set, other hardware).
Additionally certain language features allow the compiler in C# and Java to make assumptions about your code that allows it to optimize certain parts away that just aren't safe for the C/C++ compiler to do. When you have access to pointers there's a lot of optimizations that just aren't safe.
Also Java and C# can do heap allocations more efficiently than C++ because the layer of abstraction between the garbage collector and your code allows it to do all of its heap compression at once (a fairly expensive operation).
Now I can't speak for Java on this next point, but I know that C# for example will actually remove methods and method calls when it knows the body of the method is empty. And it will use this kind of logic throughout your code.
So as you can see, there are lots of reasons why certain C# or Java implementations will be faster.
Now this all said specific optimizations can be made in C++ that will blow away anything that you could do with C #, especially in the graphics realm and anytime you're close to the hardware. Pointers do wonders here.
So depending on what you're writing I would go with one or the other. But if you're writing something that isn't hardware dependent (driver, video game, etc), I wouldn't worry about the performance of C# (again can't speak about Java). It'll do just fine.

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 1578

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

your answer bit relate with gdb

plzz easy answer den jo samaj bhi aay : (

gdbmai pocha kia geya hai aur app naay solution kia upload kia hai?? wah je wah

Comparison nahi karna ye batana hai ky how c++ can help to undersand the modern programing languages...!

How C++ can play an important role as a base language in order to understand the modern programming languages such as C#, Java, J# etc?

Solution:

Generally, C# and Java can be just as fast or faster because the JIT compiler -- a compiler that compiles your IL the first time it's executed -- can make optimizations that a C++ compiled program cannot because it can query the machine. It can determine if the machine is Intel or AMD; Pentium 4, Core Solo, or Core Duo; or if supports SSE4, etc.

A C++ program has to be compiled beforehand usually with mixed optimizations so that it runs decently well on all machines, but is not optimized as much as it could be for a single configuration (i.e. processor, instruction set, other hardware).

Additionally certain language features allow the compiler in C# and Java to make assumptions about your code that allows it to optimize certain parts away that just aren't safe for the C/C++ compiler to do. When you have access to pointers there's a lot of optimizations that just aren't safe.

Also Java and C# can do heap allocations more efficiently than C++ because the layer of abstraction between the garbage collector and your code allows it to do all of its heap compression at once (a fairly expensive operation).

Now I can't speak for Java on this next point, but I know that C# for example will actually remove methods and method calls when it knows the body of the method is empty. And it will use this kind of logic throughout your code.

So as you can see, there are lots of reasons why certain C# or Java implementations will be faster.

Now this all said specific optimizations can be made in C++ that will blow away anything that you could do with C#, especially in the graphics realm and anytime you're close to the hardware. Pointers do wonders here.

So depending on what you're writing I would go with one or the other. But if you're writing something that isn't hardware dependent (driver, video game, etc), I wouldn't worry about the performance of C# (again can't speak about Java). It'll do just fine.

 

All these languages are independent from each other. So if to speak about the importance then C# is important for understanding C++ the same way as C++ is important for understanding C#.

The C++ is Object oriented programming paradigm is focused on writing programs that are more readable and maintainable. It also helps the reuse of code by packaging a group of similar objects or using the concept of component programming model. It helps thinking in a logical way by using the concept of real world concepts of objects, inheritance and polymorphism.  

 

 

 

 

 

 Idea Solution

C++ is a statically, free-form, multi-paradigm, compiled, general-purpose programming language. It is regarded as an intermediate-level language, as it comprises a combination of both high-level and low-level language features.

C++ is one of the most popular programming languages and is implemented on a wide variety of hardware and operating system platforms. As an efficient compiler to native code, its application domains include systems software, application software, device drivers, embedded software, high-performance server and client applications, and entertainment software such as video games. Several groups provide both free and proprietary C++ compiler software, including the GNU Project, Microsoft, Intel and Embarcadero technologies. C++ has greatly influenced many other popular programming languages, most notably C# and Java and J# etc. In other words they are modified and simplified versions of C++ according to particular needs. As these languages barrow basic structure, libraries, operators, classes structure, syntax etc from C++ that's why C++ can play an important role as a base language in order to understand the modern programming languages such as C#, Java, J# etc.  

 

 

 

copied from wikipedia..

Hi,

i read all this thread about assignment i observe one thing in this c sharp and c++ relation.... i think some sort of miner relation exist between them but not more that u define please review your assignment.

thnks

Regards: Brain of lahore ;)

C++ is a statically typed free-from.multi-paradim, compiled, general-purpose programming language. It is regarded as an intermediate-level language, as it comprises a combination of both high-level and low-level language features .Bjarne Stroustrup starting  at Bell Labs it adds object oriented features, like classes, and other enhancements to the C. C++ is one of the most popular programming languages. Implemented on a broad variety of hardware and operating system platforms. As an well-organized compiler to local code, its application domains include systems software, application software, device drivers,  high-performance server and client applications, and  video games.

thanks tariq bahi

C++ is a statically typed free-from.multi-paradim, compiled, general-purpose programming language. It is regarded as an intermediate-level language, as it comprises a combination of both high-level and low-level language features .Bjarne Stroustrup starting  at Bell Labs it adds object oriented features, like classes, and other enhancements to the C. C++ is one of the most popular programming languages. Implemented on a broad variety of hardware and operating system platforms. As an well-organized compiler to local code, its application domains include systems software, application software, device drivers,  high-performance server and client applications, and  video games. 

It's an example of terrible language design and makes you realize how lucky you are if you can program in anything else than C++ (except perhaps PHP). It's a good language to start learning programming because at that point you don't know any better and can't realize how miserable and unproductive you are because of its flaws; it also makes it a joy to discover other things that aren't complete **** such as C# or Python. It's always better to start neck-deep in the **** hole and climb out than the other way around, so learning C++ first can be a good way to go about it. Also, the more time goes the more people realize they don't actually need for C++ for much of anything, and there's still a whole bunch of software written in it, so if you have forever renounced to all pleasures of life, writing C++ is something that pays very well today.
C++ wont teach you C# or Java. In fact C# and Java have been shaped around the limitations of C++. Having said that, C++ applications run faster as the runtime is not virtualised (.NET CLR, JRE) and if you are doing Windows development you will notice that you have a greater set of APIs for C++. Looks like Microsoft are working on a new runtime that doesn't need virtualisation and an OS that executes in that runtime. Hell it even has more than one kernel (as many processing units you can have on your machine)

RSS

Latest Activity

Waseem Khan updated their profile
20 minutes ago
DraMa QuEeN updated their profile
29 minutes ago
UMAR GHAFOOR joined + M.Tariq Malik's group
31 minutes ago
UMER UMER posted a discussion
37 minutes ago
ALEENA replied to +¢αяєℓєѕѕ gιяℓ's discussion Mera tu Mohabbat se aitbar.............:-P
43 minutes ago
+ M.Tariq Malik replied to +"..BleSsinGs!'s discussion MCD401 Camera basics, principles and practices Assignment No 01 Fall 2019 Solution & Discussion in the group MCD401 Camera basics, principles and practices
43 minutes ago
+ M.Tariq Malik replied to +"..BleSsinGs!'s discussion MCD401 Camera basics, principles and practices Assignment No 01 Fall 2019 Solution & Discussion in the group MCD401 Camera basics, principles and practices
44 minutes ago
komal tahir joined + M.Tariq Malik's group
45 minutes ago
+ M.Tariq Malik replied to Waseem Aziz's discussion 1st Assignment PROJECT MANAGEMENT (MGMT627) required Solution in the group MGMT627 Project Management
46 minutes ago
abid ali replied to Ikra butt's discussion CS301-Data Structure Assignment No 1 Solution 2019 in the group CS301 Data Structures
47 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MGT402 Cost & Management Accounting Assignment No 01 Fall 2019 Solution & Discussion in the group MGT402 Cost & Management Accounting
48 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MCM101 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 20-11-2019 in the group MCM101 Introduction to Mass Communication
52 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion MCM101 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 20-11-2019
53 minutes ago
+ M.Tariq Malik added a discussion to the group MCM101 Introduction to Mass Communication
54 minutes ago
syed asim ali liked Ayesha saddiqua's profile
1 hour ago
shan replied to shan's discussion project cs619
1 hour ago
Z@F@R (MSBA) joined + M.Tariq Malik's group
1 hour ago
Namood replied to + M.Tariq Malik's discussion MTH601 Assignment No 01 Fall 2019 Solution & Discussion in the group MTH601 Operations Research
1 hour ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH304 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 17-11-2019 in the group MTH304 Statics
1 hour ago
Z@F@R (MSBA) joined + M.Tariq Malik's group
1 hour ago

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service