摘要:
// 组合类中复制函数的调用.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include using namespace std;class Point{public: Point(int xx=0,int yy=0)//内联的构造函数 { x=xx,y=yy; } Point(Point &p);//复制构造函数 int getX(){return x; }//内联函数 int getY() { return y; } //~Point();privat... 阅读全文
摘要:
项目文件列表:GetUserLoginState.sc public class GetUserLoginState { /// /// 检测用户登录状态 /// public GetUserLoginState() { } //推荐在此定义类型变量,而不是在方法中new一个新的对象 private TLoginModel model; public UserLoginStateEnum LoginState(string userName, strin... 阅读全文
摘要:
项目文件列表:文件中值得注意的代码:DataManager.cs: public List GetDataList() { List models; SqlHelper sqlhelper = new SqlHelper(); string sql = "select * from MyOrders"; using (SqlDataReader reader = sqlhelper.ExecuteReader(sql, null)) { ... 阅读全文