Hi, I have just began to learn C. I have familiarized myself with the basic layout of a very small C Program. So far, all I know how to do is write things (eg: Hello World) and enter variables and do basic math ( + - * / ). I was wondering how you do more advanced math like Square Roots and Powers and such. I read on a site something to do with a Header file and some other stuff. Could someone give me the source for a header file and a program that lets u enter a number and then squares the number.
My second question, I already know how to make people type things and have these typed things become variables. However I have only got this to work with numbers! How can u make a word a variable? Once again, the source of a very basic program (such as, type in a name, and then display the name) would be more sufficient than trying to explain it to me.
Thanks - Dave.