自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

TONY的专栏

每天进步一点点

  • 博客(34)
  • 资源 (1)
  • 收藏
  • 关注

转载 XAMPP虚拟主机配置,多域名绑定.

有时候你需要一些顶级域名访问方式来访问你本地的项目,这时候就需要配置虚拟主机,给你的目录绑定一个域名,实现多域名绑定访问。(本地的话可以通过修改 hosts 文件随便绑定什么域名比如 www.a.com 或者 localdemo)。现在假定你有两个目录,一个存在于 /xampp/htdocs/a,另一个存在于 /xampp/htdocs/b 。现在你想要在本地测试的时候访问 www.a.c

2014-09-07 07:40:28 579

转载 <?php echo "<script language=javascript>alert('".$var['id']."!');</script>"; ?>

alert('".$var['id']."!');"; ?>

2014-05-08 00:23:03 4315

转载 JS弹窗效果的运用(代码)

JS弹窗效果的运用(代码)浏览:743 |更新:2013-08-22 14:38第一种://关闭,父窗口弹出对话框,子窗口直接关闭echo "window.close();";//关闭,父窗口和子窗口都不弹出对话框,直接关闭echo "";echo "{top.opener =null;top.close();}";e

2014-05-07 23:47:34 601

转载 php 时间加30分钟

$startTime ="10:30"; echo date("H:i", strtotime("$startTime +30 min"));

2014-05-05 01:05:10 11701

转载 Android设置全屏的方法

在开发中我们经常需要把我们的应用设置为全屏,这里我所知道的有俩中方法,一中是在代码中设置,另一种方法是在配置文件里设置!1.在代码中设置(在需要设置全屏的Activity的onCreate方法里面加入如下两段代码)。[java] view plaincopypublic class FullScreenActivitys extend

2013-04-30 14:23:40 564

原创 VC.net 字符串转换成UTF-8形式

using namespace System;using namespace System::Text;void PrintCountsAndBytes( array^chars, Encoding^ enc );void PrintHexBytes( array^bytes );int main(){ // The characters to encode:

2009-03-24 00:55:00 1367

原创 求指定范围内的所有素数

/* Name: 求指定范围内的所有素数 Copyright: tonyee Author: tonyee Date: 20-03-09 18:50 Description: C++ 练习题 */#include using namespace std;class PRIMENUM { int data[25]; int

2009-03-20 20:28:00 1609

原创 超长数列中n个整数排序

 /* Name: 超长数列中n个整数排序 Copyright: tonyee Author: tonyee Date: 20-03-09 18:50 Description: C++ 练习题 */#include using namespace std;class LIST{ int size; int *arr;

2009-03-20 19:55:00 574

原创 分数相加-

/* Name: 分数运算 Copyright: tonyee Author: tonyee Date: 19-03-09 22:23 Description: C++ 练习题 */#include #include using namespace std;// 分数相加类 class Fract{ int num;

2009-03-19 23:07:00 1599

原创 Game Lobby!

/*Name: Game LobbyCopyright: tonyeeAuthor: tonyeeDate: 15-03-09 20:44Description: code for study*/#include #include using namespace std;class Player{public: Player(con

2009-03-15 22:54:00 700

原创 电子宠物!(简单)

// critter caretaker#include using namespace std;class Critter{public: Critter(int hunger = 0, int boredom = 0); void Talk(); void Eat(int food = 4); void Play(int fun = 4);

2009-03-14 00:31:00 1410

原创 井字游戏 指针版

// 指针版// Tic-Tac-Toe 2.0// Plays the game of tic-tac-toe against a human opponent// Uses pointers instead of refernces for function parameters#include #include #include #include us

2009-03-12 23:59:00 436

原创 井字游戏!

// Tic-Tac-Toe// Plays the game of tic-tac-toe against a human opponent#include #include #include #include using namespace std;// global constantsconst char X = X;const char

2009-03-12 23:11:00 553

原创 Hangman!!!

// Hangman#include #include #include #include #include #include #include using namespace std;int main (){ // setup const int MAX_WRONG = 8; vector words; words.pus

2009-03-10 21:52:00 573

原创 Guess My Word

// Guess My Word#include #include #include #include using namespace std;int main (){ enum fields {WORD,HINT,NUM_FIELDS}; const int NUM_WORDS = 5; const string WORDS[NUM_WORDS

2009-03-09 23:11:00 607

原创 Guess My Number!!!

// Guess My Number#include #include #include using namespace std;int main (){ //int t = time(0); srand(time(0)); int theNumber = rand() % 100 + 1; int tries = 0,guess; /

2009-03-09 21:55:00 401

原创 单链表赋值,定位,添加,(C++ ) 简单实现 未整理

#include using namespace std;struct t_node{ int data; t_node *next;};class LINKNODE{ int n;// loop times t_node * nodea ;public: LINKNODE(int i) { n = i; }

2009-03-03 22:19:00 697

转载 C++ 一段代码仅供参考

#include #include #include #include using namespace std;int main(){ char isenter; int num = 0; int max = 0; cout << endl << "Enter the number of students: " ;

2009-03-01 22:30:00 515

转载 单向链表的插入、查找和遍历方法 (c)

单向链表的插入、查找和遍历方法  #include#include#define N 3int Link_Length = N; //记录链表的长度//定义结构体struct t_node{ int data; struct t_node *next;};定义别名typedef struct t_node Node;//定义链表变量

2009-03-01 22:25:00 2556

原创 单链表 赋值与显示 (类)

#include #include using namespace std;struct sLinkNode{ char data; sLinkNode* next;};class CLinkNode{ string str; sLinkNode *sln;public: CLinkNode(string s) { str

2009-03-01 19:20:00 2622

原创 C++ 单链表赋值与显示(过程式)

#include #include using namespace std;struct iLinkNode{ short int data; iLinkNode *next;};struct sLinkNode{ char data; sLinkNode* next;};int main(){ string s; //cin

2009-03-01 17:38:00 3473

原创 正整数转换成字符串

#include using namespace std;class STR{ int num; char s[15];public: STR(int x) { num =x; } void itoa(); void print() { cout<<"n="<<num<<endl; cout<<"string = "<<s<

2009-02-28 21:49:00 975

原创 整数降序排列

#include using namespace std;class Num{ int n; int a[5];public: Num(int x = 0) { for(int i =0;i<5;i++) { a[i]=0; } n = x; } void descrease(); void show() {

2009-02-28 13:42:00 924

原创 二维数组旋转90度输出

#include using namespace std;int main(){ int b[8][8] = {{1,2,3,4},{1,2,3,4},{1,2,3,4},{1,2,3,4}}; int m = 4; for(int i =0;i<m;i++) { for(int j=0;j<m;j++) { cout<<b[i][j]<

2009-02-28 12:46:00 3908 1

原创 二维数组转单向链表

#include using namespace std;class MATRIX{ int m; int sum; int a[40][40];public: MATRIX(int x[][40],int k) { m = k; for(int i = 0;i<m;i++) { for(int j =0;j<m;j++)

2009-02-26 00:02:00 1293

原创 c++ 程序设计实践指导1.2

统计指针数组中每个元素出现的个数 #include using namespace std;class ARP{ int m; int* pa; //array *P int* ps; // sum of same;public: ARP(int x[],int size) { m = size; pa = new int[m];

2009-02-25 21:05:00 601

原创 c++ 程序设计实践指导1.1

 1.1程序改写要求以数组为结构的程序改写为以指针为数据结构 解: //2009 Tonee [email protected]#include using namespace std;class ARP{ int m; int* p; public: ARP(int x[],int size) { m = size; p =

2009-02-24 22:55:00 769 2

转载 读写ini文件的类(转)

Inifile.h /*****************************************************************    文件名:读取当前目录下CIniFile类文件    日期:2004-1-18    作者:chao_jie    E_Mail:[email protected]    功能:系统提供的

2008-12-02 23:41:00 1227 1

原创 赛迪的免费套餐

呵呵,本人是一个自认为(即使公认)也是最懒/滥得一个写码者,几乎没有自己的代码~都是抄抄改改~呵呵,不过不知道大家是不是也是这样...今天简单说一下,昨天一天的成果~大家手里想考软件水平考试的*** 大概花点时间就可以了,下载到赛迪的教程吧,不过好像极少人能看得~因为需要认证,估计没有人破了这个认证吧~呵呵,往下我就不说什么了~ 我只要说的一句话就是,只要你手里下载到赛迪的教程

2008-06-03 12:24:00 567 2

原创 禁止运行某个程序,以QQ游戏为例------QQ游戏杀手(VC6.0)

昨天晚上花了3个小时,写了一个程序 --- QQ游戏杀手~~ 呵呵 有点像病毒~ 起因是因为近一段时间女朋友太能玩游戏了~~ 天天晚上占用我的电脑2~3个小时玩QQ游戏,我倒是不反对她玩游戏但是天天玩就不好了吗?所以约法3张,只需周末玩,同样为了防止偷食,呵呵,就开发了这个程序~。事先声明,我对QQ没有恶意哦~这个小程序因该应该具有的几个功能 1。查找进程2。杀掉进程3。隐藏自

2007-10-15 23:30:00 4294 3

原创 VC++50个必做例子之鼠标划线

 在视图类开头定义class CMouseView : public CView...{protected: // create from serialization only    CMouseView();    DECLARE_DYNCREATE(CMouseView)// my add    CString m_ClassName;    int m_Dragging;  //鼠标

2007-09-26 02:47:00 1037

原创 VC++50个必做例子之显示

学习MFC 看了很多书,有点乱~看了孙鑫老师教程更乱~我知道自己的底子不好~ 所以找了好多文字版的~推荐:侯捷的简体中文版VC++深入浅出(快速略读)推荐:孙鑫老师的视频教程前3集 多看两边,(再快读VC++深入浅出)基本明白以后~ 就看我手里这本VC++必做 50个例子~~原因是因为,我看了侯老师的书,孙老师的教程,头有点乱~ 我只是想点点拽拽做几个程序~都明白了

2007-09-26 00:46:00 603

原创 动态加在一个新按钮~

我一边看着教程一边抄的private void buttuon1_click(object sender,systme.eventatgs e){    ((button)sender).text = "Clicked!";    button newbutton = new button();    newbutton.click+= new eventhandler(new

2007-09-11 12:40:00 420

原创 我回来了~~

我回来了~但是我不是胡汉三,我只是一个喜欢程序人~从c,c++,vb,delphi,.net ..什么都接触过但是没有什么成就~~天天不是靠人家的代码就是改别人的网页~~近一段时间由天天什么都没有作~~碌碌无为~看着身边的朋友一个一个都强大~~心不甘~就这样放弃~所以我回来了~这次不把天看穿,地做烂,我就不回头了~~ 

2007-09-03 23:01:00 380

显示进程的路径

显示进程的路径(VC)

2007-10-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除