当前位置:网站首页>【C Primer Plus第二章課後編程題】
【C Primer Plus第二章課後編程題】
2022-06-28 23:41:00 【禦膳房總試吃】
2.1
#include <stdio.h>
int main (void)
{
printf("Gustav Mahler\n");
printf("Gustav\n");
printf("Mahler\n");
printf("Gustav Mahler");
return 0;
}
//
// Created by Chen on 2022/6/26.
//
2.2
#include <stdio.h>
int main (void)
{
printf("Diago\n");
printf("China");
return 0;
}
//
// Created by Chen on 2022/6/26.
//
2.3
#include <stdio.h>
int main (void)
{
int year;
year=30;
printf("%d %d",year,year*365);
return 0;
}
//
// Created by Chen on 2022/6/26.
//
2.4
#include <stdio.h>
void jolly (void);
void deny (void);
int main (void)
{
jolly();
deny();
return 0;
}
void jolly (void)
{
printf("For he's a jolly good fellow!\n");
printf("For he's a jolly good fellow!\n");
printf("For he's a jolly good fellow!\n");
}
void deny (void)
{
printf("Which nobody can deny!");
}
//
// Created by Chen on 2022/6/26.
//
2.5
#include <stdio.h>
void br (void);
void ic (void);
int main (void)
{
br();
ic();
printf("India,China\n");
printf("Brazil,Russia");
return 0;
}
void br (void)
{
printf("Brazil,Russia,");
}
void ic (void)
{
printf("India,China\n");
}
//
// Created by Chen on 2022/6/26.
//
2.6
#include <stdio.h>
int main (void)
{
int toes;
toes=10;
printf("%d %d %d",toes,2*toes,toes*toes*toes);
return 0;
}
//
// Created by Chen on 2022/6/26.
//
2.7
#include <stdio.h>
void smile (void);
int main (void)
{
smile();
smile();
smile();
printf("\n");
smile();
smile();
printf("\n");
smile();
return 0;
}
void smile (void)
{
printf("Smile!");
}
//
// Created by Chen on 2022/6/26.
//
2.8
#include <stdio.h>
void one_three (void);
void two (void);
int main (void)
{
printf("starting now:\n");
one_three();
two();
printf("three\n");
printf("done!");
return 0;
}
void one_three (void)
{
printf("one\n");
}
void two (void)
{
printf("two\n");
}
//
// Created by Chen on 2022/6/26.
//
边栏推荐
- What pitfalls should be avoided in the job interview for the operation post in 2022?
- Puma joins hands with 10ktf shop to launch its Web3 cooperation project with the largest scale so far
- stm32F407-------LCD
- Quartz explanation and use
- 表单校验问题——el-select(初始化页面自动触发校验解决办法)
- VSCode里使用条件断点(基于GDB)
- 网上注册股票开户很困难么?在线开户是安全么?
- [matlab] function definition and use
- The secondary market is full of bad news. How should the market go next? One article will show you the general trend
- [state machine design] Moore, Mealy state machine, three-stage, two-stage and one-stage state machine writing specification
猜你喜欢

Mobile heterogeneous computing technology - GPU OpenCL programming (basic)

The secondary market is full of bad news. How should the market go next? One article will show you the general trend

Stm32f407 ------ serial (serial port) communication

【状态机设计】Moore、Mealy状态机、三段式、二段式、一段式状态机书写规范

再次上榜!知道创宇入选2022中国网安产业竞争力50强
![[conception de la machine d'état] Moore, Mealy State Machine, Three - stage, Two - stage, one - stage State Machine Writing Specification](/img/48/e29f34aff7cc437bfb574591d54e3d.png)
[conception de la machine d'état] Moore, Mealy State Machine, Three - stage, Two - stage, one - stage State Machine Writing Specification

Blue Bridge Cup top ten common heaven level skill - breath of water The type of one recursion

What are the virtual machine software? What are their respective roles?

Auto encoder

What pitfalls should be avoided in the job interview for the operation post in 2022?
随机推荐
stm32F407-------串行(串口)通信
CMake教程(一)
MATLAB 学习笔记(6)MATLAB 的 upsample 函数和 downsample 函数
The secondary market is full of bad news. How should the market go next? One article will show you the general trend
2022-06-28: what does the following golang code output? A:true; B:false; C:panic; D: Compilation failed. package main import “fm
Blue Bridge Cup top ten common heaven level skill - breath of water The type of one recursion
stm32F407-------寄存器地址名称映射分析
[software analysis] iterative explanation of software analysis, design and modeling
Form verification problem - El select (solution to automatically trigger verification on initialization page)
[API packet capturing in selenium automation] installation and configuration of browsermobproxy
华为22级专家十年心血终成云原生服务网格进阶实战文档,是真的6
Huawei's level 22 experts have worked hard for ten years to complete the advanced practical document of cloud native service grid. 6
【狀態機設計】Moore、Mealy狀態機、三段式、二段式、一段式狀態機書寫規範
Class extension and optional type extension of dart
Yyds dry goods inventory building knowledge map from scratch with neo4j (I)
[Electronic Experiment 2] simple electronic doorbell
Save data in Excel: use openpyxl to create multiple tables and set excel row limit
When dialogfragment's onstop is completely invisible, call disass to exit the interface and report an error. Solution
What pitfalls should be avoided in the job interview for the operation post in 2022?
O & M troubleshooting - use hcache plug-in to troubleshoot excessive buffer/cache occupancy