摘要:
freopen函数: 使用不同的文件或模式重新打开流,即重定向 C++ //把一个字符串写入到文件中去: #include<iostream> using namespace std; int main(void) { /* redirect standard output to a file */ 阅读全文
摘要:
代码实现: struct point{ double x , y; } struct line{ point a , b ; } double Dot(Vector A,Vector B) { return A.x*B.x+A.y*B.y; } //点积 double Length(Vector A 阅读全文