摘要: 最近又粗粗看了遍C++ primer,又看到一些已然忘了或者以前都不知道的C特性,指针什么的真是太难以完全掌握了>_数组;第二次解引用,是数组名作为数组首地址隐式转化为指针然后解引用为数组元素),不能因2次解引用就说p是指针的指针(就在这儿想了好久)。二维数组int B[10][10]; //再用二维数组说明,这个作为书上的例子,比较常用int (*p)[10] = B; //二维数组名直接赋值,因为二维数组名相当于对一维数组取地址(类比:一维数组名相当于对其元素取地址;一维数组就是二维数组的元素!)int (*p)[10] = &B[0]; //与上面的赋值同样,这就是一维数组 阅读全文
posted @ 2013-11-04 17:20 _Geink 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 原文地址:[http://www.script-tutorials.com/whirling-dropdown-menu/](http://www.script-tutorials.com/whirling-dropdown-menu/)译者:[晋文格墨](http://xiebaochun.github.io/)很多下拉菜单都可以通过css3的选择器轻松实现。只要稍微激发一下你的创作灵感,你就可以做出一个真实而独特的设计。在今天的教程中,我们将创建一个特别的css3下拉菜单,当鼠标移动到父级菜单项时将会呈现新的下拉特效,子菜单项将会以旋转的方式出现。只要一步一步地跟着本教程就能创建这个菜单。 阅读全文
posted @ 2013-11-04 15:36 _Geink 阅读(628) 评论(0) 推荐(0) 编辑
摘要: IntroductionAs there was no text box in the XNA environment I was forced to create a text box by myself, and wanted to share the solution here for programmers.Using the CodeFirst think that we need to draw our text, so what do we need to wrap text in a rectangle? Below is my source code to wrap text 阅读全文
posted @ 2013-09-19 12:22 _Geink 阅读(258) 评论(0) 推荐(0) 编辑
摘要: In this article we will be working on using Windows Controls and WPF UserControls inside an XNA Game Project.They tell Windows Controls cant be used inside an XNA game let alone WPF. Well, that has been proved in this article.Components:#### Windows Controls we’ll be using ####ButtonTextBoxCheckBoxE 阅读全文
posted @ 2013-09-19 12:21 _Geink 阅读(179) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;using System.Diagnostics;using System.IO;//Add MySql Libraryusing MySql.Data.MySqlClient;namespace ConnectCsharpToMysql{class DBConnect{ private MySqlConnection connection; private string server; priv... 阅读全文
posted @ 2013-09-19 12:17 _Geink 阅读(10086) 评论(0) 推荐(0) 编辑