Sunday, August 2, 2009

What is C shell programming ?

Is C chell is part of C programming or its Pure Unix programming ? and what software i need to do program at this C shell .


Do i need to install unix or i need C / C++ in my computer ?

What is C shell programming ?
Yes, the person who has given the answer just before me is completely right. U can do C-programming in under both operating systems - Windows %26amp; Linux.





If u're using Windows, then u've to install 'Turbo C++ IDE' (it's an external compiler) in ur system. It'll compile ur C / C++ programmings u've written.





But if u're using Linux, then u don't have to worry about loading these external compilers, coz Unix provides in-built gcc-compilers that helps to run %26amp; execute C / C++ programs. Here u've to use 'vi' command to open a C-file %26amp; write programs in that file.





I've both WindowsXP %26amp; Linux RedHat 9.0 in my system. So, I get the opportunity to work in both environments.





U're in a misconception - how can C-shell be a part of C-programming ? As soon as u log in, a program called the 'shell' starts to run at ur terminal %26amp; keeps on running until u terminate the session. U know, 'shell' acts as the command-interpreter. Unix offers a variety of shells - Bourne shell, Korn shell, C shell etc. C-shell has path : /bin/csh.
Reply:I wanted to mail u, but ur id is hidden here. Report It

Reply:you can mail me at sarwarbin@yahoo.com . I am a bengali too :) Report It

Reply:You could be asking about two completely different things.





1) The C language. C is a high level programming language that every professional needs to know. You need a C compiler and linker in order to program in C. You can download gcc for your OS (Unix, Windows, whatever) for free.





2) csh. csh is a shell, and as such has a scripting language. It is very similar to bsh (Bourne shell) and ksh (Korn shell). I order to get a command prompt in Unix, you open a shell. You can then type commands using the shell scripting language. You can write scripts and save them and run them too. The various shells are usually preinstalled on Unix systems.


If you are on Windows, I know ksh has been ported to Windows and you can buy it to use as your command prompt and scripting language. I think it sold by MKS systems. I'm not sure about csh. I've never used it on Windows.
Reply:http://en.wikipedia.org/wiki/Shell_%28co...


For the following C-program, does it mean it prefers to be in the state of "not inspace" or putting out chars?

#include %26lt;stdio.h%26gt;





int main(void)


{


int c;


int inspace;





inspace = 1;


while ((c = getchar()) != EOF)


{


if (c == ' ' || c == '\t' || c == '\n')


{


if (inspace == 0)


{


inspace = 1;


putchar('\n');


}


/* else, don't print anything */


}


else


{


inspace = 0;


putchar(c);


}


}





return 0;


}

For the following C-program, does it mean it prefers to be in the state of "not inspace" or putting out chars?
There is no preference in the software - that concept doesn't apply.





What the program does is to replace white space (1 or more of space, tab or newline) and replace it with a single new line. In other words, the software will copy each word of the input on its own line in the output.


C=3d-27 and 4d + 10c=120?

whats d and c i cant figure it out and both equations must have the same number


so


3 x d - 27 = c


4 x d + 10= c


what does c and d equal?

C=3d-27 and 4d + 10c=120?
4d + 10c=120


4d + 10(3d-27)=120


4d + 30d - 270=120


4d + 30d = 390


34d = 390


d = 390/34





c=3d-27


c=3(390/34)-27


c=126/17
Reply:The easiest way I know to solve these is to look at the two equations you were given. You were told what c equals. Substitute that everywhere you have c, like this:





4d + 10c =120 becomes


4d +10(3d-27) = 120


then just do the math and solve for d. After you get d, solve the first equation for c. And you've got both answers.
Reply:Well, there are a few ways to do systems of equations. The first 2 answers showed it doing substitution, I've always preferred linear combination, so I'll show the work that way.





First i put both equations in general form, so you have





4d + 10c = 120


-3d + c = - 27





Well, by looking at those, there are a few ways to do it, but I would multiply the bottom equation by 10, so you have both equations with 10c, then subtract..... as follows





4d + 10c = 120


-30d + 10c = -270


________________


34 d = 390





d = 195/17





sub back in to either one... for simplicity use...


c = 3d - 27


c = 3(195/17) - 27


c = (585/17) - 27


c = (585/17) - (459/17)


c = 126/17





Granted, the way the first answer was done was probably the easiest way, since one of the problems is set up as c = which makes it ideal for substitution, though I prefer linear combination just because it ends up being easier in most situations, so its just the way I like to do it.

potential breakup song

C-section and pregnancy???

Hi. I had a c-section with my first labor. When I went too see the doctor for a check up she told me that because of my c-section I could only have at the most 3 children. I was just wondering if once you have a c-section is it possible to have you next children naturaly (by pushing)??? And also is it true you can only have 3 kids after having a c-section??

C-section and pregnancy???
After the first c-section if it were a bikini cut, you can try what is called V-bac which is vaginal delivery after c-section. Sometimes after having a c section dr's prefer doing c sections because of complications that may come. One thing for sure if you have a c section you cannot get the drugs to help you go into labor or dilate faster like pitocin. I am the mother of 4, 2 vaginally and the last 2 were c section. I tried to have # 4 vaginially, but he just wouldn't come down so I did have a c section. My doctors did tell me that I could have another baby if I wanted, but now it would definetly have to be c section because the chances of uterus rupturing has increased. Also, 3 is probably a good # because of the scar tissure that builds up and the increase of complications. I am sure that you could have 4 but it would definetly increase your risk. Get a second opinion if you want more.
Reply:i had two c-sections by choice! u can have another child with normal delivery if there are no complications tied to it.. ex: the child is too big, the child is breech, the child turned face up... you can have up to four c-sections... if u try for more at c-sections you are running a health risk for yourself.. dont do that cause your children need you!!!
Reply:I am pregnant and researched this myself natural is possible after a c-section but not recommended unless more than a year has passed between pregnancies. A c-section does compromise the strength of the uterus but all bodies are different I can't believe your doc would put a limit on how many babies you can have. Get a second or third opinion.
Reply:I've had 2 children both born by C-section (they were both breech, and weighed between 8-9 lbs.) My Dr. also told me that I could only have 3 children. To your other question, it is possible to have a vaginal delivery with your second child, even if your 1st was a cesearen. You have a good chance of having a vaginal birth if: Your C-section cut is a transverse (bikini) cut, instead of the up and down cut, -or- Your Dr. or Midwife tells you that they think you can have a natural birth, -or- baby is head down, and labor is going as planned.
Reply:One of my daughter-in-laws had all four of her children by C-section though she was told she should only have three. All came through it with flying colors!





She tried to have the third one naturally, via induced labor, but there was something wrong and though she went through many hours of labor, the baby refused to be born. It's an individual thing, though, so you may need to speak with your doctor to get some answers.





Best Wishes!!


Pat


Life And Living


http://psumpter.blogspot.com/
Reply:Yes, it is possible to have a vaginal delivery after having a c-section. And if you could only have three kids by c-section, i wouldn't have a little sister. My mother had four kids by c-section.
Reply:There is a slight possibility that you could have a natral birth. Hoever, scarring makes the uterus weaker and you could rupture and die, or the baby could die in natural birth. Try to go with another c-section of possible. No reason to risk it.
Reply:My sister had a c sec with her first


Second Naturally





My Grandama had all c secs and she had 4 kids








its not true but its recommended you don't exceed too many. C secs are a major surgery, Too many of the same surgery can result in problems latter on.








VBAC's are sooo common....dieing because of them are not. Dont worry about the post above me
Reply:its possible to have a natural birth after a c-section, but i think it really depends on how long youve had to heal from the 1st baby
Reply:Every dr. says diff things....mine says you can have as many c sections as needed....if your body allows it
Reply:You can have a natural childbirth after C-section- it's technical name is Vaginal Birth After Cesarean or VBAC if you want to look it up. They do not recommend that you have more than 3 babies by Cesarean because it weakens your uterine wall and creates a lot of scar tissue. If you had more babies, the stretching of your uterus could cause the old incision to tear internal which would mean big problems for you and your baby.
Reply:You doctor is telling a story. There is a chance that you can have your baby naturally after your first c-section. I have had 5 c-sections and my doctor told me he has delivered 8 babies by c-section on one woman.My dr. has delivered all but two of my kids. I would get a second opinion. I guess it may depend on the length of time between this baby and your last baby, your weight and scar tissue might also play a factor in her reason for saying that. Just explore your options and express your wanting for a natural birth and talk to her about it.Anyway,good luck on your baby.There is the such thing as VBAC Vaginal Delivery After C-section.
Reply:Yes, it's possible to give birth naturally after a c-section depending on why you had to have a c-section for the first delivery. It's called a V-BAC. They reccomend not having many children via c-section because of what it does to your body. The scar tissue remains on you uterous, and with every pregnancy, it becomes more painfull to carry a child because scar trissue doesn't stretch, and it just becomes more dangerous.


C drive disk space differ from actual file size in c drive?

when i cright click on c dribve and see proporties it shows total size 27.8 gb and free space 1,85 gb


when i enter c drive select all files in c drive and then right click and see proporties actual file size is=4.21 GB





why so and even cant defragment as it says minimum 155 free disk space required


why so happening can anyone help

C drive disk space differ from actual file size in c drive?
Some files are "hidden". click tools, view, show hidden files and folder. i use it hide files =)
Reply:Some files are hidden and they aren't counted when you click properties inside the C drive. Also when u see the C drive properties it doesn't show the space windows occupies
Reply:microsoft and the drive manufacurers use a different numbering system to measure the drive space.pay attention to the highest amount
Reply:When you right click and go to properties it is going to give you a more accurate reading than if you try to select all and go to properties. As mentioned, there are hidden files, and if the difference is as large as you say (27.8GB versus 4.21GB) you're definately not finding something on the disk.





27.8 with 1.85GB free sounds about accurate for a 30GB hardrive. If you have music, videos, or pictures, that space will go fast.





In order to defragment you need to delete some files and free up some disk space. The defgragmentation tool requires a certain amount of free space to move files to, so it can better organize the drive.





Try deleting extra stuff and removing programs that you do not use. You should be able to free up enough disk space to run a defragment. If you're system is running very slowly, it's not all that surprising considering it sounds like your hard drive is almost full.





A good option is to buy an external hard drive, and use it for storage. Not to mention you can transfer all of the stuff you need to the external and format and then reinstall windows....which will make your computer seem like new. Make sure you have all of your driver disks (The software for things like video cards, sound cards, and so on), or have someone on hand who knows about formatting and reinstalling windows, since the "driver hunt" can be a pain in the ***.





Good luck!


Monitoring AFTER c-section??..please..only compassionate people answer?

is it normal for someone to monitor you after you've had a c-section


a woman who was in the surgery room with me during the c-section,was told to sit with me for a couple of hours after the c-section in the recovery room?





is this normal procedure?she said it was,others have told me its not


and the thing is that the doc/butcher who did the c-section injured me in the process,not enough so that its obvious to prove,but enough so that i have had problems ever since!!!





anyway,...is it normal to have someone monitor you AFTER the c-section??(i believe that he may have perforated my uterus,then stitched it,or something similar)


my concern is that i wont be able to have another baby(this was my first)and i believe at the very least he weakened my uterus


thanks

Monitoring AFTER c-section??..please..only compassionate people answer?
Maybe the doc/butcher knows what he did and had the nurse sit with you to cover his behind if you what I mean.





You could have an ultrasound and find out about your uterus. I would hate to think you would have to worry about if you could have more children. I would get it checked out.





And no, it is not normal for a nurse to sit with you in recovery after a C-section.
Reply:A C-section is an invasive surgical procedure, and yes, monitoring after ANY surgical procedure is not only normal, but good medical practice. They are watching you for signs of abnormal bleeding, for reaction to anesthesia, etc., etc. I was monitored for six hours in recovery after an emergency c-section, and then had nurses checking on me ever 15 minutes for the remainder of the day.





Anyone who tells you that's it's NOT normal has not had careful after-surgery care.





I don't know what you think a c-section is, dear, but having a c-section means that they have to CUT the uterus. I'm not sure what you mean by "perforate", but if it was an emergency c-section, then he had to go in as fast as possible, slice the uterus and remove the baby. After it was cut, then the uterus was stitched back together, along with the incision made in your abodomen.





Unless there were dire complications (rare), you will probably be able to have another baby. My first child was a c-section, and my second was delivered naturally, so there was no problem with "tearing" or "weakening". Granted, my doctor had an anesthesiologist on call during the second labor as a safety measure, "just in case", but again, that was only caution on his part. The uterus did just fine. Just give yourself plenty of time to heal before getting pregnant again.





If you don't trust your doctor (it doesn't sound like it), then consider using a different doctor for your second pregnancy.
Reply:after all surgies there is a recovery room nurse that monitiors a patientce condition in the recovery room, but did you hear him tell his operator room nurse to monitor more closely then a normalbecause if that is the case that is odd but not to have a normal recovery room nurse, you are legelly entittled to your medical records,and can do so by going to the hosipal medical records dept. and filling a request. I would start there, go to a highlly recommended ob/gyn and tell them your situtation and they can get copies of medical records and possibly do a ultrasound


hope this helps


good luck and god bless
Reply:Completely normal and varies on each hospital's protocol, which is why you've heard differing answers. They just monitor for blood loss, effects of the anesthesia, etc.


No worries and I hope you're feeling ok.





EDIT TO ADD:


Even if this wasn't your hospital's protocol, each patient is different. What is done for you may not be done for Jane Doe and so on. If you truly are worried, see another physician (or two or three or four) for their professional opinion. Once you get that, you might need to find an attorney.


Good luck to you.
Reply:check with a differant trusted docter and a lawyer
Reply:I'm wondering what kinds of problems you are having. Problems like constipation and muscle pain are normal after c-sections (and probably vaginal births, though I wouldn't personally know) because of the dehydrating effects of the drugs and the relocation of your intestinal tracts during the course of pregnancy. I had a c-section about 4 months ago and severe pain on one side of my incision. The issue was that my son was tilted awkwardly in the uterus and the doctor had to cut far to the right and pulled a lot at the skin and muscle. If it's an issue like this, the doctor may have only injured you as a necessary step of getting your baby out safely. I hope it was a case like this, rather than an incompetent doctor.





As for the question, my c-section wasn't monitored by a sit-in, but the nurses came in so often, it felt like they never left. I've never heard of the procedure; but honestly, I'm guessing it was for the doctor to be sure you were doing okay. Perhaps it was a difficult surgery.





Assuming you got the bikini cut in your uterine wall (which you may need to contact a ultrasound technician to find out for sure, since the cut in the uterus can be different from the cut in the skin) and you are relatively young, your uterus should not have weakened enough to keep you from having another baby. You may need to take a while to conceive to assure you are completely healed (my doctor told me 6 months, but I think a year or more is safer). Also, your next pregnancy may need to be more closely monitored than your first, which is normal for any prior c-section. Hopefully, you are a candidate for VBAC (Vaginal Birth After Cesaerian), but even if you aren't, good luck on your next.





Best Wishes.
Reply:If you gave birth to a baby via c-section, then of course the doctor 'perforated' your uterus ... he had to cut it open to remove the baby. Some doctors are really nice and have people that sit and monitor your condition after a c-section to make sure you don't have to endure any pain longer than necessary, and to make sure that you are awake and aware after the surgery. Others think it's okay to let the family do that ... I like the 'professional monitor' best. You may feel uncomfortable, still, and that is something you need to discuss with the doctor who did your surgery. Yes, the doctor did 'perforate' your uterus and then stitch it up ... how else could your baby have been born via a c-section? Yes, you WILL be able to have another child (or more) but you may need to have the child(ren) born via c-section too, depending on the way the 'cut' was made, and how well you 'recover' from your surgery. They now allow SOME mothers who had c-sections to deliver vaginally, but MOST mothers have another c-section, with NO PROBLEMS.
Reply:well, all c sections weaken a uterus since they have to cut through it to get the baby out. i've never heard of having to be monitored afterward. i think you should find another doctor after you have healed and have them check it out.
Reply:I've had a c-section. I didn't have someone sit with me although the nurse did come in regularly to check on me.
Reply:Honey, they had to cut into your uterus to deliver the baby, thats where the little guy was living, so yeah, they perforated it, in a sense. And randomly asking who ever asnwers the phone at a hospital not a good thing. Every case and every body is different. You could have been monitored for a variety of reasons, blood pressure a bit off, heart rate odd, etc. Not every body reacts well to trauma of surgery, anesthesia, stress of hospital. I would rather have been monitored than left alone and something go wrong. What kind of problems since then and how long ago was this c-section?
Reply:They want to assure you have no ill effects from the anesthesia.





That's normal with most surgical procedures. It has nothing to do with the doctor screwing up.
Reply:I had someone monitoring me. Every so often she was push down on my tummy to get me to start contracting!? She would monitor my pain level and see when I was ready to go see my babies.
Reply:It's common for hospitals to have " sitters" as they are called, but they are generally NOT for patients like you. They are usually used for combative or angry patients. Of course, your hospital can have a different policy than the one I work for. If you are truly concerned about the things you are describing, I really urge you to get a follow up with a new doctor ASAP for a second opinion. At the very least, you can get peace of mind and, if the doctor was a rough as you say, you can help prevent others from the same treatment you received.





I am so sorry you had to endure this but congrats on your baby!


How do i loop this program in C so that i can just start from the beginning again until i quit?

#include %26lt;stdio.h%26gt;


#include %26lt;stdlib.h%26gt;





main ()


{


float c,f;





char menu_conv;


printf("Conversion Program!!!\n");


printf("Enter the type of source temperature by typing c or f: ");





scanf("%c", %26amp;menu_conv);





if(menu_conv =='c' || menu_conv=='f')


{


switch(menu_conv)


{


case 'c':


printf("Enter a number in Celcius\n");


scanf("%f", %26amp;c);


f= (9/5)* c+32;


printf("%f degrees celcius = %f degrees fahrenheit\n", c,f);


break;








case 'f':


printf("Enter a number in Fahrenheit\n");


scanf("%f", %26amp;f);


c=(5/9)*(f-32);


printf("%f degrees fahrenheit = %f degrees celcius\n", f,c);


break;





default:


break;


}


}


else


{


printf("Invalid choice!\n");


}

















return 0;





}

How do i loop this program in C so that i can just start from the beginning again until i quit?
hey try this. i have made some changes and the changes are in capitals. good luck.





main ()


{


float c,f;


CHAR ANSWER;


char menu_conv;


ANSWER = 'Y'


WHILE (ANSWER)


{


printf("Conversion Program!!!\n");


printf("Enter the type of source temperature by typing c or f: ");





scanf("%c", %26amp;menu_conv);





if(menu_conv =='c' || menu_conv=='f')


{


switch(menu_conv)


{


case 'c':


printf("Enter a number in Celcius\n");


scanf("%f", %26amp;c);


f= (9/5)* c+32;


printf("%f degrees celcius = %f degrees fahrenheit\n", c,f);


break;





case 'f':


printf("Enter a number in Fahrenheit\n");


scanf("%f", %26amp;f);


c=(5/9)*(f-32);


printf("%f degrees fahrenheit = %f degrees celcius\n", f,c);


break;





default:


break;


}/*END OF SWITCH*/


}?*END OF IF*/


else


{


printf("Invalid choice!\n");


}?*END OF ELSE*/





PRINTF ("PLEASE TYPE Y IF YOU WANT TO CONTINUE,ELSE TYPE N.\T");


SCANF("%C",%26amp;ANSWER);


}/*END WHILE LOOP*/


return 0;


}/*END OF MAIN*/
Reply:i'll write it in C++ so you can change it to C


after the main define a while loop on a char like this


char x;


cin%26gt;%26gt;x; --%26gt; (input x)


while ( x != eof()) (if the value doesn't equal to the end of file)


{


(your program)


}


cin%26gt;%26gt;x; --%26gt; (input again)


} (end of main)
Reply:surround it whith a while








menu_conv='x';


// pressq to quit the loop.


while (menu_conv != 'q' ) {





//


scanf("%c", %26amp;menu_conv);





if(menu_conv =='c' || menu_conv=='f')


{


switch(menu_conv)


{


case 'c':


printf("Enter a number in Celcius\n");


scanf("%f", %26amp;c);


f= (9/5)* c+32;


printf("%f degrees celcius = %f degrees fahrenheit\n", c,f);


break;








case 'f':


printf("Enter a number in Fahrenheit\n");


scanf("%f", %26amp;f);


c=(5/9)*(f-32);


printf("%f degrees fahrenheit = %f degrees celcius\n", f,c);


break;





default:


break;


}


}


else if (menu_conv != 'q')


{


printf("Invalid choice!\n");


}








}

love song