
C语言
文章平均质量分 72
VisionBao
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C语言总结5
//// main.c// lesson5//// Created by Vision on 14-9-2.//#include //返回值类型 函数名(参数列表)int maxValue(int x,int y){ int result = x > y ? x : y; return result;}//无参数 无返回值 (无返回值void原创 2014-09-07 15:50:23 · 594 阅读 · 0 评论 -
C语言练习5
//// main.c// exercise5//// Created by Vision on 14-9-4.//#include #include "Myfunction.h"#include "Operator.h"int main(int argc, const char * argv[]){// int a, b, c;// scanf("%d原创 2014-09-07 16:36:37 · 550 阅读 · 0 评论 -
C语言练习2
//// main.c// exercise2//// Created by Vision on 14-8-28.// Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.//#include #include int main(int argc, const char * argv[]){//1.(原创 2014-09-06 16:39:35 · 910 阅读 · 0 评论 -
C语言总结2
//// main.c// lensson2//// Created by Vision on 14-8-28.//#include #include //枚举类型enum phone { caiwubu = 801, renshibu, baoanbu, jisubu1 = 901, jisubu2, jisubu3}原创 2014-09-06 16:18:03 · 730 阅读 · 0 评论 -
C语言总结1
#include int main(int argc,constchar * argv[]){//1.输出hello,lanou!// printf("hello, lanou!\n"); // 结果:hello, lanou!//2.输出变量// int sb = 3;// printf("sb = %d\n",sb);// 结果:s原创 2014-09-01 20:53:39 · 531 阅读 · 0 评论 -
C语言总结 宏
//// main.c// lesson5//// Created by Vision on 14-9-2.//#include //常量宏#define PI 3.1415926//带参数的宏//#define MAX1(A, B) ((A) > (B) ? (A) : (B))#define MIN1(A, B) ((A) < (B) ? (A) : (B))原创 2014-09-07 16:29:47 · 847 阅读 · 0 评论 -
C语言练习1
//// main.c// exercise1//// Created by Vision on 14-8-28.#include int main(int argc, const char * argv[]){ //5、 (*)打印下面图形:// *// * *// * * *// printf(" *\n");//原创 2014-09-06 15:48:03 · 1040 阅读 · 0 评论 -
C语言练习4
//// main.c// exercise4//// Created by Vision on 14-8-30.//#include #include #include #define SIZE 10int main(int argc, const char * argv[]) {//1.// int a[SIZE] = {0},i= 0;// fo原创 2014-09-07 15:41:24 · 909 阅读 · 0 评论 -
C语言练习3
//// main.c// exercise3//// Created by Vision on 14-8-29.//#include #include int main(int argc, const char * argv[]){// 1.(**)随机产生20个[10 , 100]的正整数,输出这些数以及他们中的最大数// int i = 0;//原创 2014-09-07 12:47:16 · 634 阅读 · 0 评论 -
C语言总结3
//// main.c// lesson3//// Created by Vision on 14-8-29.//#include #include #include int main(int argc, const char * argv[]){//1.打印1——100// int n = 0;// while (n <= 100) {//原创 2014-09-07 12:32:53 · 474 阅读 · 0 评论 -
C语言总结4
//// main.c// lesson4//// Created by Vision on 14-8-30.//#include #include #include int main(int argc, const char * argv[]){//1.定义数组: // int array[5] = { 2, 7, 4, 3, 6};// a原创 2014-09-07 12:53:07 · 646 阅读 · 0 评论