• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
wjshan0808

Learn from yesterday, Live for today, For a better tomorrow.
 ————wjshan0808

博客园    首页    新随笔    联系   管理    订阅  订阅
2014年2月24日
组合类中复制函数的调用
摘要: // 组合类中复制函数的调用.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... 阅读全文
posted @ 2014-02-24 23:51 wjshan0808 阅读(561) 评论(0) 推荐(0)
用用户登录简单理解三层思想
摘要: 项目文件列表:GetUserLoginState.sc public class GetUserLoginState { /// /// 检测用户登录状态 /// public GetUserLoginState() { } //推荐在此定义类型变量,而不是在方法中new一个新的对象 private TLoginModel model; public UserLoginStateEnum LoginState(string userName, strin... 阅读全文
posted @ 2014-02-24 20:04 wjshan0808 阅读(291) 评论(0) 推荐(0)
用简单的修改数据理解三层概念
摘要: 项目文件列表:文件中值得注意的代码:DataManager.cs: public List GetDataList() { List models; SqlHelper sqlhelper = new SqlHelper(); string sql = "select * from MyOrders"; using (SqlDataReader reader = sqlhelper.ExecuteReader(sql, null)) { ... 阅读全文
posted @ 2014-02-24 19:51 wjshan0808 阅读(212) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3