66.编写字符串复制的程序(用指针变量处理). 1 #include 2 3 void main(void) 4 { 5 char a[50], b[80], *p, *q; 6 7 p = a; 8 q = b; 9 printf("Input data: "...
分类:
编程语言 时间:
2015-12-08 15:57:03
阅读次数:
182
List集合的特点: 有序(存储和取出的元素一致),可重复的。例如 List集合的特有功能: * A:添加功能 * void add(int index,Object element):在指定位置添加元素 * B:获取功能 * Object get(int index):获取指定位置的元素...
分类:
编程语言 时间:
2015-12-08 14:34:12
阅读次数:
131
package com.wzw.util;import java.lang.reflect.Array;import java.util.ArrayList;import java.util.List;public class HuiWen {public static void main(Stri...
分类:
编程语言 时间:
2015-12-08 14:28:28
阅读次数:
166
形参有默认值,表是该参数可以传,可以不传。例如:private void button2_Click(object sender, EventArgs e){ textBox2.Text += div(1, 3, 5).ToString() + " | "; textBox2.Text ...
// 作者:火浇青春// 日期:20151125#include #define N 10 //宏定义,确定地图的宽度#define M 10 //宏定义,确定地图的长度void scene(char put[N][M]);//游戏背景输出函数的声明int caozuo(char put[N][.....
分类:
其他好文 时间:
2015-12-08 14:23:20
阅读次数:
158
主要使用了tableView的代理方法行将要显示的时候- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(nonnull NSIndexPath *...
分类:
其他好文 时间:
2015-12-08 14:22:27
阅读次数:
153
1、猜数字小游戏package cn.jiemoxiaodi_02;import java.util.Scanner;/** * 猜数字小游戏 * * @author huli * */public class GuessNumberDemo { public static void mai...
分类:
编程语言 时间:
2015-12-08 14:21:52
阅读次数:
188
首先新建一个简单的C++程序打开VS2013-文件-新建-项目-选择Win32 控制台程序添加-新建项-选择C++源文件编写如下代码 1 #include 2 using namespace std; 3 4 void out() 5 { 6 cout << "朋友" << endl; 7...
分类:
其他好文 时间:
2015-12-08 14:18:30
阅读次数:
224
、strcpy 函数名: stpcpy 功 能: 拷贝一个字符串到另一个 用 法: char *stpcpy(char *destin, char *source); 程序例: #include #include int main(void) { char string[10]...
分类:
其他好文 时间:
2015-12-08 12:56:13
阅读次数:
227
一、点语法(一)认识点语法声明一个Person类: 1 #import 2 3 @interface Person : NSObject 4 { 5 int _age;//默认为@protected 6 } 7 8 - (void)setAge:(int)age; 9 - (int)a...
分类:
其他好文 时间:
2015-12-08 12:56:07
阅读次数:
104