2018年2月2日

Ubuntu下安装jdk

摘要: 骤1:下载jdk 我选择的jdk版本文件: jdk-8u131-linux-x64.tar.gz 步骤2:创建单独的目录 sudo mkdir /usr/local/java 步骤3:将下载的文件复制到我们创建的文件夹下 sudo cp /home/lsk/Downloads/jdk-8u131-l 阅读全文

posted @ 2018-02-02 09:26 奔跑吧,蜗牛! 阅读(166) 评论(0) 推荐(0) 编辑

2018年1月31日

Ubuntu下安装Matplotlib和basemap

摘要: 测试是否成功 到basemap-1.0.7/examples/目录下: python$ from mpl_toolkits.basemap import Basemap $ cd examples/ $ python simpletest.py 阅读全文

posted @ 2018-01-31 14:10 奔跑吧,蜗牛! 阅读(2421) 评论(0) 推荐(0) 编辑

Ubuntu 安装 Beautifulsoup4 版本不兼容问题

摘要: 最近学习linux下的python,安装了个ubuntu最新的系统ubuntu-17.10.1-desktop-amd64,说是支持python最新的版本。在安装bs4的时候,报错了。错误如下 , 上网查之,收到最多的是 然后我发现去哪找这个2to3.py啊?????查找发现这个文件在usr/bin 阅读全文

posted @ 2018-01-31 10:04 奔跑吧,蜗牛! 阅读(472) 评论(0) 推荐(0) 编辑

2013年7月19日

指针函数小用

摘要: #include "stdio.h"typedef int (*FUN)(int x,int y);FUN m_fun;int add(int x,int y){ return x+y;}int sub(int x,int y){ return x-y;}enum method{ Add=1, Sub};void ChooseFun(method md,int x,int y){ switch(md) { case Add: m_fun=add; break; case Sub: m_fun=sub; ... 阅读全文

posted @ 2013-07-19 22:16 奔跑吧,蜗牛! 阅读(172) 评论(0) 推荐(0) 编辑

2013年6月18日

翻转数字

摘要: #include<stdio.h>#include <queue>using namespace std;int reverse(int num) { //write your code here queue<int>temp; int res=0; while(num!=num%10) { temp.push(num%10); num/=10; } num=num%10; temp.push(num); int queue_size=temp.size(); for (int i=0;i<queue_size-1;i++) { int pop=tem 阅读全文

posted @ 2013-06-18 20:45 奔跑吧,蜗牛! 阅读(255) 评论(0) 推荐(0) 编辑

2013年6月13日

关于工具栏真彩位图的加载问题

摘要: /***============================================================================= ======== D C U t i l i t y ======== ... 阅读全文

posted @ 2013-06-13 16:08 奔跑吧,蜗牛! 阅读(539) 评论(0) 推荐(0) 编辑

2013年6月8日

LoadImage

摘要: 【函数】LoadImage【操作系统】Win9x:YWinNT:Y【声明】Function ulong LoadImage(ulong hInst,ref string lpsz,ulong un1,ulong n1,ulong n2,ulong un2) LIBRARY "user32.dll" ALIAS FOR "LoadImageA"【说明】 载入一个位图、图标或指针 函数功能:该函数装载目标,光标,或位图。 函数原型:HANDLE LoadImage(NINSTANCE hinst,LPCTSTR lpszName,UINT uType,int 阅读全文

posted @ 2013-06-08 14:59 奔跑吧,蜗牛! 阅读(443) 评论(0) 推荐(0) 编辑

2013年6月5日

关于std::vector<std::string>的操作

摘要: 知识点1 std::vector<std::string>作为返回参数void GetConfigState(std::vector<std::string>&vtTemp)2 对于std::vector<std::string>取值操作std::vector<std::string>::iterator theIterator;for( theIterator = vtTemp.begin(); theIterator != vtTemp.end(); theIterator++ ) cout<<theIterator-&g 阅读全文

posted @ 2013-06-05 11:48 奔跑吧,蜗牛! 阅读(9262) 评论(0) 推荐(0) 编辑

2013年6月4日

SetLayeredWindowAttributes未定义的解决方案

摘要: 1 对于未定义的风格进行自定义 #define WS_EX_LAYERED 0x00080000 #define LWA_COLORKEY 0x000000012 动态链接函数typedefBOOL(WINAPI *PFN_SETLAYEREDWINDOWATTRIBUTES)( HWND hwnd, COLORREF crKey, BYTE bAlpha, DWORD dwFlags);PFN_SETLAYEREDWINDOWATTRIBUTES SetLayeredWindowAttributes = NULL;HMODULE m_hUser32 = LoadLibrary(_T(&quo 阅读全文

posted @ 2013-06-04 14:36 奔跑吧,蜗牛! 阅读(523) 评论(0) 推荐(0) 编辑

异性窗口 (解决SetLayeredWindowAttributes函数未定义的问题)

摘要: #include <windows.h>#include <WinUser.h>#include <stdio.h>//#include "resource.h"//#include <afxwin.h>#include <math.h>#define TWO_PI (2.0*3.1415926) #define WS_EX_LAYERED 0x00080000 #define LWA_COLORKEY 0x00000001LRESULT CALLBACK MyWindowProc( HWND hwnd, UINT 阅读全文

posted @ 2013-06-04 14:34 奔跑吧,蜗牛! 阅读(653) 评论(0) 推荐(0) 编辑

导航