• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
一蓑烟雨
C/C++,Linux,语音技术
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页
2011年12月2日
sencha touch 2--button\slider\email\password
摘要: 1、代码test1.js 1 /** 2 * @author huanghuang 3 */ 4 5 Ext.application({ 6 tabletStartupScreen: 'tablet_startup.png', 7 phoneStartupScreen: 'phone_startup.png', 8 icon: 'icon.png', 9 glossOnIcon: false,10 launch:function(){11 Ext.create("Ext.Panel",{12 fullscre... 阅读全文
posted @ 2011-12-02 15:06 lovemu 阅读(638) 评论(0) 推荐(0)
sencha touch 2--audio
摘要: 1、下载、安装 Aptana Studio 3.0.3;2、创建新的工程HelloTouch;3、把sencha touch2中的文件拖到新的工程目录下;要用到的文档包括:css-debug、touch/example、sencha-touch-all-debug.js。4、创建.html和.jsindex.html 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 2 "http://www.w3.org/TR/html4/loose.dtd"> 3 <h 阅读全文
posted @ 2011-12-02 12:00 lovemu 阅读(1052) 评论(0) 推荐(0)
2011年12月1日
C#:从字符串反转看字符串处理
摘要: 题目:接收用户输入的一个字符串,将其中的字符以与输入相反的顺序输出。方法一: 不可直接输出字符串,需要遍历输出 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace StrTest 7 { 8 class Program 9 {10 static void Main(string[] args)11 {12 string user = Console.ReadL... 阅读全文
posted @ 2011-12-01 09:42 lovemu 阅读(7395) 评论(7) 推荐(1)
2011年11月30日
C/C++与C#区别(5)
摘要: 二维数组定义C/C++:int a[][]= {{1,1,3,2},{5,9,0,2},{3,4,7,5}}; int **a= {{1,1,3,2},{5,9,0,2},{3,4,7,5}};C#:二维固定矩阵 int[,] a={{1,1,3,2},{5,9,0,2},{3,4,7,5}}; 参差矩阵定义(二维可变数组):int[][] a=new int[3][];(1)C#下二维数组应用 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 ... 阅读全文
posted @ 2011-11-30 16:54 lovemu 阅读(289) 评论(0) 推荐(0)
foreach和for
摘要: 1、foreach循环与for循环输出结果比较,能达到一样的输出效果。 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace ForeachApplication 7 { 8 class Program 9 {10 static void Main(string[] args)11 {12 int[] a = { 1,5,9,20,16};13 ... 阅读全文
posted @ 2011-11-30 12:00 lovemu 阅读(287) 评论(0) 推荐(0)
2011年11月28日
C/C++与C#区别(4)
摘要: 1、数组定义 C/C++: int a[]; C#: int[] a;2、初始化数组 C/C++: int a[] = new int[5]{1,4,2,10,7}; C# : int[] a = new int[5]{1,4,2,10,7};3、一个小程序Program.cs 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace array 7 { 8 class Program 9 {10 ... 阅读全文
posted @ 2011-11-28 10:49 lovemu 阅读(229) 评论(0) 推荐(0)
枚举与结构体
摘要: 1、结构体和枚举一样,都是在代码的主体外部声明的。 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace StructEnum 7 { 8 enum orientation : byte 9 { 10 north = 1,11 south = 2,12 east = 3,13 west = 414 }15 struct route16 ... 阅读全文
posted @ 2011-11-28 10:26 lovemu 阅读(2878) 评论(0) 推荐(0)
2011年11月22日
C/C++与C#区别(3)
摘要: C#:switch语句中运行完case后,必须要有break。 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace SwitchTest 7 { 8 class Program 9 {10 static void Main(string[] args)11 {12 int v = 2;13 switch (v)14 ... 阅读全文
posted @ 2011-11-22 17:32 lovemu 阅读(252) 评论(0) 推荐(0)
C/C++与C#区别(2)
摘要: C#:if判断语句中必须为布尔值,否则编译不通过1 int v1=10,v2=7;2 if(v1>v2)3 {4 Console.WriteLine("v1>v2");5 }6 else7 {8 Console.WriteLine("v1<v2");9 }C/C++比较灵活,无此限制 阅读全文
posted @ 2011-11-22 08:58 lovemu 阅读(218) 评论(0) 推荐(0)
2011年11月21日
C/C++与C#区别(1)
摘要: C需要在输出语句中指明数据类型1 int num;2 printf("num is %d\n",num);C++不需要在输出语句中指明数据类型1 int num;2 cout<<"num is "<<num<<endl;C# 不需要在输出语句中指明数据类型1 int num;2 Console.Write("num is {0}",num);3 Console.WriteLine(); 阅读全文
posted @ 2011-11-21 08:52 lovemu 阅读(208) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3