关键字:线性分类器 C语言
先上代码为敬,题目在后面
编译环境:Dev C++ 5.11
语言:C语言
#include <stdio.h>
struct Dot
{
int x;
int y;
char type;
};
struct Line
{
int a;
int b;
int c;
};
int main()
{
struct Dot dot[1000];
struct Line line[20];
int n, m;
int i,j;
scanf("%d %d", &n, &m);
for(i = 0; i < n; i++)
scanf("%d %d %c", &dot[i].x, &