differentiate between c nd c++
use of ::(scope resolution operator)
what kind of projects are suitable for c and c++
what is a class? example
Differentiate between c nd c++?
O_o... this sounds like a homework question. And such I won't give you clear answers. I will give you an overview and suggest that you visit www.wikipedia.org and search for C Programming and C++ Programming.
C is a procedural language thats considered C++ predecessor.
C++ was considered the extension to C by adding Object Oriented Programming/Design to the language.
:: is used When you need to access or define a part of a class.
Reply:C++ is a superset of C. It is object oriented. It has all of the capabilities of C, plus it allows you to use polymorphism and inheritance.
This link can provide you with a lot more detail
http://unthought.net/c++/c_vs_c++.html
Reply:Do your own homework.
Monday, May 24, 2010
After 10 years C++ or C#?
Both have their own pros and cons and their market share. What I want to know is,10 yrs from now
C++ will be there for sure(they r improving it further with C++0x), but will C# loose it's glitter or will it have the same market-share
and love-and-affection(if it has any).
Or on the contrary you think C# will gain over C++.
Pros pl help with "logical reasoning" I have to choose one
After 10 years C++ or C#?
Both C++ and C# will be around for the next 10 years. However, I do see C# and .NET dorminating because it is always improving and Microsoft has some brilliant minds, fans and money behind it. Microsoft will keep updating C# with changing time. As for C++, other than C++ on .NET I do not see companies pumping brilliant minds and money to advance the language. Relying on academia to advance a language is a waste of time (just look at Pascal and it would of had died completely if not for Borland's Delphi.) That is why I am banking my money on Microsoft and .NET.
Another point; language is not that important. What is important is the engine behind the language. Object oriented programming drive C++, C#, JAVA and other dorminant languages today and the lack of it in C, Cobol (classic), Visual Basic has lead to these downfall. Just as procedural programming benefits lead to the downfall of goto-statements languages and assembly-usuage in business and Object oriented programming benefits and change in business needs lead to the downfall of procedural programming I see a new methodology on a significant rise in 10 years. It is probably aspect oriented programming or something else. Microsoft will keep updating .NET with this in mind since it has billions of dollars of market share to maintain or lose while C++ has really been the same for years other than what third-party vendors have added to it; which than MFC and .NET is not huge I believe. So Microsoft is the way!
Reply:in similar condition i chose c++
Reply:C# is tied to Microsoft's .NET, and I don't see that disappearing anytime soon. On the contrary, I see it gaining ground over Java. Rather than compare C++ to C#, I would say that both are gaining share from Java on servers. On desktops, Java is essentially nonexistent, and C++ is quite dominant. I personally would choose C++ because it would be useful on non-Windows platforms as well.
Reply:C# has great inevitable features which are not well and nicely implemented in managed (CLR) C++. Improving C++ to cover features which we take for granted in C# has turned this powerful compiler to a bunch of unreadable awkward codes which would soon looses its attention. C# has a nice look. C# surely wins.
Reply:I wouldn't go with anything that is primarily, if not only, supported by Micro$oft. (I say this as I type on my Windoze computer... lol) Has it made it to other platforms? I remember, when it was still in Beta, that it was reported that it would become an ANSI standard. Did that ever happen?
I was also unaware that C# ever gained any glitter, or wide acceptance, for that matter. But hey, I live in the embedded system trenches with C and Assembly. What do I know?
C++, if you must make a choice, is probably the way to go.
Reply:Both will be there 10 years from now. C++ is definitely going to be there because it is one of the strongest system level languages. C# and Java are application level languages.
C# won’t go away. Microsoft has exposed its Windows API through .NET, and will from now on focus on .NET only. In other words, if you want to write native windows applications, you need a .NET language, which is ideally C#. Do you think Windows will be going strong 10 years from now? Sure, so the same applies to C#.
Reply:C++ will definitely be around because a lot of code being written (or written 5-15 years ago) is in c++. People will still have to maintain this code in 10 years.
Also, many people will continue using c++ because it is platform and framework independent.
c# will be around as long as .NET is around. It was built for .NET. However, if MS goes in a different direction in, say, 5-6 years, and abandons .NET for a new framework, then c# would probably go away with it.
Reply:Wow, in ten years from now? With the major leaps and bounds technology is making I'd doubt any of the current languages will be the prevalent ones.
I predict that in ten years the great monolith Microsoft will crash, and out of the ashes rose a new software company, Phoenix, and they programmed in D and D++.
C++ will be there for sure(they r improving it further with C++0x), but will C# loose it's glitter or will it have the same market-share
and love-and-affection(if it has any).
Or on the contrary you think C# will gain over C++.
Pros pl help with "logical reasoning" I have to choose one
After 10 years C++ or C#?
Both C++ and C# will be around for the next 10 years. However, I do see C# and .NET dorminating because it is always improving and Microsoft has some brilliant minds, fans and money behind it. Microsoft will keep updating C# with changing time. As for C++, other than C++ on .NET I do not see companies pumping brilliant minds and money to advance the language. Relying on academia to advance a language is a waste of time (just look at Pascal and it would of had died completely if not for Borland's Delphi.) That is why I am banking my money on Microsoft and .NET.
Another point; language is not that important. What is important is the engine behind the language. Object oriented programming drive C++, C#, JAVA and other dorminant languages today and the lack of it in C, Cobol (classic), Visual Basic has lead to these downfall. Just as procedural programming benefits lead to the downfall of goto-statements languages and assembly-usuage in business and Object oriented programming benefits and change in business needs lead to the downfall of procedural programming I see a new methodology on a significant rise in 10 years. It is probably aspect oriented programming or something else. Microsoft will keep updating .NET with this in mind since it has billions of dollars of market share to maintain or lose while C++ has really been the same for years other than what third-party vendors have added to it; which than MFC and .NET is not huge I believe. So Microsoft is the way!
Reply:in similar condition i chose c++
Reply:C# is tied to Microsoft's .NET, and I don't see that disappearing anytime soon. On the contrary, I see it gaining ground over Java. Rather than compare C++ to C#, I would say that both are gaining share from Java on servers. On desktops, Java is essentially nonexistent, and C++ is quite dominant. I personally would choose C++ because it would be useful on non-Windows platforms as well.
Reply:C# has great inevitable features which are not well and nicely implemented in managed (CLR) C++. Improving C++ to cover features which we take for granted in C# has turned this powerful compiler to a bunch of unreadable awkward codes which would soon looses its attention. C# has a nice look. C# surely wins.
Reply:I wouldn't go with anything that is primarily, if not only, supported by Micro$oft. (I say this as I type on my Windoze computer... lol) Has it made it to other platforms? I remember, when it was still in Beta, that it was reported that it would become an ANSI standard. Did that ever happen?
I was also unaware that C# ever gained any glitter, or wide acceptance, for that matter. But hey, I live in the embedded system trenches with C and Assembly. What do I know?
C++, if you must make a choice, is probably the way to go.
Reply:Both will be there 10 years from now. C++ is definitely going to be there because it is one of the strongest system level languages. C# and Java are application level languages.
C# won’t go away. Microsoft has exposed its Windows API through .NET, and will from now on focus on .NET only. In other words, if you want to write native windows applications, you need a .NET language, which is ideally C#. Do you think Windows will be going strong 10 years from now? Sure, so the same applies to C#.
Reply:C++ will definitely be around because a lot of code being written (or written 5-15 years ago) is in c++. People will still have to maintain this code in 10 years.
Also, many people will continue using c++ because it is platform and framework independent.
c# will be around as long as .NET is around. It was built for .NET. However, if MS goes in a different direction in, say, 5-6 years, and abandons .NET for a new framework, then c# would probably go away with it.
Reply:Wow, in ten years from now? With the major leaps and bounds technology is making I'd doubt any of the current languages will be the prevalent ones.
I predict that in ten years the great monolith Microsoft will crash, and out of the ashes rose a new software company, Phoenix, and they programmed in D and D++.
Water boils at 100 degrees C and sodium chloride boils at 1415 degrees C. At what temperature will they sepera
Water boils at 100 degrees C and sodium chloride boils at 1415 degrees C. At what temperature will they seperate?
105 degrees c
1500 degrees c
1415 degrees c
80 degrees c
90 degrees c
Water boils at 100 degrees C and sodium chloride boils at 1415 degrees C. At what temperature will they sepera
If sodium chloride and water are mixed, they form a solution. The solution will boil at just over 100 degrees C and you can distill the solution ,catching the water. The salt will be left in the container. Best answer is 105 degrees C.
Reply:You're only considering the two endpoints of the solid-liquid equilibrium line. The temperature at which the single phase (NaCl dissolved in Water) will become two distinct phases will depend on the pressure as well as the composition of the solution.
105 degrees c
1500 degrees c
1415 degrees c
80 degrees c
90 degrees c
Water boils at 100 degrees C and sodium chloride boils at 1415 degrees C. At what temperature will they sepera
If sodium chloride and water are mixed, they form a solution. The solution will boil at just over 100 degrees C and you can distill the solution ,catching the water. The salt will be left in the container. Best answer is 105 degrees C.
Reply:You're only considering the two endpoints of the solid-liquid equilibrium line. The temperature at which the single phase (NaCl dissolved in Water) will become two distinct phases will depend on the pressure as well as the composition of the solution.
Would a C&C cage be suitable for a Netherland Dwarf rabbit?
C%26amp;C cages are usually used for guinea pigs, but would it work for a Netherland Dwarf? (please see what a C%26amp;C cage is before you answer. http://www.cavycages.com/ )
Would a C%26amp;C cage be suitable for a Netherland Dwarf rabbit?
I have my Netherland Dwarf Bunny in a guinea pig cage. They don't grow to be huge so it works out great. I let her out frequently to play, though, so if you don't plan on letting her out often, you might want to invest in something slightly bigger.
:)
Reply:Yes, that would work well as long as it was inside. I think it is a great cage, just make sure the walls are high enough.
Reply:It should be fine. Just make sure that the rabbit can not jump out over the sides.
edible flowers
Would a C%26amp;C cage be suitable for a Netherland Dwarf rabbit?
I have my Netherland Dwarf Bunny in a guinea pig cage. They don't grow to be huge so it works out great. I let her out frequently to play, though, so if you don't plan on letting her out often, you might want to invest in something slightly bigger.
:)
Reply:Yes, that would work well as long as it was inside. I think it is a great cage, just make sure the walls are high enough.
Reply:It should be fine. Just make sure that the rabbit can not jump out over the sides.
edible flowers
C++ Build Solution problem?
Hello,
I am using Visual C++ 2008 Express Edition Beta 2 and am trying to learn C++.
I have created my first bit of code, so that i can learn some c++.
Here is my code:
================
// Test C++ Application
#include %26lt;iostream%26gt;
using namespace std;
int main ()
{
int text1, text2;
int message;
text1 = "cout %26lt;%26lt; 'Hello'";
text2 = "cout %26lt;%26lt; 'Everyone'";
message = text1, text2;
cout %26lt;%26lt; message;
return 0;
}
===========
When i try to build the solution, i get the following:
========
------ Build started: Project: Test Application, Configuration: Debug Win32 ------
Compiling...
Test_App.cpp
.\Test_App.cpp(8) : error C2440: '=' : cannot convert from 'const char [16]' to 'int'
There is no context in which this conversion is possible
.\Test_App.cpp(9) : error C2440: '=' : cannot convert from 'const char [19]' to 'int'
There is no context in which this conversion is possible
Build log was saved at "directory"
Test Application - 2 error(s), 0 warning(s)
C++ Build Solution problem?
The problem is that you try to assign a string to an integer variable, try to change the type of text1,text2 and message to a suitable type such as char[] or String .
Reply:Tery this
// Test C++ Application
#include %26lt;iostream%26gt;
using namespace std;
int main ()
{
char* text1, text2;
char* message;
text1 = "cout %26lt;%26lt; 'Hello'";
text2 = "cout %26lt;%26lt; 'Everyone'";
message = text1, text2;
cout %26lt;%26lt; message;
return 0;
}
I am using Visual C++ 2008 Express Edition Beta 2 and am trying to learn C++.
I have created my first bit of code, so that i can learn some c++.
Here is my code:
================
// Test C++ Application
#include %26lt;iostream%26gt;
using namespace std;
int main ()
{
int text1, text2;
int message;
text1 = "cout %26lt;%26lt; 'Hello'";
text2 = "cout %26lt;%26lt; 'Everyone'";
message = text1, text2;
cout %26lt;%26lt; message;
return 0;
}
===========
When i try to build the solution, i get the following:
========
------ Build started: Project: Test Application, Configuration: Debug Win32 ------
Compiling...
Test_App.cpp
.\Test_App.cpp(8) : error C2440: '=' : cannot convert from 'const char [16]' to 'int'
There is no context in which this conversion is possible
.\Test_App.cpp(9) : error C2440: '=' : cannot convert from 'const char [19]' to 'int'
There is no context in which this conversion is possible
Build log was saved at "directory"
Test Application - 2 error(s), 0 warning(s)
C++ Build Solution problem?
The problem is that you try to assign a string to an integer variable, try to change the type of text1,text2 and message to a suitable type such as char[] or String .
Reply:Tery this
// Test C++ Application
#include %26lt;iostream%26gt;
using namespace std;
int main ()
{
char* text1, text2;
char* message;
text1 = "cout %26lt;%26lt; 'Hello'";
text2 = "cout %26lt;%26lt; 'Everyone'";
message = text1, text2;
cout %26lt;%26lt; message;
return 0;
}
What does the "c." mean in c.2500 b.c.?
In my son's history books when they refer to B.C. dates they add a "c." before the date. And I've seen the B.C. sometimes left our altogether. What does c. mean?
What does the "c." mean in c.2500 b.c.?
b.c means before christ
a.d means anno domini
b.c.e means before common era
c.e means common era
Reply:c in that context means "circa," or about--the exact date is not known.
Reply:It means circa or around. They do that because they don't know the exact year.
Reply:circa
Reply:B.C. MEANS BEFORE CHRIST
Reply:The c. means "circa" means "about" or around. It is used when the dates are approximately known.
So c.2500B.C.
Means approx 2500 years before Christ.
Hope This Helped ;)
Reply:The "c" stands for "circa" -- it's Latin for "around".
Reply:The letters that have CC mean the comin era.
Reply:circa which means "roughly"
it's used when the precise date isn't known.
the "c" in "b.c.", of course, means "Christ"
Reply:Christ
What does the "c." mean in c.2500 b.c.?
b.c means before christ
a.d means anno domini
b.c.e means before common era
c.e means common era
Reply:c in that context means "circa," or about--the exact date is not known.
Reply:It means circa or around. They do that because they don't know the exact year.
Reply:circa
Reply:B.C. MEANS BEFORE CHRIST
Reply:The c. means "circa" means "about" or around. It is used when the dates are approximately known.
So c.2500B.C.
Means approx 2500 years before Christ.
Hope This Helped ;)
Reply:The "c" stands for "circa" -- it's Latin for "around".
Reply:The letters that have CC mean the comin era.
Reply:circa which means "roughly"
it's used when the precise date isn't known.
the "c" in "b.c.", of course, means "Christ"
Reply:Christ
Let G={ [[a,b][c,d]] | a,b,c,d are integers} and H = { [[a,b][c,d]] | a+b+c+d = 0}. Show that if x is in H...
Let G={ [[a,b][c,d]] | a,b,c,d are integers} and H = { [[a,b][c,d]] | a+b+c+d = 0}. Show that if x is in H then x^(-1) is in H.
Let G={ [[a,b][c,d]] | a,b,c,d are integers} and H = { [[a,b][c,d]] | a+b+c+d = 0}. Show that if x is in H...
If you can explain what you mean by your use of square brackets here (ie. what does [[a,b][c,d]] represent?), then I'm prepared to take a crack at this.
***
Forget my previous answer, we're dealing with matrices with integer entries as a group under matrix addition. Ok, so for a matrix x = [[a, b][c, d]] in H, its additive inverse is given by
x^-1 = [[-a, -b][-c, -d]].
Clearly, x^-1 also has integer entries. Adding the entries of x^-1 yields
-a + (-b) + (-c) + (- d) = - (a + b + c + d) = - 0 = 0.
Hence, x^-1 is also in H.
Let G={ [[a,b][c,d]] | a,b,c,d are integers} and H = { [[a,b][c,d]] | a+b+c+d = 0}. Show that if x is in H...
If you can explain what you mean by your use of square brackets here (ie. what does [[a,b][c,d]] represent?), then I'm prepared to take a crack at this.
***
Forget my previous answer, we're dealing with matrices with integer entries as a group under matrix addition. Ok, so for a matrix x = [[a, b][c, d]] in H, its additive inverse is given by
x^-1 = [[-a, -b][-c, -d]].
Clearly, x^-1 also has integer entries. Adding the entries of x^-1 yields
-a + (-b) + (-c) + (- d) = - (a + b + c + d) = - 0 = 0.
Hence, x^-1 is also in H.
Subscribe to:
Posts (Atom)