`
qvb3d
  • 浏览: 171319 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
使用python-pexpect   1.首先是安装     前提是python2.5以上你已经安装好了   2.下载pexpect_2.1.orig.tar.gz       tar xzvf pexpect_2.1.orig.tar.gz        cd pexpect-2.1/       python  setup.py  install       没权限时,记得sudo   3. 编写linkssh.py   #!/usr/bin/env python # -*- coding: utf-8 -*- # filename: pexpe ...
Xcode      Start new software project for Mac OSX      New Project->Framework & Library | Cocoa Framework     Save name->teste     Other Sources ->right mouse ->Add->New File...     New File ->Mac OSX C and C++ ->C File     main.c     Change arch ->Release|i386 ...
html css3 阴影字 内嵌入字  圆角 按钮 渐变 自己定义实例 要使用非ie 全面支持html5 和 css3的 浏览器     css3.rar 源内容
苹果OSX系统,我自己编写的tomcat启动程序   tomcat.app 是本人写的程序
在Linux 下编译Opengl 程序   1. 安装 sudo apt-get install freeglut3-dev     2. 在程序    里面修改    加入   #include <stdio.h> #include <GL/glut.h> void myDisplay(void) {      glClear(GL_COLOR_BUFFER_BIT);      glRectf(-0.5f,-0.5f,0.5f,0.5f);      glFlush();  }  int main(int argc,char * ...
  在windows 编译 Opengl 程序 要有一个mingw-gcc 的环境   1.原始include库和.a库,还有dll   2.简单opengl 程序   #include <qvbinc/glut.h> void myDisplay(void) {      glClear(GL_COLOR_BUFFER_BIT);      glRectf(-0.5f,-0.5f,0.5f,0.5f);      glFlush();  }  int main(int argc,char *argv[])  {      glutInit(& ...
  OSX 下建立 OpenGL 程序 前提是安装xcode   1.首先我们引用一个简单的opengl程序     #include <stdio.h>   void myDisplay(void)   {        glClear(GL_COLOR_BUFFER_BIT);        glRectf(-0.5f,-0.5f,0.5f,0.5f);        glFlush();    }    int main(int argc,char *argv[])    {        glutInit(&argc, ...
用qt4 显示一个jpg图片 1.资源文件准备   ico.ico  程序图标  open.jpg 程序要显示的图片 2.资源文件建立    ico.rc   以下是内容   A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "ico.ico"   保存   bitmap.qrc   以下是内容   <RCC> <qresource prefix="/images">  <file>ico.ico</file>  <file>open.jpg&l ...
首先 查看一下 你的系统和OSX 差了几个小时 我安的是ubuntu linux 差了一个小时 也就是说我OSX时间是            14:20 那么我的虚拟机UTC时间就是   15:20   进入Linux 终端  tzselect Please identify a location so that time zone rules can be set correctly. Please select a continent or ocean.  1) Africa  2) Americas  3) Antarctica  4) Arctic O ...
gcc的socket http通信程序   #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include <arpa/inet.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <errno. ...
检查你的机器是大端格式还是小端格式的C程序   #include <stdio.h> union check    {       int high;       char low;    } test_ok; int main(int argc,char *argv[]) {    short test=0x0110;    char *p=(char *)&test;    if(p[0]==0x10)    {       //sm format       printf("This arch is small format ...
  <? header("Content-type:text/html; charset=utf-8"); session_start(); $sdate=date("Y-m-d G:i:s"); $ydate=date("Y"); $mdate=date("m"); $ydate=$ydate+0; $mdate=$mdate+1; if(($ydate>=2011)&&($mdate>7))    {     echo "<body bgco ...
Windows下各种C/C++ 编译方法及对比以下是介绍给大家,在Windows中使用c/c++编译器我个人简单汇编了一些,把一些c放在一起对比vc bc5 gcc .net 我这里有已经打包好的简洁的全部环境包   首先我们写两个简单的通用的程序 test.c #include <stdio.h>int main(int argc,char *argv[]){   printf("\nTest\n");   return 0;} 保存这个是console的 wintest.c #include <windows.h>int WINAPI ...
  jsp+strut2.1使用 前几天写的都是c/c++类的给朋友们 现在给个b/s框架类的给朋友们分享一下,全是为了服务大家   源码+说明文件后面有下载......   我这里用的是myeclipse8.5 File->New->Web Project   1. 输入teststruct 这是一个基本的web项目,目前没有加入任何jar,如果你使用eclipse也是同样 建立一个空的web项目       2. Myeclipse->Project Capabilities->Add Struts Capabilities ...
gcc简单的tcpip http通信 功能完成一个Get 页面功能的 #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include <arpa/inet.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #inclu ...
Global site tag (gtag.js) - Google Analytics