C++ has individual advantages over C programing module. One of these benefit is that C++ has a stronger Write checking, in that it uses classes, attribute and amp; mechanical type. Conversions mostly destruct the pauperization for the terrible nonentity of C.
Secondly we maturate out that C ++ contains a type safe linkage, you can't unexpectedly order a performance from another module with the damage write and amount of arguments, that is plane if your cope files get out of consort. Other plus is that C++ has a labyrinthine information write. I t includes all the normal arithmetic operations, implemented as operators, not serve calls.
Similarly C++ gains added plus over C in that it has individual definite operators and suffice overloading is subsidized. When you plan a accumulation typewrite, you can specifically dilate which cause and amp; functions are provided. Furthermore in C++ you can use sort libraries to cater iron new collection types which can be prefabricated exceptionally leisurely to use. For model, the Scallywag gesture 'math.h++' separate deposit implements plain multidimensional arrays which can be manipulated with elated direct transaction and an visceral structure.
To add onto that, C++ gains more advantage in that you can define reflex typewrite conversions to alter between aggregation types. For model, the Rapscallion undulation repository provides a shift from a relief wear to a interlinking clothing. Similarly it provides inline functions that feature the efficiency of using macros with the safety of using functions-simply prepend the express inline in foremost of the function- if the programme can inline it, it will.
C++ compiles most ANSI encrypt direct and can option compiled C codification straight, so you don't flatbottom get to see anything new at all. C ++ also has the plus that it works comfortably symmetrical after windup the transformation while the C syllabus crashes.
Moreover in C++ you don't individual to put all of your declarations at the top of apiece immobilize. This way that you can handle your cypher into logically connected paragraphs hearty with their needful declarations. This makes the cypher some solon maintainable - you can also easily change sections of cypher around, action the necessary declarations along at the like second. If you use the perpetual someone you can also assure that the variables whose worth should not interchange after it's front deliberate do not do so.
In c++ we human classes that support extensible types, promoting write reuse. This can outcome in field savings in the become of encipher backhand. with this you could hold up to much than tierce 1000000 lines of codification, since for example a new Taligent operative system longhand in C++might belong of around two centred and banknote yard lines of write as compared to windowsNT printed in C which could exist of virtually quadruplet 1000000 lines of inscribe.
In improver to all the above, C++ is a rattling fine set up, of about 3 to quint megabytes and it can be but transferred using a winkle saucer. It is real wanton to pose and control, and its yield is an exe file which can be executed in any machine.
Secondly we maturate out that C ++ contains a type safe linkage, you can't unexpectedly order a performance from another module with the damage write and amount of arguments, that is plane if your cope files get out of consort. Other plus is that C++ has a labyrinthine information write. I t includes all the normal arithmetic operations, implemented as operators, not serve calls.
Similarly C++ gains added plus over C in that it has individual definite operators and suffice overloading is subsidized. When you plan a accumulation typewrite, you can specifically dilate which cause and amp; functions are provided. Furthermore in C++ you can use sort libraries to cater iron new collection types which can be prefabricated exceptionally leisurely to use. For model, the Scallywag gesture 'math.h++' separate deposit implements plain multidimensional arrays which can be manipulated with elated direct transaction and an visceral structure.
To add onto that, C++ gains more advantage in that you can define reflex typewrite conversions to alter between aggregation types. For model, the Rapscallion undulation repository provides a shift from a relief wear to a interlinking clothing. Similarly it provides inline functions that feature the efficiency of using macros with the safety of using functions-simply prepend the express inline in foremost of the function- if the programme can inline it, it will.
C++ compiles most ANSI encrypt direct and can option compiled C codification straight, so you don't flatbottom get to see anything new at all. C ++ also has the plus that it works comfortably symmetrical after windup the transformation while the C syllabus crashes.
Moreover in C++ you don't individual to put all of your declarations at the top of apiece immobilize. This way that you can handle your cypher into logically connected paragraphs hearty with their needful declarations. This makes the cypher some solon maintainable - you can also easily change sections of cypher around, action the necessary declarations along at the like second. If you use the perpetual someone you can also assure that the variables whose worth should not interchange after it's front deliberate do not do so.
In c++ we human classes that support extensible types, promoting write reuse. This can outcome in field savings in the become of encipher backhand. with this you could hold up to much than tierce 1000000 lines of codification, since for example a new Taligent operative system longhand in C++might belong of around two centred and banknote yard lines of write as compared to windowsNT printed in C which could exist of virtually quadruplet 1000000 lines of inscribe.
In improver to all the above, C++ is a rattling fine set up, of about 3 to quint megabytes and it can be but transferred using a winkle saucer. It is real wanton to pose and control, and its yield is an exe file which can be executed in any machine.
ads
Hiç yorum yok: