Sunday, August 2, 2009

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


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.

pokemon cards

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!


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.


C++ HELP, I can get the program running, but I can figure out how to add things together from a inFile.?

#include %26lt;iostream%26gt;


#include %26lt;fstream%26gt;


using namespace std;





int main ()


{ double sum;


int count ;


int val;


ifstream infile;


char a,b,c;





infile.open ("p3_data.txt");


if (infile.is_open())


{


while (infile.good())


cout %26lt;%26lt; (char) infile.get();


infile.close();


}


else


{


cout %26lt;%26lt; "Error opening file\n";


}





cout %26lt;%26lt; "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=...


cout %26lt;%26lt; "\nPlease enter either A, B, or C to be calculated!\n";


cin %26gt;%26gt; a%26gt;%26gt;b%26gt;%26gt;c;


cout %26lt;%26lt; "\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-...


cout %26lt;%26lt; "The bills add up to "%26lt;%26lt;endl;


system("pause");


return 1;


}


/*My program is only adding up 3 different things A B C. I can do everything else I just cant figure this one out. */


Thanks for the help

C++ HELP, I can get the program running, but I can figure out how to add things together from a inFile.?
I'm not exactly sure about what you are trying to do, but if you are trying to add up three numbers, each separated by spaces, one per line, then this might get you started:





#include %26lt;iostream%26gt;


#include %26lt;fstream%26gt;


using namespace std;





int main ()


{


ifstream infile;


int a,b,c;





infile.open ("p3_data.txt");


if (infile.is_open())


{


while (!infile.eof())


{


infile %26gt;%26gt; a %26gt;%26gt; b %26gt;%26gt; c;


cout %26lt;%26lt; a %26lt;%26lt; " + " %26lt;%26lt; b %26lt;%26lt;


" + " %26lt;%26lt; c %26lt;%26lt; " = " %26lt;%26lt;


a+b+c %26lt;%26lt; endl;


}


}


else


{


cout %26lt;%26lt; "Error opening file" %26lt;%26lt; endl;


return 1;


}





infile.close();


return 0;


}
Reply:Use "write()" method of fstream class to write the data into file.


C++ != Visual Forms?

I am learning c++ and I saw a book on visual form does that also require c++ of it;s little different. Should I learn all of c++ rather than learning that 2. So If i learn c++ that will just come to me?

C++ != Visual Forms?
C++ is simply the C++ language, there is no visual design of forms.





In plain c++ you would use the MFC, Microsoft Fondation Class, which contains a library of windows code to create windows and forms or whatever you need done on the windows platform.





Visual C++ offers a graphical IDE and can speed up window layout for your application.





If you are seeking to study C++ for development on the Windows platform I would strongly advise you look into .NET2.0 C++. Also Vista changes how you need to code and .NET already contains namespaces for this and .NET also allows for easier cross platform coding to Linux, etc...





The .NET C++ site has a standard C++ for beginners which should still be a free download. Take all the free online courses with Microsoft and you'll learn more then check out the free online C++ tutorial sites.





BTW: You can do native code, meaning bypass the .NET engine and go to the operating system with in .NET





.NET uses a common engine so that different compilers use the same binary structure making them compatible. A VB and C++ programmer can prettty much plug and play each others code modules with out having to know each others programming language.





Heres a link to the C++ .net site(C++ .NET Express is still a free download and a great starter for beginners):





http://msdn.microsoft.com/vstudio/expres...





I taught a beginner C++ class back in the late 1980s and I'd highly reccomend start with .NET C++ standard.





C++ is an awesome language because the skies pretty much the limit of your imagination and there isn't alot of limitations placed on yo by the compiler. This power can get you in trouble so good form is extremely import, following the experts form is best, Microsoft experts have online blogs and sample code.





Even if you aren't coding for a windows platform I'd still reccomend start your learning there. The information is vast and accurate compared to other places.





The online referrence is like having the big bucks referrence manual and there are tons of articles and sample code to grab advance programming concepts.





I found their developer site a greater learning tool than Sun and others for C++.





Also, if the language is one you chose of your own accord, you'll love C#, its kinda of a cross between java and C++ and with a short learning curve like VB.
Reply:"Visual Forms" is a part of the Rapid Applications Development (RAD). It has nothing mutual with C++ besides that fact that from your C++ code you can use VF. Just treat it as a non-standard MS extension (or even some library that can be used solely with latest MS compilers).
Reply:Visual Forms? Perhaps you mean Visual C++? I don't recommend vc++ books, unless you are certain you are tied to the Microsoft platform.





C++ is platform independent. Get a book, a list is available on http://accu.org/index.php/book_reviews?u... which reviews for technical accuracy. The good books are not platform specific.





Something like C++ Primer 3rd Ed from Lippman or Accelerated C++ is good.

plum

C-section or vaginal?

i am 32 weeks pregnant, i went to the dr. yesterday and i am measuring 36 weeks. my dr. thinks its all baby. i have an ultrasound in 3 weeks to see how big he really is. if he is over 9 lbs she said that she would rather do a C-section because i am a small woman. i am thinking about scheduling a c-section anyways and just planning on doing it that way even if he isnt that big. can anyone tell me their thoughts on c-sections vs. vaginal births? i have not decided yet what im goin to do but i would like to hear others opinions. thank you! after i have my ultrasound i will have to let the hospital know if i want to plan a scheduled c-section.

C-section or vaginal?
Do a C-section in Brazil. Giving birth is illegal in the US.
Reply:you heal faster from vaginal and are in less pain after delivery aswell. c-section are less painfull for delivery but i wouldnt want to have the weeks of recovering afterwards, hard to walk, sit, do normal things where as vaginal, it takes a day or two and your are pretty well normal.
Reply:If you are 32wks but measure 36, by the time you go for your scan your baby could be term and 39wks not 35. This looks as if your dates are a month out. See if you can get that scan brought forward to be certain. I'm a small frame and have had 3 by section. If my first baby had looked as if it were going to be over 8lbs, my midwife said she would be worried. I ended up with an elective section due to breech baby anyway.


I would definitely book a section due to small frame size and the potential difficulties associated with attempting to deliver large babies. I don't want to frighten you, but if your doctor has mentioned it, pursue it, she's not allowed to tell you to do it she can only give you advice. Take it and good luck!
Reply:There is less recovery time with a vaginal birth. Caesareans are a major abdominal operation and take a lot longer to recover. It is more difficult and uncomfortable for you after a C-section to enjoy your baby and if you are breast feeding you have to find a comfortable postition because of the pain and the sutures. Sure it is long and painful with a normal delivery, but you have your baby straight away and the pain is gone. If you have a c-section and a general anaesthetic it could be a couple of hours before you meet your baby, even it you have an epidural, you see your baby then it is taken away while you are stitched and then you go to recovery. Why don't you wait until you have your ultrasound and then decide, it is a big decision.
Reply:I don't know anything about a vaginal birth from personal experience but I had a C-Section in June. It was a lot more recovery then I ever expected as the doctor would not allow me to walk far distances, drive in a car, carry anything over 14lbs (which was my baby + her car seat) among other things for about 4 weeks. The scar is below my bikini line so no one besides my husband or the doctor would ever see it.





I was amazed to see some of my friends that had babies after me vaginally and how much more mobile they were.





Good luck with with your L%26amp;D!!!!
Reply:I've heard horror stories from c-sections as well as vaginal births....


If you have a small frame and a 9 lb baby...do yourself a favor a have a c-section.... because you're more likely to tear and may need stitches...the baby can get stuck in the canal...


if your doctor recommends it he knows better....





good luck!!!!
Reply:I would suggest, from experience, to do it vaginally if you can. I promise you it's much better. Sure, a c-section is faster, and you don't have to work and push, but the pain and recovery is so much worse afterwards!!! When I had my son naturally, I pushed for 20 min (first baby!) and was a little sore, but was back to normal in a day. When I had my daughter c-section, I was sore, unable to lift my son (and barely my daughter) and it took a few weeks to recover. If you doctor says you NEED a c-section, trust them. But if you don't HAVE TO HAVE IT, dont' do it.
Reply:You will recover much faster from a vaginal delivery than a c-section for one thing, and a c-section is major surgery. If they think it is SAFE for you to try a vaginal...then I'd go that route first. But if the recommendation is c-section then follow your dr. orders, your hubby will just have to be a bigger help until you recover.





Good luck either way...safe delivery!!
Reply:i have had 1 c section and 6 induced deliveries. personally i prefer natural as it took me 6 wks to get over the c section, however if there is any chance of problems during labour i would def go for a planned c section worst thing must be to go thru hours of labour then have to have one. good luck
Reply:Both my children were born vaginally. My daughter weighed 8lbs 15 ozs and my son 10lbs 11ozs. I wasn't small and weighed 200lbs. I had an epidural with both and that helped with labor pains. You will heal faster with vaginal birth than with a c-section.





I think it's all up to you, but I would try to give birth vaginal and if there are complications then the doctor will advise you to have a c-section.





Good Luck!
Reply:Think of it this way: a woman's body was designed to give birth vaginally. A C-section is major abdominal surgery, even though people don't tend to think of them that way because they have become so common. You should only have the C-section if it is absolutely medically necessary.





And just because you are small does not mean that your hip bones are not set in such a way that you can accommodate a larger baby. A really small relative of mine had vaginal deliveries with both of her two kids, and they were both over 10 pounds. That might not be the case for you, your doctor should know, but you should always plan for vaginal if you can.
Reply:I had a c-section, never had a vaginal birth. But I had no problem with mine. I actually healed rather quick. I walked around as much as possible the day after just so I could start to heal faster, which ever you choose, good luck!
Reply:You doctor will look that their calendar and call the hospital and schedule the c-section. If you baby is a 9 pounder or higher, I would highly recommend having a Cesarean. Since in all likelihood you would labor for hours and not be able to push s/he out. I had 3 c-sections and for the most part had easy recoveries. Most important thing to remember post surgery is to not lift more than 15 lbs. So if you baby is large, nothing more than you baby in his/her carrier.





Take care and best of luck!!!
Reply:I've had 2 c-sections and it took me ages to recover from both! The first was an emergency and the 2nd was because the doc prefered to use the same method to avoid risks. I wouldn't wish them on my worst enemy.


The silly publicity c-sections get nowadays is sooo wrong . Too posh to push etc etc I wish I had had a vaginal birth I saw all my friends recover MUCH quicker than me!





The doctors were also waiting for a HUGE baby when my first was born - the rumour spread through the Greek hospital like wild fire - but she turned out to be 6.5lbs!!!


Good luck with whatever you choose.
Reply:Doctors told me through u/s that the baby is at least 10lb . My doctor decided to let me try have a natural delivery and if there were any complications to go for c-section. Ended up having a 8lb 8oz baby naturally.
Reply:I had an u/s at 38 weeks that said our baby was almost 11 lbs! I was scared silly! He came out and was only 8 lb 1 oz so the u/s isn't always accurate.





Me? I would never opt to have a c-section, if they had to do because of emergency, so be it but I would never choose it.





Good Luck!
Reply:If you can avoid the c/section, avoid it. I had two emergency c/sections and the recovery and pain afterwards was quite difficult. A c/section is never the easy way out, many women are quite misinformed thinking that it's less painful.


If by chance you end up needing an emergency c/section, by all means have it. The most important thing is that the little one arrives safely.





I wish you all the best.


C'MON - anybody understand why C'MON in the Vauxhall Astra advert?

I don't get it............ What are they talking about? C'MON, C'MON, C'MON

C'MON - anybody understand why C'MON in the Vauxhall Astra advert?
Cos if you buy one, it will break down loads and the engine usually wont start, so you sit there saying "C'MON, C'MON, C'MON". through gritted teeth.
Reply:I don't get it either. But it supposed to make something look cool in a I-don't-know-how sort of way so people will buy it.


I fail to understand how it sells cars but I wouldn't buy a vauxhall anyway.


Sometimes advertising works negatively and this one clearly does for me.
Reply:I don't know. I hate that advert.
Reply:dunno but its harrowing!!
Reply:no i dont understand and i dont understand why the made the corsa look so much like the astra! but hey my 2 year old son loves the advert x
Reply:thnk maybe they are trying to create their own 'wassup' and i don't understand it at all
Reply:I think the Corsa ad is just about the cleverest ad campaign that I have seen for a long time. Cool puppets on the town, it's great, it's memorable and it's working. The proof is that we're all writing about it !
Reply:dont understand sorry
Reply:I reckon its an advert they can syndicate to any European country without the cultural and language barriers making a massive difference, so it doesn't really have to make much sense..
Reply:please clear question and what u are like to say first you are self unclear then how i can reply pl dont waste yr time too
Reply:I don't really understand it either, the advert obviously doesn't work on you though cos it's actually advertising a Vauxhall Corsa - not Astra!
Reply:C'mon and buy one! or, C'mon, get a life and buy an Astra! etc, etc. - they think it's cool I guess. (Wonder who their advertising agents are?!). We have the same advert here in Turkey, even though only a minority speak English! Imagine how bewildered the Turkish public must be - they'll be walking around saying, 'C'mon' to all the English they meet! LOL
Reply:i don't understand it and i don't understand you!
Reply:Who knows ? But many people are talking about those adverts, so Vauxhall's profile is raised. And it doesn't matter if people hate the ads: if they are serious about buying a car then these ads have put Vauxhall at the front of their minds.
Reply:They started out on MTV and now seem to be branching out to other stuff, would'nt be surprised if they release a song next 'groan'
Reply:I hate that advert with a passion!!what is cmon all about??!!!
Reply:its telling people to c'mon and buy this car


i think at least
Reply:no and its really really annoying-it was bad enough on MTV without them invading everyother chanel


C Drive space problem?

How can i get back my C Driver's (Windows installed) space after uninstalling any software. i have keep tracking my C drive and found that whenever i uninstall any software which has been just installed, my C Drive doesn't get back it's previous space which it had b4 installing that software. that means somewhere in my computer something of that softwares is still remaining. is there any manual way to uninstall any software properly or is there any software that can help me to keep getting my original C drive space. i m using windows xp home, my RAM 1GB processor, Dual core 1.6 Ghz. system dell inspiro 6400 which has been bought 15th November, 2006. thanks.. NB: Amar System Restore turn off kora.





Message Edited by nealloy1981 on 05-26-2007 11:43 PM

C Drive space problem?
you should interring to PC as under dos language and copying any files and paste them either in other partions on current hard or to external hard and continue to re instaling a new OS
Reply:right click on your My computer icon


click "manage",


at the Computer Management console - choose disk management.


Right click on your drive c


click "properties"


Click disk "clean-up"





hope it helps
Reply:Try running scandisk, and then defrag your C drive.
Reply:download this program from this site. http://www.partition-recovery.com/ and install it then run it, it will show u waht u can recover.


Using fstream (Visual C++)?

//File C:\1.txt contains "123456"


ifstream in ("c:\\1.txt", ios_base::in);


char c;


//reading while next char won't be eof


while(in.peek()!=char_traits%26lt;char%26gt;::eo...


in %26gt;%26gt; c;


//after that c = 6


//now moving position to begin of file


in.seekg(0, ios_base::beg);


//and starting read again


for (int i=0;i%26lt;6;i++)


in %26gt;%26gt; c;





the problem is after in.seekg(0, ios_base::beg);


curent position remains on '6'. What's the problem,


can anyone help,

Using fstream (Visual C++)?
When you enter the second input loop, the fail bit is still set from when you hit EOF the first time. Because the fail bit is set, nothing is read and c still contains 6. After falling out of the while loop, call in.clear() to clear the fail bit. Then it will work.

parts of a flower

C++ and OOP?

I already know C programming. I want to learn Data structures and Algorithms using C++.


So how should i start to learn?


Find two difference courses for C++ and Data Struc and algo?


OR first learn C++ well ??

C++ and OOP?
I suggest you learn C++ first. The simple reason is you can write C now, then learn how class and object work in C++, how to design class in C++, how public and private work. C++ is not difficult, you can understand it shortly if you have a lot of flying hour in C and know which part of C++ to focus at the first time.





I suggest you don't learn C++ deeply in theory but you should learn in wide. That's mean learn how to design and how to work with class. At the first time you touch C++. Don't interest in OOP theory much. Try to understand class and object, overloading, constructor and destructor.





The topics of C++ you should keep them out at the first time you learn C++ are:


- What is the meaning of Inheritance?


- What is the meaning of each OOP words such as Polymorphism etc…


- All meaning of OOP word.





You can understand C++ and how class and object work by writing and applying your C++ class in real example. My students, I found many of them read many books of C++ and requested me to give an example of Polymorphism at the first period they learned C++.





After that, learn Data Structure, class in C++ is more flexibility than using "struct" in C. You can have inside procedure using private and make functions to be public for to be called by class user.





My C++ learning style starts from “struct” and the change to “class”, then learn how public/protect work and then constructor and destructor and so on…





By the way, my solution may not be applied to everyone who learns C++. But it is just suggestion from my teaching experience.
Reply:The best way to learn is to buy a book. Check out your local book store.


If you want to learn specific programming topics, you should Google search for it.


There might be some online tutorials and sample code.


You also need to learn about the operating system that you're programming for. Microsoft and Borland offer an OOP framework with their free Windows compilers, but you can also program Windows with C/C++ without OOP (the better choice).
Reply:Learn C++ first. C++ is a lot different from C.
Reply:I don't quite understand your question, what else is there to a program than the data structures and algorithms. If you learn strong C++ you will learn lots of data structures and algotithms. I suggest learning C++ and then the data structures and algorithms.





I highly reccomend "C++ How to Program" by Deitel and Deitel


Passing strings in C?

I'm pretty new to C and need help with strings. I also have no idea about the differences between C and C++, so please only help with info on C and not C++ or C#.





If I created a string in a function and want to pass it as a return value for the function to use in other functions, how can I do this without loosing the string when the function ends?





I know that when a function ends, everything that is local to it gets, for a better word, destroyed. If you can only return/pass the pointer to the string created in the function, when the function ends, won't the actual string be destroyed/reallocated and the pointer be essentially useless? How can I return the actual string/keep it for use in other functions?

Passing strings in C?
ok.... you have the basics right. so this is what you need to do





char * foo() {


int str_size = 6; //example size.


char * x = (char *) malloc(sizeof(char)*str_size);


sprintf(x, "%s", "hello");


return x;


}





the malloc is allocation memory from the heap. this will ensure that even when you exit the foo method, the location is not reclaimed. And you return the address to the same.


So you should be fine.
Reply:but don't forget to free() the pointer when you don't need it anymore, otherwise you will have a memory leak.


If points A, B, and C lie on a coordinate line and points A and B have coordinates 6 and 12 respectively, then

1.If points A, B, and C lie on a coordinate line and points A and B have coordinates 6 and 12 respectively, then which of the possible coordinates for point C satisfy(ies) d(A, C) %26lt; d(B, C)?





2.Which of the following statements is/are true for all real numbers a, b, and c for which the expressions are defined


a. (a+b) (a-c) = a^2 - bc


b. 3a^2+4b Divided by ac+3b = 3a+4 Divided by c+3


c. Both (a) and (b)


d. Neither (a) nor (b)

If points A, B, and C lie on a coordinate line and points A and B have coordinates 6 and 12 respectively, then
1. A = 6


B = 12


d(A,C) = d(B,C) when C = 9 {the average of A %26amp; B}


to the left of A, d(B,C) is always greater than d(A,C).


to the right of B, d(B,C) is always less than d(A,C)





thus d(A,C) %26lt; d(B,C) when C %26lt; 9.








2. d. Neither (a) nor (b) is always true.








§
Reply:[1] the possible coordinates for C would be %26lt;6


[2] (d)


~~


C++ help please!!?

This is not my homework..I have to know how to do this inorder to do my project next week..Just trying to get a head start!!





Write a function


void sort3(int%26amp; a, int%26amp; b, int%26amp; c) {


}


that sorts three numbers in ascending order. For example,





int a=8;


int b=10;


int c=4;


sort3(a,b,c);


printf(‘‘small: \%d, middle: \%d, large: \%d\n’’,a,b,c);


should have output:


smallest: 4, middle: 8, largest: 10

C++ help please!!?
Assume you want the "sort" function to do the sorting and not just print the info. This routine will perform a simple sort and can be expanded very easily.





void sort(int a, int b, int c) {





int mynums[3], x, y, tmp;


mynums[0]=a;


mynums[1]=b;


mynums[2]=c;





for (x=0; x%26lt;2; x++) {


for (y=x+1; y%26lt;3; y++) {


if (mynums[x] %26gt; mynums[y]) {


tmp=mynums[x];


mynums[x]=mynums[y];


mynums[y]=tmp;


}


}


}


a=mynums[0];


b=mynums[1];


c=mynums[2];


}
Reply:I don't know if this is what your instructor had in mind (probably he wanted you to implement the sorting yourself). But I will post my solution anyway. It uses the STL sort algorithm.





#include %26lt;algorithm%26gt;


using namespace std;





void sort3(int %26amp;a, int %26amp;b, int %26amp;c) {


int num[3];





num[0] = a;


num[1] = b;


num[2] = c;





sort(%26amp;num[0], %26amp;num[3]);





a = num[0];


b = num[1];


c = num[2];


}





int main() {


int a = 4, b = 10, c = 6;





sort3(a, b, c);


}
Reply:void sort3(int a, int b, int c)


{





IF (a %26lt; b) THEN


IF (a %26lt; c) THEN


IF (b %26lt; c) THEN


printf( a, b, c)


ELSE


printf( a, c, b)


END IF


ELSE


printf(c, a, b)


END IF


ELSE


IF (b %26lt; c) THEN


IF (a %26lt; c) THEN


printf( b, a, c)


ELSE


printf( b, c, a)


END IF


ELSE


printf(c, b, a)


END IF


END IF





}


int a=8;


int b=10;


int c=4;


sort3(a,b,c);








hope this will solve your problem, if you still have any problem you can reach me at asim_developer@yahoo.com


or i will be online at asimhero2003@yahoo.com





Thanks


Asim

mothers day flowers

C++ Help - Triangle problem?

Hey. I'm trying to do a program for school, and I'm haveing for loop problems. I'm trying to make a triangle that looks like this...





AC


A C


A C


A C


ABBB


something like that. Anyway, I basically need to add another space between the A and C in each new row. I was thinking if I did something like





(for int j=0, j%26lt;N, j++)


{


cout %26lt;%26lt; var1 NUMSPACES var3 %26lt;%26lt; endl;


}


Is there a way I can make a variable represent spaces? Like, NUMSPACES = 0, and have the code know that 0 is the number of spaces? so when I change it to NUMSPACE = 2, it knows that I want two spaces?

C++ Help - Triangle problem?
Not sure if anybody should be answering this, but I'll give some useful pointers.





First, you could do something like the following to write out one space:


cout %26lt;%26lt; var1;


cout %26lt;%26lt; ' ';


cout %26lt;%26lt; var2;


cout %26lt;%26lt; endl;





Now just find a why to execute the line with the spaces the number of times you need it. (hint: this exercise is meant to teach you about nested loops)





For extra points, 'NUMSPACES' could be a variable, but maybe not of the number of spaces. Rather, think of what other types a variable has.





Oh and in python one could indeed do something like " "*3 and get 3 spaces. But that's just a shorthand.
Reply:Perhaps this is overcomplicating things? Just change the value for baseSize to make it bigger/smaller.





void outLine(char, char, char, int);


int baseSize=4;


int main(int argc, char* argv[]) {


for (int n=0; n%26lt;baseSize; n++) {


outLine('A',' ','B',n);


}


outLine('A','B','B',baseSize);


return 0;


}





void outLine(char bChar, char fChar, char eChar, int baseWide) {


cout %26lt;%26lt; bChar;


for (int j=0; j%26lt;=baseWide; j++) {


cout %26lt;%26lt; fChar;


}


cout %26lt;%26lt; eChar %26lt;%26lt; endl;


}


What does the abbreviation c/c stands for in such a sentence:?

"250 mm insulation, steel carcase c/c 600 mm"





or





"50mm steel battens c/c 450 mm"





what the .h...... c/c stands for?

What does the abbreviation c/c stands for in such a sentence:?
It stands for Cubic Centimeter





Here are a few other cc acronyms for you as well














Acronym Definition


CC Carbon Copy (secondary email addressee)


CC Closed Captioning


CC Country Club


CC Courtesy Copy (email; for those who never used carbon paper)


CC Credit Card


CC C Compiler


CC C.C. Sabathia (baseball player)


CC Cable Channel


CC Cable Connection


CC Cache Coherency


CC Cadet Commander


CC Calculated Cost (pension benefit calculations)


CC Call Center


CC Call Collect


CC Call Connected (ITU-T Rec I 451)


CC Call Content


CC Call Control


CC Calling Card


CC Calvin College


CC Camera Copy


CC Camp Coordinator


CC Camry Club


CC Canadian Club (whiskey)


CC Canarian Coalition (Spain)


CC Cancer Care


CC Cannibal Corpse (band)


CC Cannon Companion (Shadowrun Sourcebook)


CC Canterbury College (Gold Coast, Australia)


CC Cape Cod


CC Capital Contribution


CC Capsule Corporation (Dragon Ball)


CC Captive Carry


CC Car Club


CC Carabinieri (Italian Military Police)


CC Carbon Composites


CC Carbon-Carbon


CC Card Cage


CC Card Column


CC CardCaptors


CC Cardiac Catheterization


CC Career Counselor


CC Caring Connection


CC Carl Czerny (classical composer)


CC Carlton Cole (soccer player)


CC Carnivorous Carnival (Lemony Snicket)


CC Carpet Cleaning


CC Carriage Control


CC Carrier Control (modem information)


CC Carrier Current


CC Carson City, Nevada (mint mark on some old silver dollars)


CC Case Closed


CC Cash Card


CC Cash Control


CC Cash Credit


CC Cash or Check


CC Cashier's Check


CC Catalytic Converter


CC Cataract, Total Congenital


CC Catholic Central High School (Redford, MI)


CC Catholic Charities


CC Causa Cognita (Latin: Known Cause; Codices and Manuscripts)


CC Cause Category


CC Cedarville College


CC Cédula de Ciudadanía (Colombia social securty equivalent)


CC Center Conductor


CC Center Console


CC Centimeters Cubed


CC Central Committee


CC Central Component


CC Central Computer


CC Central Control


CC Centro Comercial (Spanish)


CC Century Indicator


CC Certification Cube


CC Cesar Chavez (union activist)


CC Chaco (Argentina Province, airline code)


CC Chain Carrier (surveying)


CC Chain Coding


CC Challenger Commission (America's Cup)


CC Chamber of Commerce


CC Change Control


CC Change of Course


CC Channel Command


CC Channel Controller


CC Chaos Castle (gaming)


CC Chaotic Coding


CC Character Code (ITU-T)


CC Charge Control


CC Charged Current


CC Charges Collect (shipping)


CC Cheat City (gaming website)


CC Cheat Codes


CC Cheddar Cheese


CC Cheech and Chong (comedy duo)


CC Chefs Collaborative


CC Chemical Control


CC Chemical Corps


CC Cheshire Cat (Blink 182 album)


CC Chet Chad (radio stations, British Columbia)


CC Chevaliers de Colomb


CC Chevy Chase (Maryland)


CC Chicago Cubs


CC Chief Clerk


CC Chief Complaint


CC Chief Counsel


CC Chocolate Chips


CC Cholangiocarcinoma


CC Christian Church


CC Christian Coalition


CC Chronic Cough


CC Chrono Cross (video game)


CC Chrono Crusade (anime)


CC Circuit City, Inc.


CC Circuit Client (digital networks)


CC Cirrocumulus (cloud formation)


CC City Confidential (TV show)


CC City Council


CC Civic Centre (Singapore)


CC Civil Commotions


CC Claimant Code


CC Class Clown (band)


CC Class Commander (US military)


CC Clear Channel


CC Clearcut


CC Clifford Chance LLP (UK law firm)


CC Climatic Change


CC Clinical Center (NIH)


CC Clinical Chemistry


CC Clock Crew (Flash artists group)


CC Close Captioned


CC Close Combat


CC Close-Coupled


CC Closed Circuit


CC Closed Corporation (South Africa)


CC Closed-Captioned


CC Closing Code


CC Closing Coil


CC Cloud Cover


CC Clow Card (Japanese Animé)


CC ClubCappo (Cappuccino Owners Club)


CC Cluster Controller


CC Coal Chamber (band)


CC Coal Chamber (rock band)


CC Coalicion Canaria


CC Coarse Control


CC Coca Cola


CC Coco Chanel


CC Coco Crisp (baseball player)


CC Cocos (Keeling) Islands (country code %26amp; Top Level Domain)


CC Code Civil (French: civil code)


CC Code Control


CC Code of Conduct


CC Codice Civile (Italian: civil code)


CC Código Civil (Brazilian Civil Code)


CC Código Civil (Civil Code, Spain)


CC Código Civil (Civil Code; Portugal)


CC Cogswell Cogs


CC Coherent Combining


CC Coin Collect


CC Cold Cathode (UV emitting tubes)


CC Cold Chemical


CC Collect Call


CC College Center


CC College Council


CC Colon Cancer


CC Colon Classification


CC Color Code (Sprint)


CC Color Compensating


CC Colorado College (Colorado Springs, CO)


CC Columbia College (part of Columbia University, New York)


CC Columbus Crew (Columbus, Ohio major league soccer team)


CC Combat Center


CC Combat Challenge


CC Combat Clothing


CC Combat Coded


CC Combat Command


CC Combat Control


CC Combatant Commander


CC Combatant Craft Crewmember Qualified (USN)


CC Combined Cycle


CC Comedy Central (cable channel)


CC Command %26amp; Conquer (video game)


CC Command Caller (phone notification system)


CC Command Center


CC Command Chief


CC Command Code


CC Command Controller


CC Command Ship


CC Commander


CC Commander's Call (PHS-1 DMAT monthly meeting)


CC Comment Code


CC Commercial (Top-Level Domain introduced in 2000)


CC Commercial Continuity


CC Committee Chair


CC Common Carrier


CC Common Cause


CC Common Client


CC Common Code


CC Common Cold


CC Common Collector (transistors)


CC Common Control


CC Common Controller


CC Common Controller(s)


CC Common Criteria


CC Commonwealth Coalition


CC Communications Center


CC Communications Central


CC Communications Closet


CC Communications Control


CC Communications Coordinator


CC Community Center


CC Community Chest


CC Community Club


CC Community College


CC Companion of the Order of Canada


CC Company Commander


CC Compassionate Conservatism (George W. Bush campaign)


CC Competence Center


CC Competition Commission


CC Competitive Category


CC Compilation Control


CC Complaints Committee


CC Complications or Comorbidities (diagnosis related group descriptions)


CC Component Check


CC component command (NATO) (US DoD)


CC Component Cooling


CC Component Coordinator


CC Composite Clock (SONET)


CC Composite Command


CC Composite Component


CC Compression Cache


CC Compression Chamber


CC Computacenter (European IT services company)


CC Computational Component


CC Computer Center


CC Computer Community


CC Computer Controller


CC Computer Crime (insurance)


CC Computing Center


CC COMSEC Custodian


CC Concealed Conduction


CC Conclave (online gaming community)


CC Concord Coalition


CC Concurrent Copy (disk storage management)


CC Condition Code


CC Conference Call


CC Configuration Control


CC Congestion Controlled (IPV6)


CC Connecticut College (New London, CT)


CC Connection Confirm


CC Conseil des Communes (French: Council of European Municipalities)


CC Constant Current


CC Constituent Code


CC Construction Component


CC Constructive Criticism


CC Consumer Confidence


CC Contact Center


CC Contagious Conjunctivitis


CC Contaminant Category (land disposal restrictions)


CC Continental Counsellors (Institution of the Baha'i Faith)


CC Continuity Cell (ATMF)


CC Continuity-Check (ITU-T)


CC Continuous Casting


CC Conto Corrente (Italian: bank deposit)


CC Contracted Care


CC Control Center


CC Control Channel


CC Control Computer


CC Control Console


CC Control Language


CC Controlled Circulation


CC Contrucción Comparativa (Spanish grammar)


CC Convolution Coding


CC Convoy Commander


CC Convoy Commodore


CC Coordination Center


CC Coordinator Council (Maquis Forces International)


CC Copie Conforme


CC Copper Citrate


CC Copy Cat


CC Core Competency


CC Core Component


CC Corner Card (philately)


CC Cornwall College (UK)


CC Corpo Dei Carabinieri


CC Corporate Center (Sprint)


CC Corps de Cadets


CC Corpse Camping (gaming)


CC Corrado Conforti


CC Correctional Custody


CC Corrente Continua (Spanish: Direct Current)


CC Corrosion Coupon


CC Corte de Constitucionalidad (Guatemala Central America)


CC Cost Center


CC Cost Control


CC Cost Cutting


CC Cotton Candy


CC Country Code


CC County Commissioner


CC County Coordinator


CC County Council


CC Coupe Cabriolet (Peugeot 206 CC model)


CC Coupled Cavity


CC Coupled Channel


CC Course Change


CC Course Chart


CC Covenant Christian (High School)


CC Cow and Calf (animal husbandry)


CC Crack Cocaine


CC Crane Commander


CC Crazy Chicken


CC Crazy Cool


CC Creative Commons


CC Creatures Community (game series)


CC Crew Certified (NASA)


CC Crew Chief


CC Crew Compartment (NASA)


CC Crimson Chin (Fairly Odd Parents TV show)


CC Cris Carter (NFL player)


CC Criteria Check


CC Critical Care


CC Critical Characteristic (automotive)


CC Cross Connector


CC Cross Country


CC Cross-Connect


CC Crosstalk Coupler


CC Crowd Control (gaming)


CC Crown Colony


CC Cruise Control


CC Cruiser


CC Cryogenic Calorimeter


CC Crystal Cathedral (Robert Schuller Center)


CC Crystal Controlled


CC Cubic Capacity


CC Cue Cap


CC Cult Classic (movie slang)


CC *** Correctione (Latin: With Correction; ophthalmology)


CC Curb Cock (construction)


CC Cursor Control


CC Curtice Cubic (MESFET model)


CC Cushion Craft


CC Custom Charges


CC Custom Combo (gaming)


CC Customer Care


CC Customer Contacts


CC Customs Clearance


CC Cut Cancel (philately)


CC Cut Corner


CC Cyber Cafe


CC Cyber Chat (RPG chat server)


CC Cybercity (Danish ISP)


CC Cybercom (computer company)


CC Cyclometric Complexity


cC Centicoulomb (electrical unit)


cc Cross-Class (Dungeons %26amp; Dragons gaming)
Reply:No, no in this context c/c means "centres" or "centers" if you like US spelling.
Reply:c/c stands for Cubic Centimeters. mm stands for Mili-meters.


C++, Visual Studio and Web Design?

Do I need to learn C# or VB to develop with the .NET Framework ? If not, is it better with C# or VB ?





The reason I ask is because by learning C++ I can apply that knowledge to things outside the .NET framework. However, if I choose C# Im stuck with .NET.





Your help and insights are appreciated.

C++, Visual Studio and Web Design?
I would suggest C# or vb. The reason that I suggest this that all good programmers should be able to use the best tool for to solve any problem. Like perl if you have to parse a bunch of text. vb or c# if you need a quick data driven website. C++ if you have to do any rigorous network programming. C++ and Assembly for intesive graphics and real time programming.





Good programmers have to adapt to the problem that they are solving.
Reply:You may use C++.NET. There's even a free (for a limited time) version with optimized compiler and a complete IDE: Visual C++ Express.


It is _not true_ that the only way to use C++.NET in Web applications would be CGI, and it is _not true_ that it is slower.


You should know that you can effectively create ASP.NET Web Pages with C++.NET (see the link below).


Let me quote MS' George Shepherd:


"The final, and perhaps most compelling reason to use Managed C++, is that the Microsoft C++ compiler is optimized. It's the most evolved and best-tuned compiler available for generating code to run under the CLR."
Reply:C++ uses the CGI (Common Gateway Interface) to interact with the web, which can create overhead and sluggishness on dynamic webpages. C# (in my opinion) would be the better choice between C# and VB, though as long as you have access to .NET I would recommend using ASP.NET (Active Server Pages), and reserve C# for back-end server-only processing.





Bottom line: C++ will be slightly slower than your other two alternatives.


C++ computer programming question 2.please help!?

Write a function with int* argument a and int arguments length and x which returns the number of elements x in the memory block a.


The following sample tasks may help:





sample task 1


write a function with a const char* arguments, an int argument length and a character argument c,which which returns the number of characters c in s








int count(const char* s, int length, char c)


{


int i, cnt;


for(i=0, cnt=0; i%26lt; length; ++i)


if(*(s + 1) == c)


++cnt;


return cnt;


}








sample task 2:


write a function with int* argument a and int argument length which reurns the maximum element in the memory block a





int max_element(int* a, int length)


{


int i, max;


for (max = *a, i=1; i%26lt;length; ++1)


if(max%26lt; *(a+i))


max= *(a+i);


return max;


}

C++ computer programming question 2.please help!?
int countIt(int* a, int length, int x)


{


int finds =0;


int i;


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


if(x == *a) {


finds++;


}


return finds;


}

song downloads

Cannot switch to C: drive from c:\documents and settings in command prompt in Windows Xp pro,?

Hi





I have this weird problem come up.I cannot switch to root directory c: in command prompt on windows xp pro,I can switch to other drives without any problem but cannot switch to c: from command prompt.When I open cmd its default prompt is c:\documents and settings and I cannot swtich to C: I have tried cd c: and cd\ still no luck.





Kindly need advice from someone who had this problem or who knows about such problems.





Thanks

Cannot switch to C: drive from c:\documents and settings in command prompt in Windows Xp pro,?
You probably don't have administrative rights, so your computer won't let you get into a directory you don't have rights to.


Anyone had a c section due to narrow pelvis?

My doctor told me today there is an 80% chance that I will have a c section because my pelvis is very narrow and the baby's size is bigger than it is supposed to be. She does not like to go for c section right away till it's her last resort so she said she will let me try to deliver naturally first and if it doesn't work she will perform a c section. I'm not really scared of a c section, I think it will be easier for me anyway, but I'd like to know if anyone has been told the same thing and how did it turn out? Did you end up with a c section or did u give birth naturally? I dunno but I have a feeling that n my case a c section will be safer for the baby.

Anyone had a c section due to narrow pelvis?
i did!! i tried pushing for two hours but she just would not crown, or come down anymore, so they did a c section and she was 8 and half pounds, so i the doctor said my pelvis must have not been big enough for her to go through. Look i Csections sounds scary but it's not that bad, if it's what you got to do, then just relax and you will be OK, they pain is managable and you will be feel better after a week or so. You don't wanna force the baby to come out with forceps and end up tearing up your vagina and brusing the baby' s head, so do what is safest for the baby when the time comes
Reply:Your doctor is correct.
Reply:I had a narrow pelvic. And when I gave birth with my first he cracked my inner pelvic bone. And yes it hurt.


And they should of done the C-section. But I had a doctor not know me that well in with me. My first doctor was very mad they did not contact her.


Long story short. Have a exam on your next appt. have them rate you on your spread. if you have not had any more softening. ask about going for the C-section. Cracking your pelvic sucks. i am now 40 and have pain in that spot when it rains.


I feel like one of those old ladies that says oh Margret it is going to rain i can feel it in my knees.!,





I had my other two vaginal and it was much easier and I had healed up well from my first son.
Reply:Unless you have previously fractured your pelvis or had the disease Rickets your pelvis is fine!





I had a c-section and found out afterwards in my operative report that they said it was due to CPD, cephalopelvic disproportion, aka the baby is to big and my pelvis is no good. I did some research and found out that true CPD is rare and only caused by the 2 reasons I listed above, fracture or disease!





OB's are pushing c-sections because they are easier to schedule and the hospital makes more money from them. You don't have to take my word for it either here is some info that you might be suprised to know:





http://www.youtube.com/watch?v=R3WWNKurK...





http://www.youtube.com/watch?v=roFVkDV45...





http://ican-online.net/resources/white_p...





Other books to check out would be:


The Thinking Woman's Guide to a Better Birth by Henci Goer


%26amp; or Obstetric Myth Versus Research Reality by Henci Goer





Either way do NOT let your provider/doctor scare you into unnecessary surgery.





I am planning a homebirth (after cesarean) this time around, and both my midwife and new OB are supportive of a vaginal delivery despite the original diagnosis of CPD...[Boy I can't wait to show everyone that my first doctor didn't know what she was talking about.]





IT IS A MYTH THAT C-SECTIONS ARE EASIER...maybe the delivery part but recovery is way worse than labor!!! I was laid up for weeks afterward...and I wasn't allowed to pick up my baby he had to be handed to me. My husband couldn't stay with me at night and I was in the hospital for 4 days. Since my husband couldn't stay the baby had to saty in the nursury, since I couldn't pick him up! I wasn't allowed to eat for 4 days. And I wasn't the first one to hold him after he was born, infact I passed out just after birth. He was 2 hours old when I saw him.





The Dr. is just being a bully! If you don't believe me, Check out ICAN: International Cesarean Awareness Network, and their online group through Yahoo! So many people are misled and they think the doctor must know everything,,, Get several opinions from all sides! I urge you.








Also being on your back actually narrows your pelvic opening. By a lot actually... But that is the way dr.'s do it, because it is easier for them...I am not making this stuff up...I swear.





"Lying on your back collapses your pelvis, distorting its natural opening and decreases the diameter by as much as an inch." Birthin From Within by Pam England and Rob Horowitz...





When you consider that an inch is almost 2 cm, that is alot!!!
Reply:That happened to my mom when she was pregnant with me. Her pelvis was too narrow and I was too big for a natural birth, so they went ahead and delivered by C-section.





Best wishes with the remainder of your pregnancy and delivery!





Take care :)
Reply:Yes, but that was 29 years ago. I had 15 hours of labor and never dilated past 1. He went into distress and they quickly did a c section. He now has a degree in marketing from Penn State and doing great in his career. I love that c section scar!!
Reply:My sister inlaw has a small pelvis and she was induced 2 weeks early so the baby didnt get to big . she gave birth by vagina to a healthy 8pound 2 baby girl no problems . I would look into being induced early to try to prevent a c section


Difference between c, c++ & c+++?

what is the difference between c, c++ %26amp; c+++?





thank's in advance...

Difference between c, c++ %26amp; c+++?
C = an older, procedural programming language


C++ = a newer, Object-Oriented language


C+++ = a typo for C++ :-)





Almost everything you can do with C you can also do with C++. A C++ compiler can usually also compile and understand C programs, causing misconception by a lot of people that C++ is very similar to C, which is totally incorrect.





I've seen many resumes / CV's where people put C and C++ together as 'C / C++' (looks familiar?) in their skills list, and 99% of the time these people actually write C programs with a C++ editor and compiler. And if someone tells you: 'If you can program in C++, you can also program in C' or vice versa, you can be certain that this person is an expert in neither. The truth is, C++ is not similar to C more than it is similar to, say, Java or C#.





C++, being object oriented, is marginally slower compared to C, but the code is easier to design and maintain.
Reply:c is the original. it is touted for its ability in low level programming. (hardware level)





c++ is the offshoot. mainly used for object oriented programming. considered a higher level language than c.





c# (sea sharpe). based on c++. used for .netcentric programming.





good luck!
Reply:There's no such thing as c+++. At least I never heard of it. I have heard of B, C, C++, C#, D, and F#. Gee, aren't programmers creative. Ok, C was originally developed by Mr. Ritchie at Bell Labs for programming the UNIX operating system and applications. It is a structured based programming language consisting of mostly symbols and contains only functions. It supports the use pointers and structures. C++ is a superset of C, which means everything you can do in C, you can do in C++. C++ also add additional functionality and improvements, such as support for object-oriented programming through the use of classes supporting mulitiple inheritance.


Who is responsible for a/c repairs?

I signed a bussiness lease. Regarding a/c says :" landlord is responsible for a/c maintanence in working conditions." Before I move to the location some one was working on the a/c . Landlord came to the store to check if a/c was working properly. The weather was cold so I could not tell the difference with a/c on or off he tested for less than a minute, he said it was ok. But he told me the timer was not working but that did not matter.


In May the weather was hot so turn on a/c did not work. I called landlord and someone fixed. After this,a got a letter from landlord that says :from now on you'll be responsible for any a/c repairs.


Is this accurate ? The land lord wants me to aknowlage this but I am confusue because what it says in the lease contract, This is an old building and I am assuming it is an old a/c unit I can not check it out because there is no acces to roof.Am I responsible for repairs . Thank you for any advice

Who is responsible for a/c repairs?
If the lease says the landlord is responsible for the repairs, then HE is responsible, not you. You should remind him of the lease. If he still wants you to pay for repairs, get a lawyer. If he don't want to be responsible for the repairs, he has to make a new lease saying that he is not responsible for the repairs.
Reply:Your lease controls regarding repairs.
Reply:Your best bet would be to consult an attorney. Have them read the lease and explain exactly what the landlord is responsible for.

easter cards

Trying so hard to get prego!!!! =(?

My husband and I have been trying to concieve for about 7 months now and no luck. I have irregular periods so i dont exactly know when i ovulate and i tried a kit but my doc. told me to just have lots of sex and dont think about it so much b.c the stress could make it so it was harder to get preg. The kit just frustrated me so i stop doing that and i just dont know what to do!!


My questions:


How long does it take the average couple to concieve?


Do u think i have any luck at all in get pregnant?!? ( i just feel hopeless and want to give up!) =(


Is there anything i could do to help me to get pregnant without having to take any pills or anything like that?


Any other suggestions on helping me with getting pregnant w/out getting any kits or anything like that b.c they frustrate me!! I would really appreciate it..


Thanks =) =)!!!

Trying so hard to get prego!!!! =(?
7 months is not long at all for TTC (especially if you have irregular periods).





If you want to maximize your chances, but not want to deal with medications, try reading the book "Taking Charge of Your Fertility". It will teach you how to read the fertility signs your own body provides to let you know when the most optimum time to do the baby dance is. It's also just plain a wealth of information every woman (and man) should know.
Reply:Hey! I am in the SAME boat as you. I have been off b.c for about a year now. My husband and I have been trying for a baby for just as long. We are geting very frustrated as the same as you. Dont give up! Have fun. It will come in time


some info other people told me





1. it usually takes up to a year to get pregos.





2.If you have irrigular periods then try metfoman. It helps regulate period and starts ovulation.





Relax sweetie. I know its hard. good luck!
Reply:my husband and i have been ttc for 15 months. and i have irregular periods. but i got on Provera.. go to your doc..
Reply:Hi...


I am on the same boat as you....


I have been trying for about a year now, And i just started tracking my periods and when i am ovulating, Before i was irregular then in time i be came regular, But still no luck,


So i started this ovulation chart and it told me when i would be ovulating, I started that last month, and about 2 weeks no i started taking Pernatal Pills, I heard it could help you conceive, and drink lots of water, I think my problem was night drink water, I use to drink alot of Ice tea, and it wasn't decaf and i had coffee too. So i quit the coffee and just drank tea nothing but tea!!!! then i read drinking water and help sperm reach to the egg, So i have been drinking water allot. and taking prenatal pills, I am not say the pills will make you have a baby just help the process that's all....Try to relaxes...





And after you period is done try and have sex with your husband.....Since you don't know when you period comes. But just have sex every other day if you want, Just your husband can build up sperm.








I hope this help you Lil bit, I have been reading allot about pills and when trying to have baby's I know its hard. But hang in there, You Lil one will come =)





And hopefully mine will come SOON =)





Babyy Dust to you and you husband And Mee too =)
Reply:i can relate completely. we have sex every other day starting very early in my cycle b/c my naturopath believes i am ovulating early and i have a very short cycle. those ovulation predictor sticks are a real pain in the butt b/c if you miss that LH surge, you could very well waste an entire month supply of sticks.





once your cycle becomes regular, i think your odds of getting pregnant will increase significantly. do you have a decent ob/gyn? if not, go see someone else. are you charting your waking basal body temperature? it's really easy. buy a basal body thermometer and chart the waking temp at a website like fertilityfriend.com





the temps will give you insight into your cycle length and you will see patterns that indicate ovulation. the trick is to have a fresh batch of sperm in the vicinity of the soon-to-be-released egg.





my naturopath has me on a few fixes, so i am patiently trying to wait for my body to adjust. at the same time, i'm still TTC and each month. it's been over a year and i've had 2 early miscarriages.





don't give up. it is a very stressful process, but i promise you that once your cycles are regular, your odds of TTC will increase.


Does a dad have to right to take a sons ipod if the son worked his butt off to get because of bad grades?

They weren't even that bad like its just a A C in English and my terms in the 2nd semester are pretty good except in Math which is like in the C's but im trying to get better and he doesn't think i am. Also, music is like my life and for him to take away like crushed me soooooo i asked him back for it and he said no which pisses me off

Does a dad have to right to take a sons ipod if the son worked his butt off to get because of bad grades?
If you paid for it yourself with money that you earned from a part time job then I would say no. If he gave it to you as a reward for working your butt off at something then yes.


C++ for a vb.net geek?

Dear all, i am a vb.net hardcore programmer but i've never used any c-like languages (JScript, Java, c, c# ...etc) now i am looking forward to learning c++. Just point me to the right book to start with. Regards

C++ for a vb.net geek?
This is the standard answer: C Programming Language, 2nd Ed by by Brian W. Kernighan , Dennis M. Ritchie.


I read this book and I can recommend it.


If A,B,C are the angles of a triangle, then the value of 1 - (sin^2 (A/2) + sin^2 (B/2) + sin^2 (C/2)) is ..?

A) 2 sin(A) sin(B) sin(C);


B) 2 sin(A/2) sin(B/2) sin(C/2);


C) 4 sin(A/2) sin(B/2) sin(C/2);


D) 4 sin(A) sin(B) sin(C);


Kindly explain your answer...

If A,B,C are the angles of a triangle, then the value of 1 - (sin^2 (A/2) + sin^2 (B/2) + sin^2 (C/2)) is ..?
1 - (sin^2 (A/2) + sin^2 (B/2) + sin^2 (C/2))


= 1 - 1/2(2sin^2 (A/2) + 2sin^2 (B/2) + 2sin^2 (C/2))


= 1 - 1/2(1- cos A + 1- cos B + 1- cos C)


= 1/2(cos A + cos B + cos C - 1)


= 1/2(2 cos(A+B)/2 cos(A-B)/2 - 2 sin^2 (C/2))


= cos(A+B)/2 cos(A-B)/2 - cos^2 ((A+B)/2)


= cos(A+B)/2 [cos(A-B)/2 - cos(A+B)/2]


= cos(A+B)/2 * 2 * sin A/2 * sin B/2


= 2 sin A/2 sin B/2 sin C/2;


Ans B.
Reply:Try some possibilities:





1) Let A=30, B=60, C=90. Then by the half angle formula, we get that





sin^2(30/2) = [1 - cos(30)]/2 = 1/2 - sqrt(3)/4





Also sin^2(60/2) = 1/4 and sin^2(90/2) = 1/2.





So the given expression equals sqrt(3)/4 - 1/4





Expression A) is 2 * 1/2 * sqrt(2)/2 = sqrt(2)/2





Epsression B) is 2 * sqrt(3)/2 * sqrt(2)/2 = sqrt(6)/2





Expression C) is sqrt(6), twice B).





Expression D) is sqrt(2), twice A).





None of these equals the value of the expression.

brenda song

C-section stories?

Due to a very high risk situation I have to go for a c-section this time around. I am not at all familiar with c-sections. I had my first baby vaginally and every woman in my family who has given birth did the same. For those of you who have had c-sections can you please respond to this: "Things I wish I had known before my c-section".





Thanks.

C-section stories?
first off don't beleive everything you read...


my first was born vaginally but my next pregnancy i had an emergency C section. It freaked me out a little but I ended up healing FASTER from the Csection than the vaginal birth!


I went home the day after my Csection!


I was so much more happy with my healing from the Csection that for my last pregnancy I CHOSE to have a CSEction instead of vaginal!





The only thing I was unhappy about was since it was an Emergency, they forgot to cath me.


By the end of the day (my son was born at 10am) I had to pee so bad and I couldn't go....


they ended up cathing me then and the nurse was NOT happy.... she got a nasty shower!


my bladder got stretched out (no permanant effects, thank God) and they said if I had not been cathed then (from complaining so much because I had to go and couldn't) that it might have damaged my bladder.


so my biggest advice is MAKE SURE they cath you beforehand so your bladder don't get overfilled.


That and DON'T WORRY SO MUCH.


everything will go okay....


pretty soon you will be holding your sweet little baby in your arms and after that it doesn't matter whether he or she came vaginally or by Csection.





Congrads Momma!!
Reply:i wish i had known that i was going to have one lol. but seriously i really wish i would have read about them. i wish i would have known the recovery (which is different for everyone). AND i wish i would have known that i would feel them pushing and pulling at my stomach. it didn't hurt it was just a lot of pressure and it was uncomfortable. it actually made me throw up (sorry tmi).


well good luck with your c-section and you baby


congrats
Reply:Well, I had an emergency C-Section, so I was not able to prepare for it. Basically they drug you up, some people are able to stay awake during the C-Section in my case I was not able to be awake at the time, I panicked when they numbed me, I could not feel myself breath, so I thought I was not breathing so they put me under. I woke up in another room that is how fast it went. It only took them about 30-40 minutes for the whole procedure. I was too drugged up to hold the baby so I was not able to hold her until the drugs wore off. They did a very good job at closing me up. I was able to leave the hospital the third day. I healed up quickly and lost a lot of weight. The incision is not noticeable; it's below the bikini line. If you want to recover fast, walk if you can right after the procedure. That is how I was able to recover so fast.
Reply:The recovery! It is harder to take care of the baby while your recovering. You cannot drive or go up and down steps which was a bit difficult because I have a 2 story house. You cannot lift the car seat with the baby in it. They say some women take up to 12 weeks to fully recover. Also, I threw up when they were closing the incision. I dont know why because I didnt feel it but when they were doing that it made me feel really nauseas.
Reply:With my first c section I was put to sleep, so when my second one was due I was so scared of having the epidural. I cried and got my self so upset that i think i made it worse then it really was. This time I am scared of it as well because I imagine it being so horrable, However I am going to try to stay calmer and I do know that if it does really hurt it just hurts for a sec and the pain is gone and out comes baby.
Reply:wow, I had 1st naturally...ouch...next 2 c-sections...easy peasy!!! zero pain, stayed totally with it during the birth...heard all the conversations, joking with docs and nurses....recovery just a bit longer, but no vaginal pain, sore tummy muscles....good pain meds.....10 days and pretty much all ok again....I think the biggest difference was for my hubby, lots of blood and he was not prepared for the visual of me cut open....he was a little spooked by it....but the vaginal birth was soooooo much more difficult, pushing, pain...omg....I would sign up for a c-section any day over that again!!!! I knew my 3rd would be c-section and I was so excited, I practically jumped on the table!!!! blessings to you and babe...
Reply:I knew I was having a c-section. I read up on the internet about it, and watched documentaries on them.





I was suprised how calm I was once they'd administered the spinal anesthetic, I was really nervous before that then I just went all mellow.





Oh and I didn't realise they'd numb my back before putting in the big spinal needle, I was grateful for that cause I've heard it can be quite a painful jab otherwise.


C-Section VS. natural birth?

I am a woman on my husband's acct. I am 36.5 weeks preg, yesterday I got an ultrasound %26amp; baby is breech. I am freaking out b/c I have a 10 1/2 month old right now, who weighs 28 pounds, and I know that I'm not going to be able to take care of her after a c-section. I also am freaking out b/c of the extra long hospital stay, and the fact that I don't know who is going to watch my other child. I am married, but he can't take more than a few days off due to it being a new job. I know what ppl. are going to say "ask a friend or a family member to help" and the only 1 we have is my mother in law, but she just had a complete hysterectomy a week ago. My question is for the women who've had c-sections, and have other kids. How did you manage after the surgery to care for your other kids? If you've had a nat. birth as well, which was easier to recover from? How long should I expect to be in the hospital, can I breastfeed, and how long until I can lift my other child? THANKS.

C-Section VS. natural birth?
Not only is every woman different, but every birth is different, and every C-section is different. C-sections have come very far in the past few years, and most women have very pleasant experiences, and recover quickly. My wife just had to have a C-section because our son (born February 9) had too big a head for the birth canal. She had no complications, and recovered very quickly from it. I'd still say hope the baby turns around, because you're always taking a chance with surgery.





The good news is that if you do have a C-section, you can schedule it. Try to schedule it for a Friday afternoon or evening. That way, your husband gets that first weekend to be at home, and then can take another couple of days - you'll get to maximize his time at home, while you're still recovering. By the time he goes back to work, you should be able to walk and take care of many of your 10.5-month-old's needs.
Reply:Hi


I have had a natural and 2 c-sections births natural first and followed by the c-sections. Natural birth was so much easier. I stayed in the hospital for 3 days with both c-sections. It took me about 2-3weeks to fully recover from my first c-section and on the second about a week I was back to work. Like you, my husband wasn't able to stay away from work too long , he understood the pain I was in and didn't expect to much out of me. I did what I could even though it may have taken me all day. You probably wont be able to lift your other child for at least about a week, you could probably hold the baby if you are sitting down. You will be able to breastfeed with no problems. Just remember to take it easy and don't try to be supermom like I tried, just makes the healing process for your major surgery that much longer to heal.





Good Luck!
Reply:NATURAL!!!!!!!
Reply:I may not be a woman but my daughters mother had to have a c section because our daughter was breech. She recovered pretty quickly from it I dont remeber it causing her much grief when it came to being active and she was only in the hospital for a couple days afterwards.
Reply:New job or not, your husband should be able to get maternity leave!
Reply:My sister was in your situation, except she had plenty of help after her c-section. You will not be able to lift your daughter for several weeks after a c-section, or you risk tearing the incision (ouch!)





Have the doctors recommended aversion (I think that's how you spell it). They put you in the hospital, and help change the baby's position.





Either way you'll need some help, but after natural child birth you can do it after 1-2 weeks on your own.





God bless!
Reply:my 1st baby was a vag birth, recovery was pretty easy but as you know labor is the hard part. 2nd and 3rd babies were c-sections. when i had my 3rd baby/c-section my kids were 7 and 2 so i did have a little help when hubby returned to work thanks to my oldest. recovery is harder but it didnt have me flat on my back or anything. i was in the hospital for 3 days and i was sore when i got home but i was able to do what i wanted, of cours ei wasnt up doind any deep cleaning but i felt fine to vaccuum (by the way i wanst supposed to be doing that, my after care nurse told me so but i really felt fine enough to do so) you will be fine, make up some dinners and freeze them so they are ready to just re-heat set up a comfy spot on the couch for you get baby gates up so you dont have to chase the older baby around, make sure the living room or whatever room you and the kids are in is completely child proofed so you wont be having to get up and take things from the older baby often. hubby can help get everything ready the night before he goes to work for you, get a big basket to keep dipaers and wipes and phone, remote, anything else you may need and premake bottles and put in fridge for you. if he does all the prep and makes sure everything you will need for the day is at your finger tips you will be fine.


c-sections are harder but if theres no complications im sure you will be able to get through the day without much problem. i know you said mothe rin law just had a surgery herself but if you dont go into labor for 3 more weeks she may atleast be able to come and stay with you and offer atleast a little help. good luck!!!
Reply:Dont start freaking out just yet. With my twins baby b was breech up until the day I delivered when she flipped and I was able to have them both vag. so there is still time.


A vag. birth is going to be the fastest recovery time. They didnt cut through skin, muscles and uterus to get to the baby that way.


In the event you end up with a c-section, just avoid lifting your 1st child. can he/she walk? if yes that should help with getting him/her places, use a stroller so you can avoid carrying him/her so much, perhaps holding the hand and having him/her step onto a step and help getting into the stroller.
Reply:All I can say is that I'll say a prayer for you. Here's what I think I know: After a c-section, you can't drive for at least 2 weeks, you're not supposed to lift more than 8 pounds, and you might be in the hospital from 3-5 days total depending on how you heal and feel. You're right that your MIL can't help you (my MIL had a hysterectomy too and I know she wouldn't be able to help while healing herself). You won't be able to lift your 10 mo old for a little while so you can change his diapers on the floor instead of lifting him up. I know a few people who had c-sections and recovered quickly (I had natural). You can still breastfeed which will actually help your uterus contract faster which should help. You might want to ask a neighbor (adult or even a teenager) to help you or find out about a mother's helper to come and help you. Good luck!
Reply:I had a natually birth with my first son at 19, he was 10 lbs and had a c-section with my daughter, she was breech but at 39 weeks she actually flipped but ended having a section cause of not dialating over 2. I would pick the natural birth over the c-section anyday, my bf only got one week off off work and i had a newborn and my 4 year old son. It was hard but it got better , with lil help from my family. You will be in the hospital for 4 days, on the lastday they will take out your staples. Yes you can still breastfeed. I would aviod lifting your child for atleast 3 weeks or longer. Sitting on the couch and let your child come to you is easier. Rest as much as you can a in the hospital ! And don't worry too much your baby can still turn! Good Luck to you!
Reply:I had a c-section with twins %26amp; I was in the hospital about 3 days- I was fine when I came home- at the time my son was 2 1/2 %26amp; I still take care of him- you just do what you have to do -


good luck!
Reply:I would highly recommend that you get someone to come and stay with you if you have to have a c-section. I had a c-section and I was in so much pain the first couple of days that I could barely lift my newborn. There is no way I could lift a toddler. Not trying to scare you, just sharing my expericence. If you can;t find a friend or family member who can come then look into hiring a nurse for a few days. I wish you the best of luck and congrats!
Reply:Its obviously easier to recover from a natural birth than a c-section, the only thing I can suggest to to temporarily hire someone to come in and help with the other baby, MIL is obviously out, and so is hubby...
Reply:I am only 14 so obviously i have never had a baby myself but i think that unless ABSOLUTELY necessary you should always go with natural birth . C sections leave huge scars and you can only ever have two c sections because the first time they cut you one way then the next time they cut you the other way then that's it you have a big x shaped scar . so if it is possible go with the natural birth.


A 2 µC charge with mass 0.1 kg accelerates at 2 m/s^2 in a uniform electric field. The magnitude of the field

is most nearly...?


a. 10^5 N/C


b. 10^-5 N/C


c. 2 N/C


d. 0.2 N/C


e. 0.1 N/C





I need to show work. Please help!

A 2 µC charge with mass 0.1 kg accelerates at 2 m/s^2 in a uniform electric field. The magnitude of the field
The formula for acceleration in an electric field is a = q*E / m, where q is the charge, E is the electric field, and m is the mass. If you want to know the electric field, use E = a*m / q or E = F / q since a*m is force.





E = (2 m/s^2 x 0.1 kg) / (2 x 10^-6 C) = 0.2 N / 2 x 10^-6 C





= 100,000 N/C or 1 x 10^5 N/C





Therefore the answer is a. Glad I could help.