Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


CS201 - Introduction to Programming GDB Wednesday, January 30, 2013--Thursday, January 31, 2013....

Discussion Question:

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?

Views: 1534

Replies to This Discussion

Discussion Question:

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?

c++ is the most popular language .c++ is an object oriented language.and it is known as third generation language. it is an improved version of c language .it provides a facility of working with classes and objects.it is power ful language and it is used to develop a variety of programs.c++ plays important role as a base language to  in order to understand other programing language  such as java ,c#.in java structure is design instead of classes .java and c are modified and simplified version of c++.these languages barrow basic structure,libararies ,operators ,classes structure, and syntax from c++.

ooooooo you've very strange concept. please, correct your concept with deep study .

According to my point of view C++ play an important role as a base of other languages.Because if a bigness want to start C# or others languages then he can do easily if he done C++because he have Idea and concept that how he can learn and use other languages for his purposes.And I think so that If programer knows about C++ it can play an important role.And can give  enhance and more creativity in other languages

simple sa to gdb hai app log kioo sar pakar k baithy hain???

kon he?

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.  

 

 

 

Idea Solution is best one to make it in own wording ....Thanx

RSS

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

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