main.c

来自「Travelling saleman by C++」· C语言 代码 · 共 32 行

C
32
字号
/* *  main.c *   * Phil Cox, B00XXXXXX * Login: pcox * CSCI2132: Assignment 3 * */#include <stdio.h>#include <stdlib.h>#include "list.h"#include "getpoints.h"#include "travel.h"#include "plotTour.h"int main(){	struct node *points;		/* Read the list of points from standard input */	points = getpoints() ;		/* Find a tour and print its length to standard error */	fprintf(stderr,"Tour length: %f\n", travel(&points));		/* Plot the tour as Postscript printed to standard output */	plotTour(points);		exit(EXIT_SUCCESS);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?