登录
首页 » c++ » (CC++MFCwindows)自已做的船炸潜艇小游戏+源码

(CC++MFCwindows)自已做的船炸潜艇小游戏+源码

于 2022-07-11 发布 文件大小:92.48 kB
0 120
下载积分: 2 下载次数: 1

代码说明:

(CC++MFCwindows)自已做的船炸潜艇小游戏+源码

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • asp.net防刷新(F5) 禁止重复提交 实例(附完整源码)
    实现了用户操作时 刷新导致的重复操作问题。 实现原理如下:   使用一个上下文唯一的票据号,该票据号随页面提交或回发而递增,每当用户与服务器端交互时,代码会提取上次的票据号码并与当前票据号码比较,如果当前票据大于上次的票据,则是提交或回发,否则则识别为刷新。     这种方式会用到HttpMoudel,并在其中操作Session。   使用方法如下:   1、引入dll MsdnExt 压缩包中有2.修改web.config,在 添加以下item:               其中“MsdnModule”是一个名字, “Msdn.RefreshModule”是“Msdn”下的“RefreshModule”类型,“MsdnExt”是程序集的名字 3.引入命名空间 using Msdn; 并修改页面类继承Msdn.Page 4.使用代码  代码:  protected void Button1_Click(object sender, EventArgs e) { if (!IsPageRefresh) Response.Write("按钮事件"); else Response.Write("页面刷新");TrackRefreshState();} MSDNPage.cs 核心代码如下:using System;using System.Web.UI;using System.Web;using System.Text;namespace Msdn{ public class Page : System.Web.UI.Page { #region Constants // *********************************************************** // Constants public const string RefreshTicketCounter = "RefreshTicketCounter"; private const string SetFocusFunctionName = "__setFocus"; private const string SetFocusScriptName = "__inputFocusHandler"; // *********************************************************** #endregion // *********************************************************** // Ctor public Page() { m_focusedControl = ""; // Register a PreRender handler this.PreRender = new EventHandler(RefreshPage_PreRender); } // *********************************************************** // ************************************************************** // Indicates if the page is being viewed in response to F5 hit public bool IsPageRefresh { get { object o = HttpContext.Current.Items[RefreshAction.PageRefreshEntry]; if (o == null) return false; return (bool) o; } } // ************************************************************** // ************************************************************** // Increase the internal counter used to generate refresh tickets public void TrackRefreshState() { InitRefreshState(); int ticket = Convert.ToInt32(Session[RefreshTicketCounter]) 1; Session[RefreshTicketCounter] = ticket; } // ************************************************************** // ************************************************************** // Set the control with the input focus public void SetFocus(string ctlId) { m_focusedControl = ctlId; } // ************************************************************** #region Private Members // ************************************************************** // Create the hidden field to store the current request ticket private void SaveRefreshState() { int ticket = Convert.ToInt32(Session[RefreshTicketCounter]) 1; RegisterHiddenField(RefreshAction.CurrentRefreshTicketEntry, ticket.ToString()); } // ************************************************************** // ************************************************************** // Ensure that the ticket counter is initialized private void InitRefreshState() { if (Session[RefreshTicketCounter] == null) Session[RefreshTicketCounter] = 0; } // ************************************************************** // ************************************************************** // Handle the PreRender event private void RefreshPage_PreRender(object sender, EventArgs e) { SaveRefreshState(); AddSetFocusScript(); } // ************************************************************** // ************************************************************** // Add any script code required for the SetFocus feature private void AddSetFocusScript() { if (m_focusedControl == "") return; // Add the script to declare the function // (Only one form in ASP.NET pages) StringBuilder sb = new StringBuilder(""); sb.Append(""); sb.Append("function "); sb.Append(SetFocusFunctionName); sb.Append("(ctl) {"); sb.Append(" if (document.forms[0][ctl] != null)"); sb.Append(" {document.forms[0][ctl].focus();}"); sb.Append("}"); // Add the script to call the function sb.Append(SetFocusFunctionName); sb.Append("(); sb.Append(m_focusedControl); sb.Append();"); // Register the script (names are CASE-SENSITIVE) if (!IsStartupScriptRegistered(SetFocusScriptName)) RegisterStartupScript(SetFocusScriptName, sb.ToString()); } // ************************************************************** #endregion #region Private Properties // *********************************************************** // Private properties private string m_focusedControl; // *********************************************************** #endregion }}  
    2021-03-16 17:39:21下载
    积分:1
  • Form1
    VTK DICOM 3D Render C# WITH Activiz.NET
    2012-10-29 22:47:23下载
    积分:1
  • C++ PDF Türk?e kitab
    its a turkish code book
    2017-12-16 23:40:45下载
    积分:1
  • c# 声音阅读文字 程序示例源码下载(DotNetSpeech)
    c# 声音阅读文字 程序示例源码下载(DotNetSpeech)
    2014-03-26下载
    积分:1
  • 81404573MIMO-OFDMchannelestimation
    MIMO-OFDM channel estimation 。是基于mmse准则的,欢迎大家下载使用。(MIMO-OFDM channel estimation. Is based on the MMSE criteria, welcomed everyone download.)
    2008-04-02 09:18:28下载
    积分:1
  • 六相永磁风力发电机建模及控制研究
    说明:  没有用,随便上传的,一会说必然会把握科技和室内的(An all-DC offshore wind farm with series-connected turbines)
    2020-06-23 23:20:01下载
    积分:1
  • Delaunay三角网代码
    Delaunay三角网是空间表达很好的一种形式,构建好的Delaunay三角网对解决空间问题有很大的用处,希望通过分享能启发大家的思维。
    2023-06-10 16:20:07下载
    积分:1
  • nec-78k0-SMP-ad_pwm_int
    此为本人在本学期单片机创新课程中做的实验之一。本实验基于nec单片机,Applilet2 for 78K0KX2和SM+编译器实现的实时可变更的PWM输出实验。虽然程序本身并不复杂,但是由于nec的源码相对稀有,相信该程序是对特定人群,尤其是和我一样也要上单片机创新课程的同学是很有帮助的。(This do for himself in this microcontroller innovation course of one of the experiment.This experiment based on the nec MCU, Applilet2 for 78 k0kx2 and SM+ compiler implementation of real-time can change the PWM output of the experiment.Although the program itself is not complicated, but as a result of the nec source is relatively rare, believe that this program is for certain people, especially as I also want to go to the single chip microcomputer innovation course of students is of great help/very helpful.)
    2015-07-14 11:00:45下载
    积分:1
  • G12864
    ST7565R的A51代码,12864规格,实测OK(ST7565R the A51 code, 12864 specifications, measured OK)
    2009-03-18 12:19:48下载
    积分:1
  • 看大家都用的是vc来写的.现在传一个用c#写的进程调度程序上来.希望对大家有点帮助....
    看大家都用的是vc来写的.现在传一个用c#写的进程调度程序上来.希望对大家有点帮助.-see everyone is using vc write. Now- with a write c# in the process scheduler onto. We hope to help a bit.
    2022-03-13 03:07:16下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载