2011年9月23日

摘要: C++ 中关于文件的读入和输出:Example : 从in.txt 文件中读入数据,并输出到out.txt中,输出的文件中每行之间有一空行相隔#include#include#includeusing namespace std;int main (int){ string s; ifstream inf; inf.open("in.txt"); //打开输出文件 ofstream outf; outf.open("out.txt"); //从in.txt 文件中读入数据,并输出到out.txt中 /*其中 getline(参1,参2); 作用是从 in 阅读全文

posted @ 2011-09-23 10:11 bendanchenzhicheng 阅读(1127) 评论(0) 推荐(0) 编辑

摘要: 两个4-D向量的点乘。定义:FLOATD3DXVec4Dot(CONST D3DXVECTOR4*pV1,CONST D3DXVECTOR4*pV2);参数:pV1[in]指向D3DXVECTOR4结构的源向量。pV2[in]指向D3DXVECTOR4结构的源向量。返回值:点乘的结果。函数信息:Headerd3dx9math.hImport libraryd3dx9.libMinimum operating systemsWindows98函数相关:D3DXVec4Cross 阅读全文

posted @ 2011-09-23 10:09 bendanchenzhicheng 阅读(236) 评论(0) 推荐(0) 编辑


Copyright © 2024 bendanchenzhicheng
Powered by .NET 8.0 on Kubernetes