我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

float a代入后显示错误,想要这个程序里画出来的圆心的坐标为参数,请问怎么办

int float a;

void setup()
{
  size(300, 300);
  a=0;

  myFuncVoid();
}
void draw()
{

  myFuncInt();
  ellipse(float a, float a, 120, 120);
  float aaa = myFuncFloat(5.0);
}

void myFuncVoid()
{
  println("Hello!");
}

int myFuncInt()
{
  int a = 0;
  return a;
}

float myFuncFloat(float a)
{
  return a + 1.5f;
}

近期文章

  • PyTorch和torchvision顺序
  • cin输入16进制溢出问题
  • 想用TP5.0 写一个边框,里面自己可以输入内容
  • 用java数组求斐波那契数列前20项
  • Docker安装ElasticSearch后,运行一天左右服务自动终止,求解答
  • 银河麒麟V10运行kmre后,显示麒麟移动运行环境未启动,如何解决?
  • mybatis-SqlSession was not registered for synchronization because synchronization is not active
  • 请问这个网页时间的xpath怎么写?
  • c++问题希望解答下
  • 请教下我的代码逻辑是哪出了问题,为什么数字和不对
  • JPA构造条件and,or组合查询
  • mysql score这个字段为什么还会走索引?
  • The Session graph is empty.Add operations to the graph before calling run()
  • Python中代码逻辑检查
  • c++/qt 函数指针使用时遇到的问题
  • 该程序语言哪里错了?
  • PHP 比 Java 的开发效率高在哪?
  • 有人可以解决这个问题吗,功能2,3,4实现不了,无效
  • 从键盘输入一串字符,在字符串尾插入'$'并显示字符串
  • 使用idea 修改closed figure类

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华