avatar
Articles
415
Tags
259
Categories
26

Theqiqi_blog
Search

Theqiqi_blog

5.用C语言在windows中使用https协议浏览网页
Created2024-08-23|C with Socks|C•Windows•Socks
[toc] 用C语言在windows中使用https协议浏览网页 安装openssl库 在使用OpenSSL的静态链接库时,除了添加 libcrypto.lib;libssl.lib;,还需要添加系统的依赖库:crypt32.lib;WS2_32.lib; 1.用C语言在windows中使用https协议浏览https://www.bilibili.com/WinClient.c123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 ...
4.用C语言在windows中使用http协议浏览网页
Created2024-08-23|C with Socks|C•WinSock•Http
[toc] 用C语言在windows中使用http协议浏览网页1.用C语言在windows中使用http协议浏览静态网页WinServer.c这个服务器程序将能够处理GET请求,并返回一个简单的HTML页面。 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113//WinServer.c#include <stdio.h>#include <stdlib.h>#include <string.h>#include <winsock2.h>#pragma comment(lib, "ws2_32.lib")#pra ...
3.用C语言在windows中使用http协议发送文本消息
Created2024-08-23|C with Socks|C•WinSock•http
[toc] 用C语言在windows中使用http协议发送文本消息1. 用C语言在windows中使用http协议创建一个服务端程序,输出hello,world WinServer.c 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889//WinServer.c#include <stdio.h>#include <stdlib.h>#include <string.h>#include <winsock2.h>#pragma comment(lib, "ws2_32.lib")#define PORT 8080#define BUFFER_SIZE 1024void handle_request(SOCKET client_so ...
1.在windows窗口程序使用GDI中平面图形
Created2024-08-23|C_Windows_Graphi|C•Windows•Graphi•GDI
[toc] 使用GDI在VM_PAINT消息中画图1.在窗口程序中画一个像素点12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152#include <windows.h>// 窗口过程函数LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { switch (uMsg) { case WM_PAINT: { PAINTSTRUCT ps; HDC hdc = BeginPaint(hwnd, &ps); // 设置像素颜色为红色 SetPixel(hdc, 40, 40, RGB(255, 0, 0)); EndPaint(hwnd, &ps); } break; case WM_ ...
2.用C语言在windows中使用UDP协议发送文本消息
Created2024-08-23|C with Socks|C•WinSock•IPV4•IPV6•UDP
[toc] 用C语言在windows中使用UDP协议发送文本消息1.用C语言在windows中使用UDP协议发送一句文本消息1.使用C语言在windows中创建服务端程序接收一句文本消息12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970//WinServer.c#include <winsock2.h>#include <ws2tcpip.h>#include <stdio.h>#include <stdlib.h>#pragma comment(lib, "WS2_32.lib")#define BUF_SIZE 256int main() { WSADATA wsaData; SOCKET sock; struct sockaddr_in serverAddr, client ...
1.用C语言在windows中使用TCP协议发送文本消息
Created2024-08-23|C with Socks|C•WinSock•TCP•IPV4•IPV6
[toc] 用C语言在windows中使用TCP协议发送文本消息1.用C语言在windows中使用TCP协议发送一句文本消息1.使用C语言在windows中创建服务端程序接收一句文本消息123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778//WinServer.c#include <stdio.h>#include <stdlib.h>#include <string.h>#include <winsock2.h>#include <ws2tcpip.h>#pragma comment(lib, "ws2_32.lib") // 链接 Winsock 库int main() { WSADATA wsaData; SOCKET serverSoc ...
10.使用C语言创建一个MIDI格式的文件
Created2024-08-22|C_Sound|C•Sound
[toc] 使用C语言在Windows中创建一个MIDI格式的文件1.使用C语言在Windows中创建一个MIDI格式的文件(未能成功)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <stdint.h>typedef struct { char chunk_type[5]; // Chunk type uint32_t header_size; // Header s ...
9.使用C语言将PCM文件转为对应的音符与频率
Created2024-08-22|C_Sound|C•Sound
[toc] 使用C语言将PCM文件转为对应的音符与频率(毫无准确率)1.准备FFTW64库 使用vcpkg安装fftw3库 2.使用C语言将PCM文件转为对应的频率123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <stdlib.h>#include <fftw3.h>#include <math.h>void analyze_pcm(const char* filename) { // 打开 PCM 文件 FILE* file = fopen(filename, "rb"); if (!file) { printf("无法打开文件: %s\n", filename); ...
8.用C语言与音符播放钢琴曲梦中的婚礼
Created2024-08-22|C_Sound|C•Sound•Piano
[toc] 用C语言与音符播放钢琴曲梦中的婚礼1.使用MDI函数播放钢琴曲卡农1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253#include <stdio.h>#include <windows.h>#pragma comment(lib, "winmm.lib")enum Scale { Rest = 0, C8 = 108, B7 = 107, A7s = 106, A7 = 105, G7s = 104, G7 = 103, F7s = 102, F7 = 101, E7 = 100, D7s = 99, D7 = 98, C7s = 97, C7 = 96, B6 = 95, A6s = 94, A6 = 93, G6s = 92, G6 = 91, F6s = 90, F6 = 89, E6 = 88, D6s = 87, D6 = 86, C6s = 8 ...
6.使用C语言将PCM文件编码成WAV文件
Created2024-08-21|C_Sound|C•Sound
[toc] C语言将PCM编码成WAV文件 准备一个pcm文件 编写代码并编译main.exe 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899#include <stdio.h>#include <stdlib.h>#include <string.h>#include <stdint.h>#include <assert.h>#include <sys/stat.h>#pragma warning(disable:4996)size_t getFileSize(const char* filename) { struct stat st; if (stat(f ...
1…272829…42
avatar
Theqiqi
Articles
415
Tags
259
Categories
26
Follow Me
Announcement
This is my Blog
Recent Post
03-反馈流2026-08-21
02-错误流2026-08-21
01-控制流2026-08-20
05-多系统协作的十条流2026-08-19
04-多层系统的十条流2026-08-18
Categories
  • C with Socks16
  • C_Sound10
  • C_Windows_Graphi9
  • Cpp5
  • Cpp_Socket4
  • C语言在Windows中实现抓包4
  • C语言的万种用法9
  • Debian1
Tags
十阶段 接口先行 Qt主题架构 WindowsDriver python 从输入到交互 select LinuxDriver 入口系统 UDP服务器与可靠性 微服务与组装边界 DLL javascript 多系统组成的网络通信软件 Piano 拆解资源 游戏类型演化 Kali 建模与逆向 BSD Sockets x86汇编程序 IPV4 Drvier 认知能力分解 技术流 qemu Ninja 业务流程到功能点 用头文件验证依赖 引擎组装 Sound 从状态到系统 epoll QEMU 依赖接口 shell 依赖关系 Graphi 拆解美术 只有组件的子系统如何被加载
Archives
  • August 2026128
  • January 20261
  • April 20251
  • March 202595
  • February 202523
  • September 20242
  • August 202471
  • June 20242
Info
Article :
415
UV :
PV :
Last Update :
©2020 - 2026 By Theqiqi
Framework Hexo|Theme Butterfly
Search
Loading the Database