计划简介(3身体问题):
#include
#include
#include
double ax, ay, t;
double dt;
/* other declarations including file output, N and 6 command line arguments */
...
int main(int argc, char *argv[])
{
int validinput;
...
/* input validation */
output = fopen("..", "w");
...
/* output validation */
for(i=0; i<=N; i++)
{
t = t + dt;
vx = ...
x = ...
vy = ...
y = ...
fprintf(output, "%lf %lf %lfn", t, x, y);
}
fclose (output);
}
/* ext function to find ax, ay at different ranges of x and y */
{
declarations
if(x < 1)
{
ax = ...
}
else if(x==1)
{
ax = ...
}
...
else
{
...
}
if(y<0)
{
...
}
...
}
我在行'{/ * ext函数找到ax,ay在不同范围的x和y * /’说“错误:预期标识符或'(”””’之前’出错
我认为这可能是由于没有以正确的方式调用或创建外部函数
本文发布于:2024-02-03 04:59:41,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170690757948809.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |