- 博客(7)
- 收藏
- 关注
原创 method printf pyramid and get one human himself live day
#include <stdio.h>int main(){int i, j, k, p;for (i = 5; i > 0; i–){for (k = i; k < 5; k++){printf(" ");}for (j = i; j > 0; j–){printf("x ");}for (p = i; p > 1; p–){printf(“x “);}printf(”\n\n\n”);}return 0;}
2021-01-23 22:17:10
123
1
原创 one knowledge tip about value and while loop
1.a=(b–,c++,b+c)in the end : a=b+c;2.while loopwhile(condition){++or–;then quit;}
2021-01-13 22:48:43
116
原创 overflow and underflow about language c
c languageoverflow and underflowwhen over one number its limit will overflowwhen under one number its limit will underflowjust one meaning well.when you input this format codeyou can get below words meaning.#include <stdio.h>int main(void){
2021-01-12 17:09:31
133
原创 const its usage
const int * p1; in this case, the format p1 its space can be change.int const * p2; in this case, the format p2 its pointer can not be change.for example.p1 =&i;p2 =&j;this case, p1=&l;also can equal to &k;p2=&j;p2 only equal t
2021-01-11 09:30:33
93
原创 int main or int main(void) about their distinguish
int main()can have one return value, also can not .int main(void)must have one return value.but can not be pass on value besides the its oneself function.
2021-01-11 08:23:54
94
原创 计算某年新年是星期几的公式【不过这天怎么也该是假期吧?】
马上元旦了,也就是新年。今天也是刚刚研究了一下,网上查出来一个公式,可以计算某年元旦具体是星期几。公式是这样的。//添加一个计算某年元旦具体是星期几的公式//day=year+(year-1)/4-(year-1)/100+(year-1)/400;//day%7==数字为0时为星期天,其他天数为1-6.然后,接下来是我自己编写的代码。正在转行程序员的作者,参考的代码也很简单。#include <stdio.h>main(){ int day, year, z; prin
2020-12-22 20:45:06
789
原创 半真实/原创【醉在这条老街】
## 此文原创,自此踏上极客路。来自一个开始对技术狂热的人,一个执着于不做程序员不工作的人。欢迎评论,欢迎点赞。~~一个经常梦中被扎,喜欢健身却有点懒(零零总总)~~一个 执着而打不死的铁人的内心幻想笔记。 ……………………………… 一个笔者,一个黑客,一个无线电高手,再加一个侦探。然而,当我将这篇文章发布的时候,是我遇到剧情刚好应该写到第五个人的时候……夜,冷,冷的要命。伸出的双手不再感到寒冷,也感觉不到任何的慌张。当手触及键盘的那一霎那,身为一个同样喜欢夜色下工作的笔者的我,遇到想要让我
2020-12-22 19:38:18
143
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人