📄 box.h
字号:
// Box.h: interface for the CBox class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_BOX_H__9F01DAA7_BDAD_41F9_90C2_6D1A0BA50C56__INCLUDED_)
#define AFX_BOX_H__9F01DAA7_BDAD_41F9_90C2_6D1A0BA50C56__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CBox
{
public:
int CalM();
double CalJ(int i,int j);
void SetE(double ee);
double e;//交换作用能系数/kT
double Getij(int i, int j)
{
return pBox[i*N+j];
}
void Reverseij(int i, int j)
{
pBox[i*N+j]=pBox[i*N+j]*(-1);
}
CBox();
virtual ~CBox();
int *pBox;
static int N;
int number;
double Energy[5];
};
#endif // !defined(AFX_BOX_H__9F01DAA7_BDAD_41F9_90C2_6D1A0BA50C56__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -