Monday, May 24, 2010

What is similarities between c & c++?

C and C++ are programming language.

What is similarities between c %26amp; c++?
Well, the big similarities are as follows:





- syntax, as both have the same syntax


- grammar, although C++ has a slightly extended grammar (all the OOP features introduce a few new operators)


- code structure


- the compilation is about the same (not 100% sure, but it should be given that syntax %26amp; grammar are similar)
Reply:C++ is C but wraped in an OO (Object Orientated) design structure.


C++ contains all the extra syntax and code to be able to write OO programs where as C is totally procedural.





C++ uses classes to define objects.


C does not use objects.





So the similarities are the language itself and not the way language is used to write software.
Reply:C++ is a super set of C.
Reply:1.c is procedure oriented language.(all the problems are sub divided into small problems. first solve the divided problems and finally combine all small problems to get the original solution).





c++ is object oriented language.(here objects are used to acess any variables to solve the problems).





2.In c all program must contain main function.


In c++ all program must contain two classes- main class and sub class.





3.but both c and c++ contain constructors,destructors,constants,varia... etc.,
Reply:c is ok but around 75%


C++ is probably more like b- which is kinda like an 82%





who cares both suck


I get a's
Reply:In the syntax, they exactly the same. But in the the structure, C is not 100% OOD but C++ is

innia

I cant get a c&c cage for my new guinea pig that i am getting!?

i dont have time.he will be gone bye tomrrow if i dont get him now!the people at the pet store let up put evrything that we would ned in one and it all fits and he will have pelnty of room.i want my piggy to be happy but everyone has to under stand i can not get a c%26amp;c cage or any type of fancy cage because i want this one piggie and i am cryin now because everyone makes me feel like i am doing thr wrong thing.this cage is huge and everything he will need will fit.we tryed is out.so i ask again wll this cage be good.


http://www.petco.com/product/13394/March...


it all fits i just need to know if he will be happy but dont judge it bout the size that it looks online cause it is huge in stores.i am alreayd in tears so please i no he will be perfect in it i just need to make sure i read the reviews and they are great for guinea pigs and in a book i have on piggies it recommends this cage.tyvm

I cant get a c%26amp;c cage for my new guinea pig that i am getting!?
get that cage. its fine, my cousins put their guinea pig in one of those and its perfectly happy. eventually you might be able to get one of those c%26amp;c cages!


good luck
Reply:I have that cage for my male guinea pig and he has plenty of room Report It

Reply:That cage will be alright for 1 guinea pig, but guinea pigs are herd animals. I recommend you try looking on www.petfinder.com for more piggies.





For C%26amp;C's:


www.cavycages.com





For care:


www.guinealynx.info Report It

Reply:Okay, calm down. No need for tears. I don't think anyone is trying to make you "feel bad". You asked for advice %26amp; you are getting it. Sometimes the advice we get may not be what we want to hear. This has happened to me more times than I can count. So LISTEN to the advice you're getting %26amp; don't take it personally. The people telling you to build a C%26amp;C cage are concerned for the health and well being of your pig %26amp; not trying to "hurt" your feelings.





I'm not judging the cage by the picture. I gave you the actual dimensions from the website. The 1st cage is 32"x20", which is 4.46 square feet. The 2nd cage is 39"x21", which is 5.69 square feet. Both are too small.





Lets think about this. The reviews you read are written by the manufacturer of the cage, right? Of course they're going to tell you how great they are for guinea pigs! They want you to buy their product! The pet store employees will tell you ANYTHING they think will make you buy stuff from their store! Thats their job. So what I'm saying is, stop being naive.





If you must have THAT piggie, fine. I realize that you feel time is of the essence or you'll miss getting the pig. So, you can go to WalMart %26amp; get a storage tub for $5 and use this for a temporary cage. It would serve your pig better to put him in a storage tub from Walmart for a day or two %26amp; build him a proper cage, than to waste your money buying a cage thats too small. If you're just worried that you won't know how to build one, relax. They are very simple to put together. I'm sure your mom or a friend would help you.





Don't cry. Its time to be a big girl. Just really THINK about what I'm telling you. Only you can decide what's best for your pig. I'm just giving you my advice based upon a lot of experience.





Wishing you %26amp; your piggie the best.
Reply:the pet store people know what they are talking about. that looks like the cage at my neighbors, and it has plenty of room. it is BETTER to have a big cage but i think that cage is fine. the pet store people wouldnt help you if they didnt know what they were talking about! \





good luck!
Reply:That cage is not big enough.. bottom line. You want your pig to be happy? Then you need an appropriate cage. If you have to get that cage for a TEMPORARY cage until you get the C%26amp;C cage built, that would be fine. Temporary meaning a few days at the most.








*Pet store employees most often do not know what they are talking about. It is their job to sell the store's products. If petstores knew what they were doing, they wouldn't sell sick and dying pets.
Reply:Listen to Justified. We are only giving you advice and that advice may not be what you want to hear but it is the truth. You can use that cage as a temporary cage, you can use the tub (like Justified suggested) or you can get a play pen. If possible go to a baby store and check out their play pens. I brought a play pen for floor time and the one I got you can buy extra sections to make it bigger. It costs more than a C%26amp;C cage but it is just as good.





Really a C%26amp;C cage is the best cage that you can get, many pet store cages are too small and the reviews you are reading are from the manufacturors. They want you to buy their product so of course they are going to say that it is good.





I had to pay $170 so that I could get a big enough cage for my girls but I am happy for that choice I made.





Good Luck!!
Reply:Like the others said above ~ Any way you look at it (unless it's very temporarily) the cage is just too small. (Definitey by no means is it "huge"!)





You say you want your piggy to be happy ~ if you really love him then you won't subject him to living in this cage. You may be able to "fit everything he will need," but he also needs much more space than this cage will provide. And yes, with everything you now know from talking to other guinea pig owners on here, doing this will be the wrong thing. Sometimes doing what's right is really hard.





This cage will be like him living in a toilet, basically. You need to know if he will be happy? The answer is "not likely."


Believe it or not guinea pigs will run full out sprints in their cage ~ if they have space! They need this for their health, too.





As hard as it may be, you may need to pass this little guy up, so he'll have a chance at a better living arrangement. Also, have you looked into animal rescues or shelters close to you? You can even look in your local newspaper or on craigslist.org to find a pigger who needs a new home. In doing this you will help to not support the abuse animals suffer in pet stores.





By the way ~ a c %26amp; c cage does not mean "fancy." It's cheaper for you, better for the pigger.





I wish one of us lived close to you ~ we'd help you out!


What are the F.C.C's Seven Forbidden Words, and where can I read more about them?

I went to the F.C.C's website (www.FCC.gov) and searched their site for them, but never recieved any answers remotely similar to what I was looking for. Any answers would be appreciated!

What are the F.C.C's Seven Forbidden Words, and where can I read more about them?
"The original seven words were, s h it , piss, f u c k, c u n t, **********, ************, and t i t s." (Spaces inserted to override Yahoo!'s asterisk plugger.) Read George Carlin's famous routine at http://www.law.umkc.edu/faculty/projects...
Reply:Then you should be aware that this is somewhat apocryphal. There is reportedly no such actual ruling., though the FCC does block obscenity somewhat. The seven forbidden words is, I gather, an invention of George Carlin. Report It

Reply:Go to the site below, search the page for "The original seven words were" and you will find the original listing.
Reply:Along with the other websites previously offered, George Carlin has his own, and with a bit of seraching you can get his original monolog. Also, he said it on Pacifica Radio, and they had a lot to say about the FCC coming down on them. Check their website also.


Now what's a nice girl like you doing, looking for all this dirty talk?
Reply:Do a search for Geoege Carlin %26amp; his 7 dirty words bit. He explains it well
Reply:The seven words are not listed anywhere -- because the phrase doesn't come from a list that the FCC has -- it comes from a comedy routine by George Carlin in the early 1970s.





I saw him perform in 1973. He did the routine at my college. The seven words that George Carlin claimed couldn't be said on TV are listed at the link below.





Note that this was the early 1970s. I've heard at least three of those words on broadcast television since then (s.h.i.t, t.i.t.s and piss).


Write a program in c/c++ to print a new no. by adding one to each of its digit.?

.if a five digit no. is input through the keyboard .write a program in c/c++ to print a new no. by adding one to each of its digit.e.g. 12391 then output must be 23402.

Write a program in c/c++ to print a new no. by adding one to each of its digit.?
You MIGHT think the answer is as simple as adding 11111 to the number, but that would be incorrect, since 12391 + 11111 = 23502 (not 23402)...





Thus, we need to account for the "9" which (according to the specification) must yield a "0" result and not a "10" (i.e. "carry")...





So...


the code fragment for this would look something like this...





int i, digits[5], input=12391;


/* Extract the digits and add 1 to each %26amp; get single digit answer*/





for (i=4; i%26gt;=0; i--) {


digits[i] = (input%10 + 1) %10;


input/=10;


}





/* print the digits in order */


for (i=0; i%26lt;5; i++)


putchar (digits[i] + '0');





}
Reply:Since there are only 10 digits, easiest way is to create an array of that maps number 0 to 9, to its new value, then iterate through input and get the output from the defined mapping array.


Prove that a^4 + b^4 + c^4 is greater or equal to (a^2)(b)(c) + (b^2)(a)(c) + (c^2)(a)(b)?

Prove that the above inequality holds for all real numbers a, b and c?

Prove that a^4 + b^4 + c^4 is greater or equal to (a^2)(b)(c) + (b^2)(a)(c) + (c^2)(a)(b)?
the way to start it is by trying (a + b + c)^4 is greater than or equal to 0


and then by expanding
Reply:its greater than all of them isn't it??
Reply:Im so dropping out of maths!

gerbera

Which is the easiest, C+, C++, or java?

I have no interest in computer programming, and I have never done computer programming before. But I am required to take a computer programming course, so, I want to know which is the easiest, C+, C++, or Java? Also, I don't want to spend a whole lot of time on homework for one of this courses. Please tell me why it's easier too.

Which is the easiest, C+, C++, or java?
Java is the easiest. out of those three. You don't have to worry about memory management or pointers etc.





In Java you also have a richer library to work with out of the box. In easy-speak it means, they've programmed all the hard stuff for you, you just have to figure out how to put it together.
Reply:I have done a lot of programming before and have experience with c/c++ and Java. They are all have pretty much the same structure but however there are few differences that make all the programming languages different. Those for example are if they are "low" or "high" level. C/C++ are pretty much the same (C++ is an "updated" version of C) and they are both low level. Low level usually means they are harder to work with for various of reasons such as the "commands" you use aren't that human related. Java is kind of easier to understand but is not that powerful as c++ can be. If you want to be serious about programming take c or c++ but if not go with Java.
Reply:There is no (popular, well-known) language called C+, it's C.





I'm pretty sure C is the easiest: it's a language from the late 60's, early 70's that is still in use. It has been expanded upon and that language was called C++ (the plus-plus part means: increase the value of C by one). And Java is a language that, AFAIK, was made to look like C++ to make it easier for C++ programmers to switch to Java.





I love programming myself, but I can understand why you don't want to take a course in it. It's pretty ridiculous if it has little to do with the area in which you'll be working. I'd hate to be forced to take a plumbing or wood shop class, myself!


I want a mod that can enable skirmish C&C Renegade?

You know like something to put an extra selection on the main menu saying skirmish game and that I will be able to choose maps teams and stuff like that. If not a website that will teach me to make mods for C%26amp;C renegade and other C%26amp;C games. Or a place where there are single player mods to get new weapons, vehicles, units, buildings.


Please no Bull Crap. I'm really need to know where to get these.

I want a mod that can enable skirmish C%26amp;C Renegade?
Well thats easy, the INTERNET! No but really, I would suggest fan sites, web searching.