摘要:
#include <X11/Xlib.h> #include <stdlib.h> #include <stdio.h> int main() { // 1. 打开与X服务器的连接 Display *display = XOpenDisplay(NULL); if (!display) { fpri 阅读全文
posted @ 2025-07-17 11:17
华腾智算
阅读(6)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> /* 基本类型定义 */ typedef uint32_t gfx_color_t; /* 图形上下文结构体 */ typedef struc 阅读全文
posted @ 2025-07-17 11:14
华腾智算
阅读(15)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <limits.h> // 用于 CHAR_BIT(每字节的位数) // 函数:打印任意数据的二进制表示 void printBinary(const void *data, size_t size) { const unsigned char 阅读全文
posted @ 2025-07-17 10:51
华腾智算
阅读(12)
评论(0)
推荐(0)

浙公网安备 33010602011771号