当前位置: 首页 > 编程日记 > 正文

了解jvm对编程的帮助_这是您对社会责任编程的了解

了解jvm对编程的帮助

by ?? Anton de Regt

由?? 安东·德雷格

这是您对社会责任编程的了解 (This is what you need to know about Socially Responsible Programming)

您的才华比银行帐户中的零值多 (Your talent is worth more than lots of zeroes in your bank account)

Lately, I have seen a lot of stories about people getting their first developer job. Like this one or this one or this one. This is great news, but…

最近,我看到了很多有关人们获得第一份开发人员工作的故事。 喜欢这个或这个或这个 。 这是个好消息,但是…

Their focus seems to be about getting the good paying jobs in IT after they learned how to code. I don’t think they realize the potential of what they learned. Programming is so much more than an income provider. Code can make or break the world. But why should you care what I have to say?

他们的重点似乎是在学会编码后,在IT上获得高薪工作。 我认为他们没有意识到所学知识的潜力。 编程不仅仅是收入提供者。 代码可以创造或破坏世界。 但是你为什么要关心我该说些什么呢?

I’ve tried helping society in different ways. I volunteered my time for causes like the Red Cross or the local athletics club. I’ve donated money to charities. But it’s time to take a different approach. The reason for this is that I don’t have a talent for generating a lot of money. Thus, donating money is not the most effective method for me. I also don’t have a particular talent for folding camp beds with Red Cross volunteers.

我尝试过以不同方式帮助社会。 我自愿将时间用于红十字会或当地的体育俱乐部。 我已经把钱捐给了慈善机构。 但是现在该采取另一种方法了。 原因是我没有创造很多钱的才能。 因此,捐款对我来说不是最有效的方法。 我也没有与红十字会志愿者折叠折叠床的特殊才能。

The difference with earlier attempts to give back to society is that I now focus on my talents. I got these talents from studying computer science a few years back. I don’t work for a tech company. But in my free time I love to work on small projects. So, my new approach is to use my programming skills to code socially responsible.

与早期回馈社会的不同之处在于,我现在专注于自己的才能。 几年前,我从研究计算机科学中获得了这些才能。 我不在科技公司工作。 但是在业余时间,我喜欢从事小型项目。 因此,我的新方法是利用我的编程技能来编写对社会负责的代码。

什么是对社会负责的编程? (What is Socially Responsible Programming?)

Let’s start by abbreviating it to SRP. By doing SRP you don’t donate your money to society, you donate your programming skills.

我们首先将其缩写为SRP。 通过执行SRP,您不会向社会捐赠资金,而是会捐赠编程技能。

“If I have the means, I have the responsibility to employ them.” ― Terry Brooks

“如果我有能力,我有责任雇用他们。” ― 特里·布鲁克斯

All programmers have this amazing skillset to turn nothing into something valuable. They build things out of thin air. I’ve always found it super rewarding to create something. Working for a tech company must be even more rewarding because the things you create are being used by many.

所有程序员都具有惊人的技能,可以将任何东西都变成有价值的东西。 他们凭空建造东西。 我总是发现创造某些东西是非常有益的。 在高科技公司工作必须获得更大的回报,因为您创建的东西正在被许多人使用。

What if I tell you there is an even more rewarding way to use your fingers? And what if you don’t even have to work for a big tech firm? What can be more rewarding than disrupting the world with your code?

如果我告诉您,还有一种更有益的手指使用方式呢? 如果您甚至不必为一家大型科技公司工作,该怎么办? 除了用您的代码破坏世界之外,还有什么比它更有意义?

The answer is: disrupting the world with your code and making it a better place at the same time. This is what I call Socially Responsible Programming (SRP). In this article, I’ll tell you everything about it and I’ll explain why you should care.

答案是:用您的代码破坏整个世界,同时使世界变得更美好。 这就是我所谓的社会责任编程(SRP)。 在本文中,我将告诉您有关它的所有信息,并解释您为什么要关心它。

You don’t have to be a renowned programmer to start reaching for the high levels of SRP. A few years ago I studied computer science. After my degree I didn’t see how I could improve the world with coding. So, I decided to do something else. A few months into the new adventure I missed programming. So I started a few projects from the freeCodeCamp curriculum.

您不必成为著名的程序员就可以开始追求高水平的SRP。 几年前,我学习了计算机科学。 学完学位后,我没有看到如何通过编码来改善世界。 因此,我决定做其他事情。 进入新冒险的几个月后,我错过了编程。 因此,我从freeCodeCamp课程开始了一些项目。

These projects reignited my love for programming and I haven’t lost it since. I don’t see myself as a particularly talented programmer. I like to code and JavaScript makes it super easy to build awesome stuff that runs on phones and desktops.

这些项目再次激发了我对编程的热爱,从那以后我再也没有失去它。 我认为自己不是一个特别有才华的程序员。 我喜欢编码,JavaScript使构建可在手机和台式机上运行的出色东西变得超级容易。

Currently, I am working on a project with a friend that will connect elderly with youngsters. The goal of this project is to reduce the loneliness of elderly people.

目前,我正在与一个朋友进行一个项目,该项目将老年人与年轻人联系起来。 该项目的目的是减少老年人的孤独感。

阅读本文的要求 (Requirements for reading this article)

To be eligible to read this article you have to meet either of the following criteria:

要有资格阅读本文,您必须满足以下任一条件:

  • I’ve built a website at least once

    我至少建立了一个网站
  • I’ve built an Android/iOS app at least once

    我至少构建了一个Android / iOS应用
  • I’ve studied computer science

    我已经学过计算机科学
  • I knew Ada Lovelace

    我知道Ada Lovelace

  • Other coding experience

    其他编码经验

If you don’t have any programming experience, don’t sweat it. Start with the freeCodeCamp curriculum and come back here in a few months.

如果您没有任何编程经验,请不要大汗淋漓。 从freeCodeCamp课程开始,然后在几个月后回到这里。

Also, feel free to substitute programming with any other skills you might have. If you do have coding experience you meet all the requirements for this article, keep reading.

另外,请随时用其他任何技能代替编程。 如果您确实有编码经验,则可以满足本文的所有要求,请继续阅读。

目标 (The Goal)

The goal of SRP is to create value for your users. Value is usually created by helping users with a problem. With SRP it is the same, it also focuses on a problem. But not every problem qualifies.

SRP的目标是为您的用户创造价值。 价值通常是通过帮助有问题的用户来创造的。 与SRP相同,它也着重于问题。 但是,并非每个问题都符合条件。

The problem of not being able to find a cab doesn’t qualify. The problem of not having enough time to cook doesn’t qualify. Also, the problem of being too damn lazy to get off the couch doesn’t qualify. Of course, I’m exaggerating.

找不到出租车的问题不符合要求。 没有足够的时间做饭的问题没有资格。 而且,太该死的懒惰不能下床的问题也没有资格。 当然,我很夸张。

When a game gets kids from all over the world to go outside it definitely is a socially responsible game. Well done Pokemon GO!

当游戏吸引来自世界各地的孩子外出时,它绝对是一种对社会负责的游戏。 口袋妖怪GO做得好!

“The world howls for social justice, but when it comes to social responsibility, you sometimes can’t even hear crickets chirping.” ― Dean Koontz

“世界为社会正义而呼喊,但是在社会责任方面,有时您甚至听不到的声音。” ― 迪恩·库恩茨

It’s impossible to write down a list of qualifying issues. Different individuals or societies will have different perceptions of the severity of issues. When in doubt, ask yourself if you could argue that you have a moral obligation to help on a particular issue. When the answer is yes, most of the time it’s a good issue to start a project around.

写下合格问题列表是不可能的。 不同的个人或社会对问题的严重性会有不同的认识。 如有疑问,请问自己是否可以辩称自己有道德义务在特定问题上提供帮助。 如果答案是肯定的,那么在大多数情况下,启动一个项目是一个好问题。

For example, it is possible you feel a moral obligation to give to charity or to help elderly people cross the road. Issues that do qualify don’t have to be global issues.

例如,您可能有道义上的义务去慈善或帮助老年人过马路。 符合条件的问题不一定是全球性问题。

Your solutions can also be very simple like customizing a free website template. At the end of this article, I’ll list a few examples of socially responsible projects. For inspiration see this link of typical social issues that live in society.

您的解决方案也可以非常简单,例如自定义免费的网站模板。 在本文的结尾,我将列出一些对社会负责的项目的例子。 要获得启发,请参阅存在于社会中的典型社会问题的链接 。

The goal of SRP is to build something that helps any number of people, animals, trees, or… basically anything. But why is it so important to help society?

SRP的目标是构建可以帮助任何数量的人,动物,树木或……基本上任何东西的东西。 但是,为什么对社会如此重要?

为什么SRP很重要 (Why SRP is important)

Now I’m going to bombard you with moral statements…

现在我要用道德陈述轰炸你……

Wouldn’t you want help if you needed it?

您是否需要帮助?

Wouldn’t you want people to use their skills to make something that is actually beneficial to the world?

您是否不希望人们利用自己的技能做出对世界有益的事情?

Should the primary motivation to work be generating digits on a bank account?

工作的主要动力应该是在银行帐户上生成数字吗?

“Successful people have a social responsibility to make the world a better place and not just take from it.” — Carrie Underwood

“成功的人有社会责任,要使世界变得更美好,而不仅仅是摆脱它。” — 凯莉·安德伍德

You have a talent. I know you do because you qualified for this article! You have the ability to change lives for the better.

你有才华。 我知道您这样做是因为您有资格获得本文! 您有能力改善生活。

We are all stuck on this planet together (for now at least), so instead of donating money, donate your time. This method is much more effective, especially if you put your talents to work.

我们都被卡在这个星球上(至少现在是这样),所以不要捐钱,而是要花时间。 这种方法更为有效,尤其是在您发挥才能的情况下。

If you are reading this article you speak English, have internet access and a little free time. By these metrics, I dare to say that you have a better life than at least half of the population on earth. That’s almost 4 billion people! Which means there are enough people that could enjoy your help. These people deserve a little bit of your attention. Programmers especially have the ability to help them, I’ll explain how you can do that in a little bit.

如果您正在阅读本文,您会说英语,可以访问互联网并有一点空闲时间。 根据这些指标,我敢说您的生活比地球上至少一半的人口要好。 差不多有40亿人! 这意味着有足够的人可以享受您的帮助。 这些人值得您的关注。 程序员尤其具有帮助他们的能力,我将向您介绍如何做到这一点。

The cool thing is that SRP doesn’t just help others, it also benefits you. For me the most important reasons I code responsible are the following:

最酷的是SRP不仅可以帮助他人,还可以使您受益。 对我来说,我负责的最重要原因如下:

  1. I feel great about myself

    我对自己感觉很好
  2. It adds a sense of purpose and meaning to my life

    它给我的生活增添了目标感和意义
  3. I can help others in need and make a difference

    我可以帮助需要帮助的人并有所作为

Now it’s time to get into how you can start with SRP.

现在是时候开始学习如何使用SRP了。

如何为社会编码 (How to code for society)

It all starts with opening your eyes to the people around you to find a qualifying issue. The best way to do this is by changing your routine. Go to places you’ve never been before.

这一切都始于睁开眼睛向周围的人寻找合格的问题。 最好的方法是更改​​您的例程。 前往您从未去过的地方。

For example, visit a local Meetup. Meetups are my new way of opening my eyes. I even sent in a 5-minute lightning talk proposal to the AmsterdamJS Meetup and it got accepted!

例如,访问本地的Meetup 。 聚会是我睁开眼睛的新方式。 我什至向AmsterdamJS Meetup发送了5分钟的闪电演讲建议,该建议被接受了!

Once you’ve opened your eyes, you’ll start to notice things that could benefit from a few lines of code. Start with simple projects to get experience, and keep upgrading your projects.

睁开眼睛,您将开始注意到可以从几行代码中受益的事物。 从简单的项目开始,以获取经验,并继续升级您的项目。

Time is scarce, but to make a difference you will have to invest time in your project. Make sure you put at least a set number of hours in it each week. I put at least 2 hours a week into my SRP projects, most of the time a lot more. Set any goal for yourself and stick to it.

时间紧缺,但要有所作为,您将不得不在项目中投入时间。 确保每周至少投入固定的小时数。 我每周至少要在SRP项目中投入2个小时,而大多数时候要花更多的时间。 为自己设定任何目标并坚持下去。

If you want a fun and easy way to track how much time you spend on different projects try WakaTime. Your free time has its limits of course, but there’s a solution for this. Ask your boss if he will grant you a few hours a week to work on a socially responsible project. Smart bosses accept this so they can show to clients how good they are for society.

如果您想找到一种有趣且简单的方法来跟踪您在不同项目上花费的时间,请尝试WakaTime 。 您的空闲时间当然有其局限性,但是对此有解决方案。 询问老板是否会每周给您几个小时从事对社会负责的项目。 聪明的老板会接受这一点,以便他们可以向客户展示他们对社会的好处。

Are you ready for some examples?

您准备好一些例子了吗?

社会项目的例子 (Examples of social projects)

There are a lot of cool examples of people who’ve built apps or websites that make the world a better place. The examples listed below are pretty advanced. Don’t get intimidated, instead look at it to get inspired.

有很多很酷的例子,说明人们已经构建了使世界变得更美好的应用程序或网站。 下面列出的示例非常先进。 不要被吓到,而要去寻找灵感。

教学 (Teaching)

Khan Academy has a mission to provide a free, world-class education to anyone, anywhere. It teaches a range of topics, from math to history.

可汗学院的使命是为任何地方的任何人提供免费的世界一流的教育。 它教授从数学到历史的一系列主题。

freeCodeCamp is a community that helps you learn to code. Once you learned to code you can get experience by contributing to open source projects. Non-profits actually use these programs.

freeCodeCamp是一个可以帮助您学习编码的社区。 一旦学习了编码,便可以通过为开源项目做贡献来获得经验。 非营利组织实际上使用这些程序。

导游 (Guides)

Ankommen App is a guide for refugees to get to know Germany in their first few weeks in the country.

Ankommen应用程序可帮助难民在该国的前几周了解德国。

iRecycle can tell you how, where and when to recycle anything.

iRecycle可以告诉您如何,在何时何地回收任何东西。

游戏类 (Games)

Tree Planet 2 turns virtual trees into real ones. The aim of the app is to grow a virtual tree. The game will need its users to fertilize, water and defend it from loggers. While users are growing a tree on their phones, a real life tree is also planted and tended to. Tree Planet 2 claims to have planted 500,000 real trees in 10 different countries.

Tree Planet 2将虚拟树木变成真实的树木。 该应用程序的目的是种植一棵虚拟树。 该游戏将需要其用户施肥,浇水并保护其免受伐木者的侵害。 当用户在手机上种植一棵树时,还会种植并倾向于种植一棵真实的树。 Tree Planet 2声称已在10个不同的国家种植了500,000棵真正的树木。

Save the Children Earthquake Response is a simulation game about disasters. It has the goal to spread awareness about disaster relief.

“拯救儿童地震响应”是一个关于灾难的模拟游戏。 它的目标是传播有关救灾的意识。

最后的想法 (Final thoughts)

I’m not saying you should quit your job and go all philanthropic. What I am saying is: start thinking about how you can solve issues that you see in your environment. It could be a personal issue and that’s fine, as long as you can help someone or something with your talent! What can you come up with?

我并不是说您应该辞职并全力以赴。 我的意思是:开始考虑如何解决您在环境中看到的问题。 只要您可以用自己的才能帮助某人或某事,这可能是个人问题,没关系! 你能拿出什么?

翻译自: https://www.freecodecamp.org/news/this-is-what-you-need-to-know-about-socially-responsible-programming-1085d31faec1/

了解jvm对编程的帮助

相关文章:

解压和生成 system.imgdata.img ( ext4格式)

另一篇文章讲述了如何解压和生成system.img, 那是针对yaffs2格式的文件系统镜像。 目前越来越多的Android手机放弃了nand, 更多采用了emmc为内部存储设备。 以emmc为存储设备的android手机,其文件系统(/system,/data两个分区)一般采用ext4格式…

简单分析beyond作曲

本人绝对是业余的哈 业余到什么水平呢?正在练习爬格子,还是一个星期练几次那种 先说下《海阔天空》 6,5,4,3 1,2,3,4 简单是简单得不得了,声从低到高,然后再从…

1 OC 对象的本质(一个NSObject 对象占用的内存大小)

1 前言 目录 1 前言 2 一个NSObject占用多少内存 3 为什么呢 ? 4 如何在内存中看呢? OC 的面向对象都是基于C/C 的数据结构实现的 结构体 2 clang 命令转换成c 代码 clang -rewrite-objc main.m -o main.cpp 以上的命令是不分平台进行编译的&…

Xiki:一个开发人员寻求增强命令行界面的能力

by Craig Muth通过克雷格穆斯(Craig Muth) Xiki:一个开发人员寻求增强命令行界面的能力 (Xiki: one developer’s quest to turbocharge the command line interface) I was sitting with my friend Charles in a trendy cafe next to Golden Gate Park in San Fra…

2 OC 对象的本质(一个Student 占用的内存大小)

一 Student 占用的内存空间 补充: 1 成员变量占用字节的大小: 2 内存对齐的规则:结构体的内存大小必须是最大成员变量的内存的倍数。 一个 Student 类,继承自NSObject,有两个属性,首先要知道,int 类型占用…

jdk动态代理源码学习

最近用到了java的动态代理,虽然会用,但不了解他具体是怎么实现,抽空看看了看他的源码。 说到Java的动态代理就不能不说到代理模式,动态代理也就是多了一个’动态’两字,在《大话设计模式》中不是有这句话吗?“反射&…

20162313苑洪铭 第一周作业

20162313苑洪铭 20016-2017-2 《程序设计与数据结构》第1周学习总结 教材学习内容总结 本周观看教材绪论 主要在教我建立一个简单的java程序 内容是林肯的名言 虽然看起来很简单 但是实际上问题重重 总而言之 这一周全是在出现故障的 教材学习中的问题和解决过程 教材学习好像并…

测试驱动开发 测试前移_测试驱动的开发可能看起来是工作的两倍-但无论如何您都应该这样做...

测试驱动开发 测试前移by Navdeep Singh通过Navdeep Singh 测试驱动的开发可能看起来是工作的两倍-但无论如何您都应该这样做 (Test-driven development might seem like twice the work — but you should do it anyway) Isn’t Test Driven Development (TDD) twice the wor…

3 OC 属性和方法

1 OC 的属性的生成 interface Student:NSObject {publicint _no;int _age;}property (nonatomic,assign)int height;end 当我们使用property 的时候,那么系统会自动的在其内部生成个属性 xcrun -sdk iphoneos clang -arch arm64 -rewrite-objc main.m -o main.c…

ios绘图时的坐标处理

在iOS中,进行绘图操作时,一般主要是在UIView:drawRect中调用 UIGraphicsBeginImageContextWithOptions等一系列函数,有时候直接画图就行,比如UIImage的drawRect等,有时候需要进行稍微复杂的操作,比如颜色混…

mongoDB数据库操作工具库

/* Mongodb的数据库工具类 */ var client require(mongodb).MongoClient;function MongoUtil() { this.url"mongodb://localhost:27017/storage";//在本地新建数据库storage,此后插入的数据都在storage中 }MongoUtil.prototype.connectfunction(callback…

开源许可证 如何工作_开源许可证的工作方式以及如何将其添加到您的项目中...

开源许可证 如何工作by Radu Raicea由Radu Raicea 开源许可证的工作方式以及如何将其添加到您的项目中 (How open source licenses work and how to add them to your projects) Recently, there was some exciting news for developers around the world. Facebook changed t…

通过API文档查询Math类的方法,打印出近似圆,只要给定不同半径,圆的大小就会随之发生改变...

package question;import java.util.Scanner; import java.lang.Math;public class MathTest {/*** 未搞懂* param args*/public static void main(String[] args) {// TODO Auto-generated method stubSystem.out.println("请输入圆的半径:");Scanner in new Scanne…

4 OC 中的内存分配以及内存对齐

目录 一 OC 中的内存分配 一 OC 中的内存分配 student 结构体明明是20?为什么是24个字节,因为结构体会按照本身成员变量最大的内存进行对齐,最大成员变量是8个字节,因此就是8的倍数,24个字节。 class_getInstanc…

JDE函数--GetUDC(B函数)

GetUDC使用方式: 转载于:https://www.cnblogs.com/GYoungBean/p/4117965.html

k8s crd构建方法_告诉您正在构建没人想要的东西的8种方法(以及处理方法)

k8s crd构建方法by Geoffrey Bourne杰弗里伯恩(Geoffrey Bourne) 告诉您正在构建没人想要的东西的8种方法(以及处理方法) (8 ways to tell you’re building something nobody wants (and what to do about it)) Building something users want is hard — damn hard. They ar…

iOS开发 - 线程与进程的认识与理解

进程: 进程是指在系统中正在运行的一个应用程序,比如同时打开微信和Xcode,系统会分别启动2个进程;每个进程之间是独立的,每个进程均运行在其专用且受保护的内存空间内;线程: 一个进程要想执行任务,必须得有…

Winform开发中常见界面的DevExpress处理操作

我们在开发Winform程序的时候,需要经常性的对界面的一些控件进行初始化,或者经常简单的封装,以方便我们在界面设计过程中反复使用。本文主要介绍在我的一些项目中经常性的界面处理操作和代码,以便为大家开发的时候提供必要的参考。…

5 OC 中的三种对象

目录 OC 中对象的分类 一 instance 对象 二 类对象 三 元类对象 总结: OC 中对象的分类 instance 对象 类对象 元类对象 一 instance 对象 内存中包含哪些信息 isa 指针 其他成员的变量Student *stu1 [[Student alloc]init]; 以上的stu1 就是实例对象 二 类对象 以…

travis ci_如何使用Travis CI和GitHub进行Web开发工作流程

travis ciby Vijayabharathi Balasubramanian通过Vijayabharathi Balasubramanian 如何使用Travis CI和GitHub进行Web开发工作流程 (How to use Travis CI and GitHub for your web development workflow’s heavy lifting) It’s common to hack together apps on CodePen wh…

android.view.ViewRoot$CalledFromWrongThreadException的解决办法

android 是不允许子线程直接更新UI的,如果一定要在子线程直接更新UI就会出现android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.大概意思就是说 只有原来创建找个视图hierarchy的…

6 OC中 isa 和 superclass 的总结

目录 一 关于isa 和 superclass 的总结 二 为什么基类的metaclass 的superclass 指向的是基类的类 三 isa 的细节问题 总结如下: instance 的isa 指向是classclass 的isa 指向是metaclassmetaclass 的isa指向是基类的imetaclassclass 的superclass 指向的是父类…

opencv下指定文件夹下的图片灰度化(图片的读取与保存)-------简单记录

对于此功能其实很简单&#xff1a;主要是在c方面的字母数字的拼接问题存在一定的问题。C数字字母拼接问题&#xff1a; 1 #include <fstream> 2 #include <string> 3 #include <iostream> 4 #include "highgui.h" 5 #include <cv.h> 6 #…

css菜单缓慢滑动_如何使用HTML,CSS和JavaScript构建滑动菜单栏

css菜单缓慢滑动by Supriya Shashivasan由Supriya Shashivasan 如何使用HTML&#xff0c;CSS和JavaScript构建滑动菜单栏 (How to build a sliding menu bar using HTML, CSS and JavaScript) A menu is what you look for when you land at a website. It has options and gi…

素数环问题---深度搜索遍历

1264: 素数环 时间限制: 1 Sec 内存限制: 128 MB提交: 29 解决: 8[提交][状态][讨论版]题目描述 有一个长度为n的环形序列由1,2,3,...,n组成&#xff0c;环中相邻两个整数和均为素数。你需要找到所有满足条件的环。输入 输入n表示环的长度&#xff08;n<16&#xff09;输出…

android之Notification通知

我们在用手机的时候&#xff0c;如果来了短信&#xff0c;而我们没有点击查看的话&#xff0c;是不是在手机的最上边的状态栏里有一个短信的小图标提示啊&#xff1f;你是不是也想实现这种功能呢&#xff1f;今天的Notification就是解决这个问题的。 package cn.com.chenzheng_…

7 OC 中class 类的结构

目录 一 OC 中class 的结构 https://opensource.apple.com/tarballs/objc4/ 在最新的objc源码中 化繁就简来看的话 是以下结构 struct objc_class : objc_object {objc_class(const objc_class&) delete;objc_class(objc_class&&) delete;void operator(con…

apple id无法创建_我们如何使用Apple的学习框架来创建我们的第一个应用程序

apple id无法创建by Jonata Corra由JonataCorra 我们如何使用Apple的学习框架来创建我们的第一个应用程序 (How we used Apple’s learning framework to create our first app) After one month of work, my team and I finished the first version of Echo, our tracker iOS…

个人作业1:小学四则运算——基于控制台

a.需求分析&#xff1a; 自动生成小学四则运算题目的命令行 “软件”&#xff0c;满足以下需求&#xff1a; 除了整数以外&#xff0c;还要支持真分数的四则运算&#xff0c;真分数的运算&#xff0c;例如&#xff1a;1/6 1/8 7/24运算符为 , −, , 并且要求能处理用户…

getchar返回int类型

#include <stdio.h> /* copy input to output; 2nd version */main(){int c;c getchar();while(c ! EOF){putchar(c);c getchar();}} 直觉告诉我getchar返回值应该是char类型的&#xff0c;这个地方为什么不能用char类型来存储getchar()的返回值呢&#xff1f; 其实文中…