C Primer Plus 第6版 编程练习 2.12 答案

简介: C Primer PLUS 自学练习,2.12 ,答案!基于VS2017编译器!
1# 2#
#include<stdio.h>
int main(void)
{
printf("胡八一\n");
printf("胡\n八一\n");
printf("姓名:胡八一\n");
printf("地址:山东省青岛市\n");
system("pause");
return 0;
}
3#
#include<stdio.h>
int main(void)
{
int a = 25;//a代表年龄
int b = 365;//b代表一年天数
printf("%d\n", a*b);
system("pause");
return 0;
}
4#
#include<stdio.h>
void jolly(void)
{
printf("For he's a jolly good fellow!\n");
}
void deny(void)
{
printf("Which nobody can deny!\n");
}
int main(void)
{
jolly();
jolly();
jolly();
deny();
system("pause");
return 0;
}
5#
#include<stdio.h>
void br(void)
{
printf("Brazil,Russia");
}
void ic(void)
{
printf("India,China\n");
}
int main(void)
{
br(),   ic();
ic();
br();
system("pause");
return 0;
}
6#
#include<stdio.h>
int main(void)
{
int toes;
int a, b;
toes = 10;
a = toes * 2;
b = toes * toes;
printf("%d(toes)\n%d(toes的两倍)\n%d(toes的平方)\n",toes,a,b);
system("pause");
return 0;
}
7#
#include<stdio.h>
void a(void)
{
printf("Smile!");
}
int main(void)
{
a(); a(); a();


printf("\n");


a(); a();


printf("\n");
a();


    system("pause");
return 0;


}
8#
#include<stdio.h>
int one_three(void);
int two(void);
int one_three(void)
{
printf("one\n");
}
int two(void)
{
printf("two\nthree\n");
}
int main(void)
{
printf("starting now :\n");
one_three();
two();
printf("down!\n");
system("pause");
return 0;
}

目录
相关文章
|
10月前
C Primer Plus第七章编程练习
C Primer Plus第七章编程练习
43 0
|
10月前
C Primer Plus 第六章编程练习
C Primer Plus 第六章编程练习
51 0
|
10月前
|
C++
C++ Primer Plus 第八章答案 函数探幽
只有聪明人才能看见的摘要~( ̄▽ ̄~)~
81 0
|
10月前
C Primer Plus 第五章 编程练习
C Primer Plus 第五章 编程练习
68 0
|
10月前
|
存储 C++
C++ Primer Plus 第十一章答案 使用类
只有聪明人才能看见的摘要~( ̄▽ ̄~)~
53 0
|
10月前
|
编译器 C++
C++ Primer Plus 第十四章答案 C++中的代码重用
只有聪明人才能看见的摘要~( ̄▽ ̄~)~
42 0
|
10月前
|
C++
C++ Primer Plus 第七章答案 函数——C++的编程模块
只有聪明人才能看见的摘要~( ̄▽ ̄~)~
62 0
|
12月前
|
机器学习/深度学习 存储 人工智能
C语言程序设计第五版谭浩强课后答案 第五章习题答案(3-17题)
C语言程序设计第五版谭浩强课后答案 第五章习题答案(3-17题)
|
编译器 C++
C++ Primer 第六章 函数 复习(2)
C++ Primer 第六章 函数 复习
C++ Primer 第六章 函数 复习(2)