源码地址
ue4c++扫雷demo,源码在github上
文章作者: 火苗
版权声明: 本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 IT技术记录小站!
相关推荐

2022-07-27
ue4c++格式化字符串
ue4c++格式化字符串函数说明 Format the specified string using the specified arguments. Replaces instances of {0} with indices from the given array matching the index specified in the token @param InFormatString A string representing the format expression @param InOrderedArguments An array of ordered arguments that match the tokens specified in InExpression @return A string containing the formatted text 1UE_NODISCARD static FString Format(const TCHAR* InFormatString, const FStringFormatOrdered...

2013-09-05
用辗转相除法求最大公约数
C++代码如下 123456789101112131415161718192021222324252627282930#include "main.h"#include <iostream> using namespace std;int main(){ int a, b; int a_cup, b_cup, res; cout << "Enter two integer:" << endl; cin >> a ; cin >> b ; if (a > 0 && b >0) { a_cup = a; b_cup = b; while (b_cup) { res = a_cup % b_cup; a_cup = b_cup; b_cup ...

2013-12-13
windows结束进程升级版
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162// 用到的头文件#include "tlhelp32.h" // szName获取窗口句柄HANDLE CHungDlg::GetWindowHandle(const CString& szName){ return ::FindWindow(NULL, szName);}// 根据程序窗口句柄结束进程BOOL CHungDlg::CloseApp(HANDLE handle){ DWORD nProcessID; // 根据进程句柄获取进程ID ::GetWindowThreadProcessId((HWND)handle,&nProcessID); return CloseApp(nProcessID);} // 根据进程ID结束进程BOO...

2015-07-02
VirtualBox+WinDbg+Win7调试环境配置
1.配置虚拟机串口如图 勾选启用串口->端口选择COM1->端口模式选择主机管道->勾选创建管道->端口文件位置输入:\\.\pipe\com1 2.配置虚拟机里面的系统,开启调试模式Win7 下以管理员身份进入CMD分别输入以下命令:bcdedit /enum osloader 查看系统情况。 bcdedit /copy {current} /d Win7Dbg 复制启动项 bcdedit /displayorder {current} {142b1de8-130a-11e5-b852-9ff41a342c36} 注 {142b1de8-130a-11e5-b852-9ff41a342c36}是上一步生成的GUID。增加系统启动时的加载项 bcdedit /debug {142b1de8-130a-11e5-b852-9ff41a342c36} on 启动调试 bcdedit /bootdebug {142b1de8-130a-11e5-b852-9ff41a342c36} on 启动BOOT调试 bcdedit查看设置Win7Dbg就是用来...

2021-09-08
asio的http服务
代码123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778#include <string>#include <memory>#include <iostream>#include "boost/asio.hpp"class HttpConnect : public std::enable_shared_from_this<HttpConnect>{public: HttpConnect(boost::asio::io_context& io) : m_socket(io) {} ~HttpConnect(){} void RunOnce() { auto sphc = s...

2022-09-24
boost多网卡udp组播绑定网卡接收
boost多网卡udp组播绑定网卡接收receiver.h12345678910111213141516171819202122232425262728293031#pragma once//// receiver.cpp// udp组播接收类//#include <array>#include <iostream>#include <string>#include <functional>#include <boost/asio.hpp>class multicast_receiver{public: multicast_receiver(boost::asio::io_context& io_context , const boost::asio::ip::address& listen_address , const unsigned short& multicast_port , const boost::asio::ip::add...
公告
每天都有一个好心情



