摘要: sanf_s()与printf_s()函数格式字符: 常用的有以下几种格式字符: %d格式字符。用来输出十进制整数。 %c格式符,用来输出一个字符。 %s格式符,用来输出一个字符串。 %o格式符,以八进制整型式输出整数。 %x格式符,以十六进制数形式输出整数。 %u格式符,用来输出unsigned型 阅读全文
posted @ 2020-01-14 10:03 ꧁执笔小白꧂ 阅读(17161) 评论(0) 推荐(1)
摘要: 1.创建 hello.cpp 2.输入 #include <stdio.h> int main() { int a; char c; printf("hello word!"); scanf("%s",&c); printf("输入了:%s",&c); scanf(""); return 0; } 阅读全文
posted @ 2020-01-13 17:22 ꧁执笔小白꧂ 阅读(556) 评论(0) 推荐(0)
摘要: VB :Like运算符(1).“?”代表单个字符(2).“*”代表0或多个字符(3).“#”代表0-9的单个数字(4).[字符列表]代表任何在列表中的字符(5).[!字符列表]代表任何不在列表中的字符 Dim MyCheck As StringMyCheck="aBBBa" Like "a*a" ' 阅读全文
posted @ 2020-01-13 15:59 ꧁执笔小白꧂ 阅读(1301) 评论(0) 推荐(0)
摘要: 一、目前设想: 1、用一个webview控件,url指向网站地址。 二、效果实现(以博客园为例): 1、Uni-App: 2、MAUI: 3、Unity: 略,Unity环境卸了(技术栈转虚幻5了,就不上传出来了) 4、Android: 阅读全文
posted @ 2020-01-13 11:56 ꧁执笔小白꧂ 阅读(167) 评论(0) 推荐(0)
摘要: 问题: #include <experimental/filesystem> 旧版本文件,将产生错误: #error The <experimental/filesystem> header providing std::experimental::filesystem is deprecated  阅读全文
posted @ 2020-01-05 22:01 ꧁执笔小白꧂ 阅读(3124) 评论(0) 推荐(0)
摘要: C#面试题 1 ,请你说说 .NET 中类和结构的区别? 答:结构没有默认的构造函数。结构是值类型,所以对结构变量所做的改变不会影响其的原值,而类是应用类型,改变其变量的值会改变其原值。申明结构用Struck 关键字,申明类用 class 关键字,向方法传递结构是通过值传递的,而不是通过引用。与类不 阅读全文
posted @ 2019-11-11 09:42 ꧁执笔小白꧂ 阅读(716) 评论(1) 推荐(2)
摘要: using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace ConsoleApplication1 { class Program 阅读全文
posted @ 2019-07-17 18:09 ꧁执笔小白꧂ 阅读(270) 评论(0) 推荐(0)
摘要: RGB 转灰度 //rgba(grey,grey,grey,1)function rgb2Grey(r,g,b){var grey=Math.round((r*299 + g*587 + b*114 + 500) / 1000)return grey} 判断两种颜色相似程度 //rbgfunctio 阅读全文
posted @ 2019-07-15 14:36 ꧁执笔小白꧂ 阅读(2802) 评论(0) 推荐(0)
摘要: Windows 系统下的 vs 中可以使用 _kbhit() 函数来获取键盘事件,使用时需要加入 conio.h 头文件 #include <conio.h> #include <iostream> using namespace std; int main() { int ch; while (1 阅读全文
posted @ 2019-07-15 10:22 ꧁执笔小白꧂ 阅读(4586) 评论(0) 推荐(0)
摘要: 一、数据提取 位图其实可以看成是一个由象素组成的矩阵,找图找色可以看成是象素值的比对。很多新手在设计这类的程序时喜欢使用TBitmap.Canvas.Pixels属性,这个属性其实是对API函数GetPixel的封装,这个函数执行速度是很慢的,主要用来对位图象素进行偶尔的访问。而比对过程中需要对象素 阅读全文
posted @ 2019-07-12 18:06 ꧁执笔小白꧂ 阅读(3295) 评论(0) 推荐(0)
摘要: //创建var sheet=document.createElement('style');document.bodt.appendChild(sheet);sheet.styleSheet.cssText="div{border:2px solid black; background-color: 阅读全文
posted @ 2019-07-11 14:10 ꧁执笔小白꧂ 阅读(1013) 评论(0) 推荐(0)
摘要: 错误的写法 1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>根据下拉框选中的值修改背景颜色</title> 6 <script type="text/javascript"> 7 function chang 阅读全文
posted @ 2019-07-10 18:05 ꧁执笔小白꧂ 阅读(5281) 评论(0) 推荐(1)
摘要: 只在html5里遇到,html4没事;拿出来聊聊,路过帮忙解答下!!! 不正常的 1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>浮动广告</title> 6 <script type="text/javas 阅读全文
posted @ 2019-07-09 18:06 ꧁执笔小白꧂ 阅读(354) 评论(0) 推荐(0)
摘要: 1、GetDc函数: 用于获得hWnd参数所指定窗口的客户区域的一个设备环境 2、GetWindowDC函数: 返回hWnd参数所指定的窗口的设备环境。获得的设备环境覆盖了整个窗口(包括非客户区),例如标题栏、菜单、滚动条,以及边框。这使得程序能够在非客户区域实现自定义图形,例如自定义标题或者边框。 阅读全文
posted @ 2019-07-05 15:21 ꧁执笔小白꧂ 阅读(2427) 评论(0) 推荐(0)
摘要: 假定坐标点 x=50,y=50. 输出 RGB 用 16 进制数。Afxwin.h 你建项目时可得。#include <Afxwin.h>#include <Windows.h>#pragma comment (lib, "User32.lib")int main(void){HWND hWnd = 阅读全文
posted @ 2019-07-05 14:02 ꧁执笔小白꧂ 阅读(2643) 评论(0) 推荐(0)
摘要: 获取屏幕DC、得到当前鼠标所在的像素值、分解出像素值中的红、绿、蓝三色既可 关键代码实现: 1、获取屏幕DC HDC hDC = ::GetDC(NULL); //获取屏幕DC 2、获取当前鼠标位置像素值 CPoint pt; GetCursorPos(&pt); //得到当前鼠标所在位置 COLO 阅读全文
posted @ 2019-07-05 14:01 ꧁执笔小白꧂ 阅读(2285) 评论(0) 推荐(0)
摘要: 1、截取全屏幕 #include <windows.h> #include <tchar.h> void echo(CHAR* str); int CaptureImage(HWND hWnd, CHAR dirPath[], CHAR filename[]); int main() { echo( 阅读全文
posted @ 2019-07-05 13:53 ꧁执笔小白꧂ 阅读(4106) 评论(3) 推荐(0)
摘要: vc得到屏幕的当前分辨率方法: 1.Windows API调用 int width = GetSystemMetrics ( SM_CXSCREEN ); int height= GetSystemMetrics ( SM_CYSCREEN ); 如果想动态自适应分辨率的变化,处理WM_DISPLA 阅读全文
posted @ 2019-07-05 13:34 ꧁执笔小白꧂ 阅读(1541) 评论(0) 推荐(0)
摘要: JS:JavaScript; JSP:Java Server Pages。 jsp:只是servlet的一个变种,方便书写html内容才出现的,servlet是根本,所有jsp能做的,servlet全能做; JS:是一种基于对象的客户端脚本语言。目的是解决服务器端语言。 JSP在HTML中用<% % 阅读全文
posted @ 2019-05-27 11:11 ꧁执笔小白꧂ 阅读(7445) 评论(0) 推荐(0)
摘要: 定义游标阶段游标里的变量不会被赋值,变量在读取游标时被赋值 存储过程: 定义游标 Begin 读取游标(打开游标) 游标里的·变量赋值 关闭游标 END; 阅读全文
posted @ 2019-02-18 17:30 ꧁执笔小白꧂ 阅读(872) 评论(0) 推荐(0)