随笔分类 - linux
摘要:apt install mate-session-manager mate-desktop-environment mate-applet-brisk-menu mate-utils ubuntu-mate-artwork apt-get install -d build-essential lib
        阅读全文
            
摘要:sys/types.h:数据类型定义 sys/socket.h:提供socket函数及数据结构 netinet/in.h:定义数据结构sockaddr_in arpa/inet.h:提供IP地址转换函数 netdb.h:提供设置及获取域名的函数 sys/ioctl.h:提供对I/O控制的函数 sys
        阅读全文
            
摘要:#include #include #include #include #include class MagicSand : public Vrui::Application, public GLObject { public: MagicSand(int & argc, char ** argv) :Vrui::Application(argc, argv) ...
        阅读全文
            
摘要:#include #include #include #include #include using namespace std; enum CELL_STATE { CELL_EMPTY, CELL_O, CELL_X }; enum GAME_STATE { X_TURN, O_TURN, X_WON, O_WON, DRAW }; class Game { public: ...
        阅读全文
            
摘要:#include int main() { Display * dsp = XOpenDisplay(NULL); int screenNum = DefaultScreen(dsp); unsigned long white = WhitePixel(dsp, screenNum); unsigned long black = BlackPixel(dsp,...
        阅读全文
            
摘要:概述在Linux环境下,pthread库提供的pthread_create()API函数,用于创建一个线程。线程创建失败时,它可能会返回ENOMEM或EAGAIN。这篇文章主要讨论线程创建过程中碰到的一些问题和解决方法。创建线程首先,本文用的实例代码example.c:/* example.c*/#...
        阅读全文
            
摘要:Valgrind 概述体系结构Valgrind 是一套Linux下,开放源代码(GPL V2)的仿真调试工具的集合。Valgrind由内核(core)以及基于内核的其他调试工具组成。内核类似于一个框架(framework),它模拟了 一个CPU环境,并提供服务给其他工具;而其他工具则类似于插件 (p...
        阅读全文
            
                    
                
浙公网安备 33010602011771号