小编use*_*443的帖子

c代码中的错误:预期标识符或'('''''''之前的标记

计划简介(3身体问题):

#include <stdlib.h>
#include <stdio.h>
#include <math.h>

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 %lf\n", t, x, y);
  }

  fclose (output); …
Run Code Online (Sandbox Code Playgroud)

c error-handling compiler-errors function

4
推荐指数
2
解决办法
5万
查看次数

标签 统计

c ×1

compiler-errors ×1

error-handling ×1

function ×1