• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

悠悠客

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

2014年4月27日

指针 &取地址标志

摘要: char * a1; short * b1; int * c1; long * d1;只要带有*号,都占4个字节,不管*号多少个都是一样。要查看一个变量的所占的类型,就把变量名去掉,就是它所占的类型。如:int a[10] 把a 去掉,就成 int [10] char * a1 把a1去掉,就是 char * 类型了#include "stdafx.h"struct age{ char d;... 阅读全文

posted @ 2014-04-27 14:01 悠悠客 阅读(610) 评论(0) 推荐(0)

2014年4月26日

strcpy 库函数 拷贝函数

摘要: strcpy 是在string.h 里面#include "stdafx.h"#include "string.h"struct Student{int Sex;char name[10];short b;};int main(int argc, char* argv[]){ Student aa; strcpy(aa.name,"shusheng"); printf("%x\n",size... 阅读全文

posted @ 2014-04-26 23:54 悠悠客 阅读(351) 评论(0) 推荐(0)

折半查询,一定要把数组按大小排列好才可以查询的到

摘要: 1.以上有18个数字 分别为(2,8,9,1,5,6,12,7,22,11,35,28,17,60,18,100,33,99)用折半查找,找出18这个数字的位置。(提示:折半查找是要先排序好的)C语言实现代码 int a[18]={1,2,5,6,7,8,9,11,12,17,18,22,28,33,35,60,99,100},min=1,max=17,mid,n=18; //max为数列长度,a... 阅读全文

posted @ 2014-04-26 20:29 悠悠客 阅读(222) 评论(0) 推荐(0)

2014年4月25日

第十四讲 多维数组学习

摘要: 多维数组的汇编跟一维的类似,不过要细心看才能找出规律。还是看代码 int a[3][3]; a[0][0]=0; a[0][1]=0; a[0][1]=0; a[1][0]=1; a[1][1]=1; a[1][2]=1; a[2][0]=2; a[2][1]=2; a[2][2]=2;画图出来是如下:int a[3][3]0 1 2 x0 0 1 21 0 1 22 0 1 2y由以... 阅读全文

posted @ 2014-04-25 21:08 悠悠客 阅读(170) 评论(0) 推荐(0)

第十三讲 数组推算

摘要: 例如下列函数:int main(int argc, char* argv[]){ char a[5]; a[1]=1;// a[2]=2; printf("Hello World!\n"); return 0;}此处的char为一个字节,(注意:如果是INT 就是4个字节,short就是2个字节0040D700 push ebp0040D701 mov ebp,esp0040D... 阅读全文

posted @ 2014-04-25 17:07 悠悠客 阅读(168) 评论(0) 推荐(0)

2011年6月26日

C# 单击一个按钮 发出一个声音 ··

摘要: SoundPlayer Music = new SoundPlayer();Music.SoundLocation = Application.StartupPath + URL/音频文件;Music.Play();注意上面要加上using system.media;SoundPlayer player = new SoundPlayer("system.wav");player.Play();第一个() 放debug下的声音就行了啊 System.Media.SystemSounds.Asterisk.Play();这样的是获取系统声音的,你也可以用这样的方法http:/ 阅读全文

posted @ 2011-06-26 21:35 悠悠客 阅读(1638) 评论(0) 推荐(0)

2011年6月25日

Multiple Document Interface应用程序

摘要: View Code 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 8 using System.Windows.Forms; 9 using System.IO; 10 11 namespace WindowsFormsApplication5 12 { 13 public partial class F 阅读全文

posted @ 2011-06-25 23:22 悠悠客 阅读(227) 评论(0) 推荐(0)

 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3