TODO:你的健康你做主吗

TODO:你的健康你做主吗

TODO:你的健康你做主吗


先给大家拜个早年,身体健康,心想事成,恭喜发财,大吉大利。

年底了,事情多又赶,雾霾严重了,应酬多了,检验身体的时候到了,身体的问题也暴露多了。这疼,那痛的。上了年纪,喝个酒,熬个夜,就扛不住了,身体要恢复也好慢,通宵一夜要一个星期恢复,没有年轻人的恢复能力了。天天熬夜,不过午夜不睡觉,第二天还是按时上班,随着年纪的增长,越来越扛不住了,睡眠的缺少,脑力的活跃,使人疲倦,两眼无神,视力下降,昏昏沉沉,容易老去。

每当累的时候,我就想躺着睡一觉,然后恢复一下状态了。睡觉是最好的自我调节身体。但是良好的睡觉方法也是有讲究的,而且也简单。睡觉的时候什么也不要想,静静的,不要动,放松自己,让自己尽快入睡,即使睡的时间不长也可以让自己恢复很好的状态。

身为IT行业的码农,主要的工作环境是坐在电脑前,挥动十指,屏幕上输出想要的代码,如此一坐就是几个小时,忙的时候都忘记喝水,上卫生间了。长久的办公桌前电脑办公,会给我带来常见的几个问题有,鼠标手,肩周炎,腰疼,慢慢的坐姿就变了样,千奇百怪,别怪影响办公室形象,这就落下了职业病。很多人推出了番茄工作法,但是有多少人能坚持下来呢,若不是出现毛病了,谁会去防范呢。从而有些公司推出的做操,特别是业务公司,有早操,午操,晚操,喊口号的。我并不反对这些做操,但是过于平凡会让人反感,做操可以让人精神百倍。早晨起来做些简单的运动,可以让一整天的状态好很多。

有人问我你都做些什么运动呢?我推崇“柔弱胜刚强,以弱胜强,以柔克刚,以小博大“,我做的运动都是很小动作,很简单,不激烈,例如转一转手腕,上下运动脖子,双手上下合抱甩手,扭一扭腰,压压腿,往前下腰,深蹲。这些动作要持之以恒的坚持,才有效果,鼠标手好了,腰部尾椎也没有年初疼的问题了,脖子也没那么酸了。这种体会只要亲身经历过才懂得。

还有健康也离不开美食的,有个词叫“食补”,字面意思就够理解了。挑选好的美食,让身体更健康。多吃水果,少吃肉。建议去做个体检,让医师提供个饮食建议。每个人的身体都不一样的。该吃什么吃,不该吃什么忌口。

还有一个保障就是人身保险。随着年纪的增长,总会出现一些毛病,作为一个普通的工薪者,保险投资还有有必要的。万一有个疾病,也不需要去什么众筹了,保险可能就是我们的救命钱。

我觉得做好睡觉,运动,饮食,保险,我的健康我能做主。

wxzgh:ludong86


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
填充下面这个程序中所有出现// TODO: fill the code这个任务的地方#include <iostream> #include <cstring> #include "ourstring.h" #include "strlib.h" using namespace std; OurString::OurString(){ // TODO: fill the code } OurString::OurString(const char *str){ // TODO: fill the code } OurString::OurString(const OurString &dstr){ // TODO: fill the code } OurString::~OurString(){ // TODO: fill the code } string OurString::toString() const{ // TODO: fill the code } OurString OurString::subStr(unsigned int start, unsigned int n) const{ // TODO: fill the code } bool OurString::operator > (const OurString &dstr) const{ // TODO: fill the code } bool OurString::operator < (const OurString &dstr) const{ // TODO: fill the code } bool OurString::operator == (const OurString &dstr) const{ // TODO: fill the code } unsigned int OurString::length () const{ // TODO: fill the code } const OurString& OurString::operator = (const OurString &dstr){ // TODO: fill the code } const OurString& OurString::operator = (const char *str){ // TODO: fill the code } char& OurString::operator[](int index){ // TODO: fill the code } const OurString OurString::operator + (const OurString &dstr) const{ // TODO: fill the code } const OurString OurString::operator + (const char *str) const{ // TODO: fill the code } const OurString& OurString::operator += (const OurString &dstr){ // TODO: fill the code } const OurString& OurString::operator += (const char *str){ // TODO: fill the code } ostream & operator<<(ostream &os, const OurString &dstr){ // TODO: fill the code } istream & operator>>(istream &is, OurString &dstr){ // TODO: fill the code }
最新发布
05-29
好的,下面是填充后的代码,每个 TODO 已经被替换成相应的实现: ```c++ #include <iostream> #include <cstring> #include "ourstring.h" #include "strlib.h" using namespace std; OurString::OurString(){ str = new char[1]; str[0] = '\0'; } OurString::OurString(const char *str){ this->str = new char[strlen(str)+1]; strcpy(this->str, str); } OurString::OurString(const OurString &dstr){ this->str = new char[dstr.length()+1]; strcpy(this->str, dstr.str); } OurString::~OurString(){ delete [] str; } string OurString::toString() const{ return string(str); } OurString OurString::subStr(unsigned int start, unsigned int n) const{ if (start >= length()) return OurString(); n = (n > length() - start) ? length() - start : n; return OurString(str + start, str + start + n); } bool OurString::operator > (const OurString &dstr) const{ return strcmp(str, dstr.str) > 0; } bool OurString::operator < (const OurString &dstr) const{ return strcmp(str, dstr.str) < 0; } bool OurString::operator == (const OurString &dstr) const{ return strcmp(str, dstr.str) == 0; } unsigned int OurString::length () const{ return strlen(str); } const OurString& OurString::operator = (const OurString &dstr){ if (this != &dstr) { delete [] str; str = new char[dstr.length()+1]; strcpy(str, dstr.str); } return *this; } const OurString& OurString::operator = (const char *str){ if (this->str != str) { delete [] this->str; this->str = new char[strlen(str)+1]; strcpy(this->str, str); } return *this; } char& OurString::operator[](int index){ return str[index]; } const OurString OurString::operator + (const OurString &dstr) const{ OurString s; s.str = new char[length() + dstr.length() + 1]; strcpy(s.str, str); strcat(s.str, dstr.str); return s; } const OurString OurString::operator + (const char *str) const{ OurString s; s.str = new char[length() + strlen(str) + 1]; strcpy(s.str, this->str); strcat(s.str, str); return s; } const OurString& OurString::operator += (const OurString &dstr){ *this = *this + dstr; return *this; } const OurString& OurString::operator += (const char *str){ *this = *this + str; return *this; } ostream & operator<<(ostream &os, const OurString &dstr){ os << dstr.str; return os; } istream & operator>>(istream &is, OurString &dstr){ string s; is >> s; dstr = s.c_str(); return is; } ```

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值