我在一本书上看到一个 登录 程序其中有一部分联接数据库的
void CTrainDlg::Onok() 
{
  ClonginSet *m_recordset=new ClonginSet(&m_database);
  CString strSQL;
  UpdateData(TRUE);
  strSQL.Format(select * from USER_PSWD where TMS_USER='%s' AND TMS_PSWD='%s'",m_username,m_password);
  m_recordset->Open(AFX_DB_USE_DEFAULT_TYE,strSQL);
}
-----------------------------------------------------------
我在一本书上看到
Student Student1("zhang",19,'f');
Student * ptr=&Student1;
--------------------------------------------------------------
我要问的是
ClonginSet *m_recordset=new ClonginSet(&m_database);
Student * ptr=&Student1;
为什么一到声明批向对象的指针时就有"&"  ,它的作用是什么,它在vc中还有什么作用呀?