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++.


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.

nil

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.


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;


}


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


C-section with twins?

Hello, I am 32 weeks with twin girls, one is breech and one is head down so I will be having a C-section. Now I am going to talk to my doctor ( obviously, lol ) but I don't see him again until Tuesday morning and we found out yesterday that one was breech. I am just curious other mothers who went through C-section with twins, did the spouse get to be in the delivery room? When did you schedual the C-section, or did you just wait until you went into labor. I have been having pre-labor signs, but my doctor said if I could just get to 36 weeks, we would be golden. So we are wondering if he will schedual it at all or just let nature take it's course and then do it once I am in labor. What was recovery like? I have had three boys, but they were all pretty uneventful vaginal births, so I am a little uneasy, just because of the unknow. I know women who had C-sections, but they were singletons, so I don't know if it would be any different, thank you in advance for your time.

C-section with twins?
They will schedule you. If you go into spontaneous labor before that, you will have to go to the hospital immediately to be sectioned.





Yes, the spouse gets to be in the delivery room. They just might have him wait outside for a few minutes while they place your spinal block/epidural block and get you positioned on the table, but after that he can stay the whole time up near your head while the operation takes place.





Recovery is a little longer with a section, but you shouldn't be miserable. Pain medications are fine to take (your doctor will prescribe ones that are safe to take if you are breastfeeding).





Recovery from twins is no different than recovery from a singleton other than your uterus is larger and will take a bit more time to return to pre-pregnant size.
Reply:Recovery from a c-section is longer and harder than recovering from a normal birth, in general.





I'm shocked that your doctor hasn't discussed your other options . . . . having twins doesn't always mean a C-section.





Babies can be turned in some cases. You could deliver the one that is head down (if that one is the first one) and then they rotate the second and you could deliver both vaginally.





This has been done before,(but your health and the position of the twins needs to be favorable)





If this interests you, speak up about it. In the end having a section, is YOUR choice not the dr's.





Regardless of how you deliver, good luck and I hope you have healthy little one's!

sp

Pregnant - need C.O.C.C letter from the NHS to prove Coverage in USA for medical insurance?

I am British and married to an US citizen. We are living in London since March 2007 and my wife has a spousal visa. She is now pregnant (12 weeks) and wants to go back to the USA (New Jersey) to have the baby.


This is causing me endless headaches due to the fact that they do not have any such thing as NHS but require everyone to have there own private insurance which since she is already pregnant they are trying to say she is not covered as its a pre-existing condition.


I would really be grateful if someone could help out or at least point me in the right direction. For us to get insurance that will cover the pregnancy we need to show that she has coverage here. They are asking for a letter C.O.C.C which is a letter from the NHS saying that she is covered and how long she has been covered. I have her NHS card but that states only from when she first registered, July. I have also enquired at my local PCT (NHS) but got no help.

Pregnant - need C.O.C.C letter from the NHS to prove Coverage in USA for medical insurance?
You could ask for help at Citizens Advice?





I think your wife needs to be careful though, as flying in late pregnancy can be risky, you can't really fly after 34 weeks so you would be looking to be in the States for a couple of months. Also, as you live in London, how are you going to get home and settled after the birth, or will you be living with relatives? http://www.flighthealth.org/pregnancy.ht...





If your wife wants her family around her for the birth, could they fly over to be beside her?





Or, could you fly over for a 3 month holiday, with holiday insurance to cover hospital visits, and try and get insurance this way - making the most of your local midwifery and antenatal service until 34 weeks, get your 12 and 20 week scans and antenatal classes, and then have your baby born in NJ. Unsure if this will work though.





NHS only covers you in Europe, but not USA - you will defo need seperate insurance, or you could win the lottery.





Congratulations on the baby, and all the best for the future.
Reply:But the NHS is not private cover and we do not have reciprocal national health cover with the USA - only EU countries in the case of emergencies.