Joke Collection Website - Bulletin headlines - Does c language coordinate function use f
Does c language coordinate function use f
The coordinate function of c language can be F.
1. Write a program to convert rectangular coordinate values into polar coordinates. The formula of polar coordinates is:
c= sqrt(x*x+y*y),q=arctan(y/x)
The function f is defined as void fun (double x, double y, double * c, double * q), where x and y are input rectangular coordinates, and pointers c and q are used to return the calculated polar coordinate values.
The main program reads x, y and outputs c and q, where c and q retain two decimal places.
- Related articles
- The future pattern of enterprise culture construction from the perspective of employee emotion
- Chongqing Two Sessions Hot Topics 2017
- Carry out a national voluntary tree planting activity plan
- Online wisdom league building
- How to do the signboard on the stall?
- What are the specialties in Anshun City, Guizhou Province?
- What are the advantages of idioms?
- General Wang Zhen's life story
- Forest fire prevention composition 400 words
- How to say love in English