2012年11月11日

摘要: 网络编程有服务器和客户端,呵呵:TCP serverserver.cpp:#include <stdio.h>#include <winsock2.h>#include <windows.h>#pragma comment(lib, "WS2_32.lib")int main() { WSADATA data; // 一个和套接字相关的结构 WORD w = MAKEWORD(2, 0); char szmsg[] = "ok got it!\r\n"; ::WSAStartup(w, &data); SOCK 阅读全文
posted @ 2012-11-11 21:31 BBLL 阅读(243) 评论(0) 推荐(0)

2012年11月10日

摘要: 看到一本书 <和孩子一起学编程>里有一个简单的游戏脚本,是个滑雪人过旗子的游戏,还挺好玩的于是下载下来,抄一遍,学习分析一下,哈哈...#!/usr/bin/env python#-*- coding:utf-8 -*-import pygame, sys, random# 滑雪人的不同状态图片文件skier_images = ["skier_down.png", "skier_right1.png", "skier_right2.png", "skier_left2.png", "skier 阅读全文
posted @ 2012-11-10 22:32 BBLL 阅读(4480) 评论(0) 推荐(0)
 
摘要: 一首好听的歌:My life is brilliant.My love is pure.I saw an angel.Of that I'm sure.She smiled at me on the subway.She was with another man.But I won't lose no sleep on that,'Cause I've got a plan. You're beautiful. You're beautiful.You're beautiful, it's true.I saw you face 阅读全文
posted @ 2012-11-10 16:57 BBLL 阅读(195) 评论(0) 推荐(0)