当前位置:网站首页>【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.
//
边栏推荐
- stm32F407-------跑马灯、蜂鸣器
- Stm32f407 ------ running lamp and buzzer
- [software analysis] iterative explanation of software analysis, design and modeling
- Learning fuzzy from SQL injection to bypass the latest safe dog WAF
- 想问问,股票开账户如何优惠开户?网上开户安全么?
- [opencv] - linear filtering: box filtering, mean filtering, Gaussian filtering
- Count the number of arrays with pointers
- note
- Rongyun communication solution solves the pain points of enterprise communication
- What are the virtual machine software? What are their respective roles?
猜你喜欢

stm32F407-------时钟系统(SystemInit时钟初始化、Systick滴答定时器)

stm32F407-------跑马灯、蜂鸣器
![Edge extraction based on Halcon learning [2] circles Hdev routine](/img/e4/e3738d71c2ff5a239a12f67d06e2c9.jpg)
Edge extraction based on Halcon learning [2] circles Hdev routine
![[Electronic Experiment 2] simple electronic doorbell](/img/40/227f9ac1f427c1435e0e3aa02640b1.png)
[Electronic Experiment 2] simple electronic doorbell

IDC: Alibaba cloud ranks first in the market share of China's data governance platform in 2021
![[matlab] function definition and use](/img/43/a7970ca8e075151277f7773434f7db.png)
[matlab] function definition and use

Chapter II Classic synchronous exercises

Mysql-5.7.30-winx64 installation free download and installation tutorial

Machine learning 6-decision tree

The second session of question swiping and clock out activity -- solving the switching problem with recursion as the background (2)
随机推荐
stm32F407-------电容触摸按键
pymysql.Error 获取错误码与具体错误信息
Solve the problem of Chinese parsing by configparser
第三章 处理机调度练习
Would like to ask, how to open a stock account? Is it safe to open an account online?
机器学习4-降维技术
The secondary market is full of bad news. How should the market go next? One article will show you the general trend
Windows10 phpstudy installing redis extension
[opencv] - linear filtering: box filtering, mean filtering, Gaussian filtering
Edge extraction based on Halcon learning [2] circles Hdev routine
stm32F407-------通用定时器
stm32F407-------时钟系统(SystemInit时钟初始化、Systick滴答定时器)
Thinking about lever
自动化测试的生命周期是什么?
Counting sorting and stability of sorting
What are some tips to improve your interview success rate?
How to solve the database type error in the operation of the servert project?
是使用local_setup.bash 还是 setup.bash
再次上榜!知道创宇入选2022中国网安产业竞争力50强
ctfshow XSS