⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cc

📁 linux上网直通车的整个程序(含源程序)初版(可供局域网
💻 CC
字号:
//#include <gtkmm.h>#include <gtkmm.h>#include <unistd.h>#include "Kpassport.h"#include "Khelper.h"int main(int argc, char *argv[]){    if(argc == 1)    {        //init threads        if(!Glib::thread_supported())              Glib::thread_init(NULL);          gdk_threads_init();        //Create Main Window        Gtk::Main GtkMM(argc, argv);        CKpassport Kpassport;        //gdk_threads_enter();        Gtk::Main::run(Kpassport);          //gdk_threads_leave();    }       CKHelper helper;    int option;    while((option = getopt(argc,argv,"hvpc"))!=-1)    {        switch(option)        {        case 'h':            helper.PrintOptions();            break;        case 'v':            helper.PrintAuthors();            helper.PrintCopyleft();            break;        case 'p': //list all the kpassport process in you system!但是必须命名包括kpassport字            system("ps aux|grep -i kpassport");            break;        case 'c':            helper.PrintChangelog();            break;        }    }    return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -