- 博客(40)
- 资源 (2)
- 收藏
- 关注
原创 asp.net连接oracle存储过程
public partial class UserReg : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) {
2011-11-27 10:17:22 428
原创 利用指针输出数组时发现一个问题,还请指教
# include "stdio.h"int main(void){int i;int a[10];int *p;printf("input arrey:\n");for (i = 0; i scanf("%d", &a[i]);f
2011-10-16 11:02:08 663 5
原创 利用函数和指针实现最小数和第一个数交换,最大数和最后一个数交换
/* 写三个函数,输入函数,输出函数,处理函数,找出输入数中最小的数,和第一个数交换,最大的数和最后一个数交换*/# include void inFunc(int * a,int n);void outFunc(int * a,int n);void swap
2011-10-10 12:42:13 1985
原创 指针和指针变量
这两天看数据结构,感觉看不懂,因为对指针的理解还是不够,所以再看看C语言的指针,下面是我对指针和指针变量的理解,希望可以在你刚开始理解学习指针的时候帮助到你/* * my_1.c * * Created on: 2011-9-30 * Au
2011-10-01 11:10:08 532
原创 静态表的插入和删除
/* * 1_1.c * * Created on: 2011-9-21 * Author: sansan * 静态表的各种操作 */# include "stdio.h"# define MaxSize 10//输入函数void s
2011-09-21 20:41:32 468
原创 c++简单的学生管理系统----继承练习
# include # include using namespace std;const char null = '\0';static char * strsave(char * s) { char * p; p = new char[
2011-09-05 18:59:48 2360
原创 继承的构造函数和析够函数
/* * 4_13.cpp * * Created on: 2011-9-2 * Author: administrator *//* * 4_12.cpp * * Created on: 2011-8-29 * Author: administrator * 多重继承 */#
2011-09-02 20:00:58 378
原创 关于c语言下面求正余弦后面是弧度还是角度的问题
/* * 4.cpp * * Created on: 2011-8-17 * Author: san */# include # include # define PI 3.1415926int main(void){
2011-08-17 20:55:46 2902
原创 学生平均成绩
/* * student.cpp * * Created on: 2011-8-7 * Author: san */#include #define MAX 50int main(void){//定义变量in
2011-08-16 18:08:08 464
原创 买苹果
/* * 49.cpp * * Created on: 2011-8-8 * Author: san */#include int main(void){//定义变量int n = 2;int day = 0
2011-08-16 18:07:28 400
原创 分离整数的各位数
/* * 1.cpp * * Created on: 2011-8-8 * Author: san */#include int part(int n){//int i = 0;int j = 0;if (n
2011-08-16 18:06:35 763
原创 分糖果问题
/* * 51.cpp * * Created on: 2011-8-9 * Author: san */# include int main(void){int n;float sum1;float sum
2011-08-16 18:05:53 458
原创 加油站加油
/* * 46.cpp * * Created on: 2011-8-8 * Author: san */#include int main(void){float x;char y;char z;flo
2011-08-16 18:05:26 1341
原创 回文字符串
/* * 37.cpp * * Created on: 2011-8-8 * Author: san */# include //自定义函数,实现回文字符串的判断int palind(char str[], int k,
2011-08-16 18:05:03 285
原创 字符串倒置
/* * 35.cpp * * Created on: 2011-8-8 * Author: san */# include # include #define N 100//定义字符串倒置函数char conv
2011-08-16 18:04:35 513
原创 字符串连接
/* * 38.cpp * * Created on: 2011-8-8 * Author: san */#include int main(void){int i = 0;//定义循环变量int j = 0;/
2011-08-16 18:04:11 273
原创 小球落地
/* * 47.cpp * * Created on: 2011-8-8 * Author: san */# include int main(void){int i;float h = 100;float
2011-08-16 18:03:46 318
原创 平均身高
/* * 44.cpp * * Created on: 2011-8-8 * Author: san */# include //自定义函数,求年龄的平均成绩float average(float array[], in
2011-08-16 18:03:11 646
原创 新同学的年龄
/* * 52.cpp * * Created on: 2011-8-9 * Author: san */# include int main(void){long a[10] = {0};long s[
2011-08-16 18:01:57 391
原创 递归求年龄
/* * 43.cpp * * Created on: 2011-8-8 * Author: san */# include //自定义函数求年龄int age(int n) {int f;if (n == 1)
2011-08-16 18:01:14 841
原创 灯塔数量
/* * 49.cpp * * Created on: 2011-8-8 * Author: san */# include int main(void){int n = 1;int m;int sum;
2011-08-16 18:00:44 333
原创 猴子吃桃
# include int main(void){int day = 9;int x1;int x2 = 1;//最后一天的桃子while (day > 0){x1 = (x2 + 1) * 2;//前一天的桃子等于后一天的桃子加1
2011-08-16 18:00:16 191
原创 宏实现值的交换
/* * 56.cpp * * Created on: 2011-8-9 * Author: san */# include # define swap(a, b){int c; c = a; a = b; b = c;}//宏定义
2011-08-16 17:59:39 268
原创 百鸡百钱问题
/* * 53.cpp * * Created on: 2011-8-9 * Author: san */#include int main(void){int cock;int hen;int chick;
2011-08-16 17:58:58 317
原创 统计字符
/* * 34.cpp * * Created on: 2011-8-8 * Author: san */# include int main(void){//定义变量char c;int letters =
2011-08-16 17:58:06 319
原创 简单结构体
/* * 1.cpp * * Created on: 2011-8-16 * Author: san * 简单结构体,不完整的程序 */# include struct{int num;ch
2011-08-16 17:57:00 239
原创 文件简单操作
/* * 1.cpp * * Created on: 2011-8-16 * Author: san * 键盘输入一些字符,送到磁盘上 */# include # include int main(void
2011-08-16 17:55:58 193
原创 简单链表
/* * 1.cpp * * Created on: 2011-8-15 * Author: san * 建立一个简单的链表且输出 */# include //# define NULL 0struct s
2011-08-16 17:55:26 194
原创 完整链表
/* * 2.cpp * * Created on: 2011-8-16 * Author: san * 链表的建立,输出,删除,插入 * 11时42分38秒 * 可以同时删除多个记录,插入多个记录请参考谭浩强主编《c语言程
2011-08-16 11:43:57 420
原创 结构体数组
/* * 2.cpp * * Created on: 2011-8-15 * Author: san */# include # include struct person{char name[20];int
2011-08-15 18:47:48 223
原创 结构体
/* * 1.cpp * * Created on: 2011-8-15 * Author: san */# include int main(void){struct student{long int nu
2011-08-15 18:47:26 226
原创 指向指针的指针
/* * 8.cpp * * Created on: 2011-8-14 * Author: san */# include int main(void){int i;char **p;char *
2011-08-15 18:46:43 250
原创 指针数组
/* * 7.cpp * * Created on: 2011-8-14 * Author: san */# include # include int main(void){void sort(char * n
2011-08-15 18:46:14 196
原创 返回指针的函数
/* * 5.cpp * * Created on: 2011-8-13 * Author: san */# include float * search(float (* pointer)[4], int n);
2011-08-15 18:45:42 276
原创 指向函数的指针作函数的参数
/* * 3.cpp * * Created on: 2011-8-13 * Author: san */# includeint main(void){int max(int, int);int min(int
2011-08-15 18:44:50 255
原创 字符指针作函数参数
/* * 1.cpp * * Created on: 2011-8-13 * Author: san */# include void copy(char from[], char to[]);int main(
2011-08-15 18:44:08 503
原创 字符串和指针
/* * 6.cpp * * Created on: 2011-8-12 * Author: san */# include int main(void){char a[] = "I am a boy!";cha
2011-08-15 18:43:08 260
原创 指向数组的指针作函数参数
/* * 5.cpp * * Created on: 2011-8-11 * Author: san */# include void average(float * p, int n);void search(floa
2011-08-15 18:41:53 331
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人