C语言答案第6讲.docVIP

  • 4
  • 0
  • 约8.72千字
  • 约 12页
  • 2017-06-08 发布于湖北
  • 举报
第6章 [习题-1]/*c6_1(1).c*/ /*c6_1(2).c*/ (1) (2) double sum_of_sq(double x,double y) double hypot(double x,double y) { { return(x*x+y*y); double h; } h=sqrt(x*x+y*y); return(h); } [习题-2]itoa (int n, char s [ ] ) (2)int htod(char hex [ ] ) { { int i,dec=0; static int i=0,j=0; for(i=0;hex[i]!=\0;i++) int c; { if(hex[i]=0

文档评论(0)

1亿VIP精品文档

相关文档