原创 SQL Server鎖介紹及死鎖原因(轉)

轉載地址[http://www.cnblogs.com/Jessy/p/3540724.html] 一 死鎖產生的原因和解鎖的方法 產生死鎖的四個必要條件: (1) 互斥條件:一個資源每次只能被一個進程使用。 (2) 請求與保持條件:一

原创 返回類的私有指針成員變量的引用

代碼 #include<iostream> using namespace std; class student { public: student(int age) { this->m_stdName=