gpt4 book ai didi

c - 两道C题

转载 作者:太空宇宙 更新时间:2023-11-04 04:06:15 26 4
gpt4 key购买 nike

1)(pointer) %p 有什么用?要显示地址还是其他什么? (你能举个例子吗?)

2) 由于使用 graph.h 库和创建图形,ellipse() 函数有 6 个参数。他们是什么?我找不到他们的完整列表。

谢谢

编辑 抱歉。应该是<graphics.h>图书馆。是的,它是一个希望我们使用的外部库。ps:不是作业。

最佳答案

  1. %p 用于使用 printf 打印出指针的值(地址):

    printf("%p", &printf); //Prints out the address of the 'printf' function
  2. 我不知道您指的是什么 graph.h,而且我怀疑很多其他人也这样做;您能否发布有关该库用途的更多信息?

关于c - 两道C题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5573874/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com