#Straight

A straightforward demo using Tcp

ServerSideCode:classProgram{staticvoidMain(string[]args){TcpListenertcpListener=newTcpListener(IPAddress.Loopback,9999);tcpListener.Start(2);while(true){vartcpC...

Check If It Is a Straight Line

2019-10-21 10:35:33问题描述:问题求解:publicbooleancheckStraightLine(int[][]coordinates){intn=coordinates.length;if(n==2)returntrue;for(inti=3;i<n;i++){if(area(c...
代码星球 ·2020-06-14