当前位置:网站首页>【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.
//
边栏推荐
- Yes, use local_ setup. Bash or setup bash
- The secondary market is full of bad news. How should the market go next? One article will show you the general trend
- CMake教程(一)
- Puma joins hands with 10ktf shop to launch its Web3 cooperation project with the largest scale so far
- 油猴脚本学习
- [opencv] - linear filtering: box filtering, mean filtering, Gaussian filtering
- Mysql-5.7.30-winx64 installation free download and installation tutorial
- 机器学习4-降维技术
- 【状态机设计】Moore、Mealy状态机、三段式、二段式、一段式状态机书写规范
- [stm32 Hal library] serial port communication
猜你喜欢

【软件分析】软件分析、设计与建模迭代式详解

Mysql-5.7.30-winx64 installation free download and installation tutorial

Stm32f407 ------ clock system (systeminit clock initialization, systick tick timer)
![[mathematical modeling] fmincon() function of MATLAB nonlinear programming](/img/fc/46949679859b1369fcc83d0d8b637c.png)
[mathematical modeling] fmincon() function of MATLAB nonlinear programming

Counting sorting and stability of sorting
![[software analysis] iterative explanation of software analysis, design and modeling](/img/37/1163fec464aed365d1ea04e63a0c90.png)
[software analysis] iterative explanation of software analysis, design and modeling

Analysis of CSRF Cross Site Request Forgery vulnerability
![Edge extraction based on Halcon learning [2] circles Hdev routine](/img/e4/e3738d71c2ff5a239a12f67d06e2c9.jpg)
Edge extraction based on Halcon learning [2] circles Hdev routine

CMake教程(一)

从SQL注入绕过最新安全狗WAF中学习fuzz
随机推荐
PHP利用CURL实现登录网站后下载Excel文件
ctfshow XSS
《英语语法新思维 基础版2》读书笔记(一)
Didn't find an internship. He summed it up
IDC: Alibaba cloud ranks first in the market share of China's data governance platform in 2021
Solve the problem of Chinese parsing by configparser
Be on the list again! Know that Chuangyu was selected as one of the top 50 competitive enterprises in China's network security industry in 2022
[conception de la machine d'état] Moore, Mealy State Machine, Three - stage, Two - stage, one - stage State Machine Writing Specification
lock4j--分布式锁中间件--使用/实例
Add the premise of ganggan
IO playback function of FIO
scrapy保存数据到excel:利用openpyxl创建多张表,设置Excel行数限制
Chapter IV memory management exercise
stm32F407-------跑马灯、蜂鸣器
Is it difficult to register stocks and open accounts online? Is it safe to open an account online?
PHP 使用endroid/qrcode 二维码生成, GD库生成分享海报
stm32F407-------电容触摸按键
Scrapy使用xlwt实现将数据以Excel格式导出的Exporter
stm32F407-------LCD
VSCode里使用条件断点(基于GDB)