自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(21)
  • 收藏
  • 关注

转载 c语言__成绩排序综合练习

#include <stdio.h>#include <string.h>#include<stdlib.h>#define MAX 50typedef struct tagStudent{char name[20];char course[20];...

2015-02-06 12:17:00 189

转载 c语言__while_and_if

#include<stdio.h>int main (void){int i;i=1;while(i<=100){ if(i%3==0){printf("%d \t",i);}if(i%10==0) {printf("\n...

2015-02-06 12:16:00 130

转载 c语言__switch_and_for

#include<stdio.h>#include<math.h> void isyes(){int num;printf("please input number:");scanf("%d",&num);getchar();switch(num)...

2015-02-06 12:14:00 104

转载 c语言__malloc--calloc--memset

#include <stdio.h>#include <stdlib.h> //包含了malloc(),和calloc()函数#include <string.h> //包含了memset()函数int main(void){//所有变量都要先定义。...

2015-02-06 12:11:00 110

转载 c语言__Display the current time

#include <stdio.h>#include <stdlib.h>#include <time.h> int main(void){char m[40];//存放timfo转换过来的字符。asctime_s()需要的变量。time_t t;...

2015-02-06 12:09:00 306

转载 c语言__continue_break

//break是结束整个循环体,continue是结束单次循环#include <stdio.h>int main(void){//break test.int i;for (i = 1; i <= 9; i++){printf("i=%d,this is a t...

2015-02-06 12:00:00 109

转载 c语言__100以内的奇数

#include <stdio.h>int main(void){int i;for(i=1;i<=100;i++){if(!(i%2==0)){printf("%d \t",i);}if(i%10==0){ printf("\n");...

2015-02-06 11:59:00 1046

转载 c语言__99乘法表

#include<stdio.h>int main(void){int i, j;for (i = 1; i <= 9; i++){for (j = 1; j <= i; j++){printf("%d*%d=%d ", j, i, i*j);...

2015-02-06 11:58:00 117

转载 vc++_009初识类

//类/*#include "stdafx.h"class Tdate{public:int year, month, day;int setData(int y, int m, int d){year = y;month = m;day = d;return 0;}...

2015-02-06 11:53:00 105

转载 vc++_008函数模版

///函数模版,函数参数相同,类型不同很好用.//////////////////one///////////////////////*#include "stdafx.h"template<typename s> s max(s array[], int len) //type...

2015-02-06 11:52:00 54

转载 c语言__goto

#include<stdio.h>#include<math.h> //void isyes()//{//int num;//printf("please input number:");//scanf("%d",&num);//getchar();/...

2015-02-05 14:57:00 82

转载 c语言__if...else

#include<stdio.h>#include<math.h>int main (void){int age;printf("please put in age:");scanf("%d",&age);getchar();/*if(age>=...

2015-02-05 14:56:00 66

转载 c语言__if

#include<stdio.h>#include<math.h>int main (void){int ming,ling;printf("请输入小明年龄:");scanf("%d",&ming);printf("请输入小玲年龄:");scanf("...

2015-02-05 14:55:00 74

转载 c语言__abs

#include<stdio.h>#include<math.h>int main (void){int a=-3;float f=-0.343f;printf("int absolute:%d,float fabsolute:%f\n",abs(a),fa...

2015-02-05 14:54:00 118

转载 c语言__n的阶乘factorial

#include <stdio.h>void Factorial(void){int n = 0, num = 1, i = 1;start:printf("Please input number:");scanf_s("%d", &n);if (n <=...

2015-02-05 14:53:00 582

转载 c语言__5位数中每位相加的和等于每位乘机--算法2

#include<stdio.h>int main(void){int i1, i2, i3, i4, i5;int n = 0;for (i1 = 1; i1 <= 9;i1++)for (i1 = 1; i1 <= 9; i1++)for (i1 =...

2015-02-05 14:49:00 169

转载 c语言__5位数中每位相加的和等于每位乘机--算法1

#include<stdio.h>int main(void){int i, a, b, c, d, e;int n = 0;for (i = 10000; i < 100000; i++){a = i / 10000;b = i / 1000 % 10;...

2015-02-05 14:47:00 233

转载 vc++_007函数重载

///////c语言没有函数重载.c++有./* #include "stdafx.h"int max(int a, int b){a = a + b;return a;}int max(int a, int b, int c){a = a + b + c;return a;}int...

2015-02-05 14:22:00 59

转载 vc++_005函数参数初始化

///----one----/////////////// #include "stdafx.h"int add(int a=0, int b=0){a = a + b;return a; }int _tmain(int argc, _TCHAR* argv[]){add();//...

2015-02-05 14:19:00 104

转载 vc++_004_引用

///////////////////////////////////////////////////////////////////////////////////stdafx的英文全称为:Standard Application Framework Extensions(标准应用程序框架的...

2015-02-05 14:14:00 85

转载 003_new_delete

#include "stdafx.h"#include <malloc.h> int _tmain(int argc, _TCHAR* argv[]){/*int *p;p = (int*)malloc(sizeof(int));//c++中(int*)必须用,因为要求返还...

2015-02-03 23:33:00 46

空空如也

空空如也

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

TA关注的人

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