C从入门到放弃篇1

server/2025/2/23 11:04:15/

各位新入坑C语言的朋友,你们有福了因为你们遇到了我,我会带你放弃C语言,哈哈哈哈哈。

其实,学任何东西都是循序渐进的,在学习的初期投入更多的精力,将来你会越学越快。我相信,放弃是最容易的事情,而坚持学习的你很靓。如果不怕吃苦就跟我一起来吧。反正,人生就像打电话,不是你先挂就是我先挂,看谁先放弃,哈哈哈。Here insert one tip:Maybe my passage will join some foreign English words in future.(这里加个提示:也许我的文章将来会加入一些外国英语单词),In my opinion,it is benifit to you,could help you easliy read the professional computer passages。话不多说,上代码:

在这里插入图片描述
在这里插入图片描述

#include<stdio.h>
//this is day1.c file codes
void first(int num);
void second();
void butler(void);
void KeyWords();
void test2();
void test3();
void test4();
void test5();
void test6();
void test7();
void test8();
void test9();int main(void){printf("C is make me happy!!\n");int dogs;printf("How many dogs do you have?\n");scanf("%d",&dogs);printf("So you have %d dog(s)!\n",dogs);printf("Concrete contains gravel and cement.\n");printf("A .c is used to end a C program filename.\n");first(1);second();butler();KeyWords();test2();test3();test4();test5();test6();test7();test8();test9();return 0;
}void first(int num){//int num;//定义一个名为num的变量;//num = 1;//为num赋值1;printf("I am a simple ");//使用printf()函数printf("Computer.\n");printf("My favorite number is %d because it is first.\n\n",num);
}void second(){int feet,fathoms;printf("Please input the fathoms:");scanf("%d",&fathoms);feet = 6 * fathoms;printf("There are %d feet in %d fathmos!\n",feet,fathoms);printf("Yes, I said %d feet!\n\n",6 * fathoms);
}void butler(void){/*函数定义开始*/printf("You rang, sir?\n\n");}void KeyWords(){//Create a KeyWords Tableprintf("These KeyWords are important,\nI will remenber them forever.\n\n");printf("               KeyWords Table\n");printf(" <----------------------------------------->\n");printf(" |auto    |extern  | short  | while        |\n");printf(" |break   |float   |signed  |_Alignas      |\n ");printf("|case    |for     |sizeof  |_Alignof      |\n");printf(" |char    |goto    |static  |_Atomic       |\n");printf(" |const   |if      |struct  |_Bool         |\n");printf(" |continue|inline  |switch  |_Complex      |\n");printf(" |default |int     |typedef |_Generic      |\n");printf(" |do      |long    |union   |_Imaginary    |\n");printf(" |double  |register|unsigned|_Noreturn     |\n");printf(" |else    |restrict|void    |_Static_assert|\n");printf(" |enum    |return  |volatile|_Thread_local |\n");printf(" <----------------------------------------->\n\n");
}void test2(){//What is the program will output?printf("The 2 program.\n");printf("Baa Baa Black Sheep.");printf("Have you any wool?\n");printf("Begone!\nO createure of lard!\n");printf("What?\nNo/nfish?\n");int num;num = 2;printf("%d + %d = %d\n\n",num,num,num + num);
}void test3(){//seek the KeyWords in these words.//main,int,function,char,=printf("The 3 program.\n");printf("In these Words: main, int, function, char, =\nKeyWords: int, char\n\n");
}void test4(){//How to output varchar words and lines like below rule?  3020 and 350 represented two varchars
//There were 3020 words and 350 lines.printf("The 4 program.\n");printf("There were %d words and %d lines.\n\n",3020,350);
}void test5(){//across 1,2,3,what is result for a,b?printf("The 5 program.\n");int a,b;a = 5;b = 2;//1printf("a = %d , b = %d\n",a,b);b = a;//2printf("a = %d , b = %d\n",a,b);a = b;//3printf("a = %d , b = %d\n\n",a,b);/*1:a=5,b=22:a=5,b=5 3:a=5,b=5*/
}void test6(){printf("The 6 program.\n");int x,y;x = 10;y = 5;//1printf("x = %d , y = %d\n",x,y);y = x + y;//2printf("x = %d , y = %d\n",x,y);x = x * y;//3printf("x = %d , y = %d\n\n",x,y);/*1:x=10,y-52:x=10,y=153:x=150,y=15*/
}void test7(){printf("The 7 program.\n");/*编写一个程序,调用一次printf(),把你的姓名打印在一行,再调用一次printf()把你的姓名打印在两行。然后,再调用两次printf(),把你的姓名打印在一行,输出结果如下所示:Python JackPythonJackPython Jack*/printf("Python Jack\n");printf("Python \nJack");printf("\nPython ");printf("Jack\n\n");
}void test8(){//make a program to print your name and addressprintf("The 8 program.\n");printf("My name is Python_Jack,\nI live in China.\n\n");
}void test9(){//make a program translate your age to days,//and show the two numbers.printf("The 9 program.\n");printf("Please you input your age:");int age;scanf("%d",&age);int days = age * 365;printf("Your age is %d,translate to %d days.\n\n",age,days);
}

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

#include<stdio.h>
//day2.c file codes
void jolly();
void deny();
int main(){printf("The 10 program.\n");/*make a program and output below result:For he's a jolly good fellow!For he's a jolly good fellow!For he's a jolly good fellow!Which nobody can deny!except main() the program also use anothor two functions,one is jolly(),it's used to print the first three pieces of information once used by once print,deny() is used to print last information.*/jolly();jolly();jolly();deny();return 0;
}void jolly(){printf("For he's a jolly good fellow!\n");
}
void deny(){printf("Which nobody can deny!\n\n");
}

在这里插入图片描述
最后,感谢大家前来观看鄙人的文章,文中或有诸多不妥之处,还望指出和海涵。


http://www.ppmy.cn/server/170110.html

相关文章

把 vscode 伪装成 goland

goland 开发项目太卡了&#xff0c;想换到更轻量级的 vscode&#xff0c;但是用久了 goland&#xff0c; vscode 的界面风格和快捷键又看不习惯和用不习惯&#xff0c;所以把 vscode 改成了跟 goland 一样的使用方式。 下载 2个插件 安装插件「JetBrains IDE Keymap」可以让 vs…

区块链相关方法-SWOT分析

1.SWOT 一、定义:一种基于内外部竞争环境和竞争条件下的态势分析&#xff0c;通过对企业的内外环境所形成的优势&#xff08;Strengths&#xff09;、劣势&#xff08;Weaknesses&#xff09;、机会&#xff08;Opportunities&#xff09;和威胁&#xff08;Threats&#xff0…

stm32108键C-B全调性_动态可视化乐谱钢琴

108键全调性钢琴 一 基本介绍1 项目简介2 实现方式3 项目构成 二 实现过程0 前置基本外设驱动1 声音控制2 乐谱录入&基础乐理3 点阵屏谱点动态刷新4 项目交互控制5 录入新曲子过程 三 展示&#xff0c;与链接视频地址1 主要功能函数一览2 下载链接3 视频效果 一 基本介绍 …

Unity中点乘和叉乘对于我们来说的作用是什么?

在 Unity 中&#xff0c;点乘&#xff08;Dot Product&#xff09;和叉乘&#xff08;Cross Product&#xff09;是向量运算里非常重要的操作&#xff0c;在游戏开发、动画制作、物理模拟等多个方面都有着广泛的应用。 目录 1 点乘 2 叉乘 1 点乘 通过点乘公式 &#xff0c…

DeepSeek行业应用实践报告-智灵动力【112页PPT全】

DeepSeek&#xff08;深度搜索&#xff09;近期引发广泛关注并成为众多企业/开发者争相接入的现象&#xff0c;主要源于其在技术突破、市场需求适配性及生态建设等方面的综合优势。以下是关键原因分析&#xff1a; 一、技术核心优势 开源与低成本 DeepSeek基于开源架构&#xf…

分布式与集群,二者区别是什么?

??分布式 分布式系统是由多个独立的计算机节点组成的系统&#xff0c;这些节点通过网络协作完成任务。每个节点都有自己的独立计算能力和存储能力&#xff0c;可以独立运行。分布式系统的目标是提高系统的可靠性、可扩展性和性能。 分布式服务包含的技术和理论 负载均衡&am…

Jmeter HTTP代理服务器录制压力脚本

&#x1f345; 点击文末小卡片&#xff0c;免费获取软件测试全套资料&#xff0c;资料在手&#xff0c;涨薪更快 从loadrunner到jmeter&#xff0c;录制压力测试脚本好像都只支持IE&#xff0c;近来才知道jmeter还有自带的录制脚本元件&#xff0c;且支持IE、Chrome及Firefox等…

使用 DeepSeek 生成流程图、甘特图与思维导图:结合 Typora 和 XMind 的高效工作流

在现代工作与学习中&#xff0c;可视化工具如流程图、甘特图和思维导图能够极大地提升信息整理与表达的效率。本文将详细介绍如何使用 DeepSeek 生成 Mermaid 文本&#xff0c;结合 Typora 快速生成流程图和甘特图&#xff0c;并通过 Markdown 格式生成思维导图&#xff0c;最终…