检测你处于程序员的哪个层级
檢測你處于程序員的哪個層級
高中時期
view plaincopy to clipboardprint?
10?PRINT?"HELLO?WORLD"??
20?END??
大學新生
view plaincopy to clipboardprint?
program?Hello(input,?output)??
??begin??
????writeln(\'Hello?World\')??
??end.??
高年級大學生
view plaincopy to clipboardprint?
#include?<stdio.h>??
???
int?main(void)??
{??
???printf("Hello,?world!\\n");??
???return?0;??
}??
</stdio.h>??
?
?
職業新手
view plaincopy to clipboardprint?
#include?<stdio.h>??
void?main(void)??
{??
??char?*message[]?=?{"Hello?",?"World"};??
??int?i;??
??
??for(i?=?0;?i?<?2;?++i)??
????printf("%s",?message[i]);??
??printf("\\n");??
}??
stdio.h>??
職業老手
view plaincopy to clipboardprint?
?#include?<iostream>??
?#include?<string>??
using?namespace?std;??
??
?class?string??
?{??
?private:??
???int?size;??
???char?*ptr;??
??
?string()?:?size(0),?ptr(new?char[1])?{?ptr[0]?=?0;?}??
??
???string(const?string?&s)?:?size(s.size)??
???{??
?????ptr?=?new?char[size?+?1];??
?????strcpy(ptr,?s.ptr);??
???}??
??
???~string()??
???{??
?????delete?[]?ptr;??
???}??
??
???friend?ostream?&operator?<<(ostream?&,?const?string?&);??
???string?&operator=(const?char?*);??
?};??
??
?ostream?&operator<<(ostream?&stream,?const?string?&s)??
?{??
???return(stream?<<?s.ptr);??
?}??
??
?string?&string::operator=(const?char?*chrs)??
?{??
???if?(this?!=?&chrs)??
???{??
?????delete?[]?ptr;??
????size?=?strlen(chrs);??
?????ptr?=?new?char[size?+?1];??
?????strcpy(ptr,?chrs);??
???}??
???return(*this);??
?}??
??
?int?main()??
?{??
???string?str;??
??
???str?=?"Hello?World";??
???cout?<<?str?<<?endl;??
??
???return(0);??
?}??
/string></iostream>??
黑客學徒
#!/usr/local/bin/perl$msg="Hello, world.\\n";if ($#ARGV >= 0) {while(defined($arg=shift(@ARGV))) {$outfilename = $arg;open(FILE, ">" . $outfilename) || die "Can\'t write $arg: $!\\n";print (FILE $msg);close(FILE) || die "Can\'t close $arg: $!\\n";}} else {print ($msg);}1;有經驗的黑客
view plaincopy to clipboardprint?
#include?<stdio.h>??
#define?S?"Hello,?World\\n"??
main(){exit(printf(S)?==?strlen(S)???0?:?1);}??
stdio.h>??
老練的黑客
% cc -o a.out ~/src/misc/hw/hw.c% a.out超級黑客
% echo "Hello, world."一線經理
view plaincopy to clipboardprint?
10?PRINT?"HELLO?WORLD"??
20?END??
中層經理
mail -s "Hello, world." bob@b12Bob, could you please write me a program that prints "Hello, world."?I need it by tomorrow.^D高級經理
% zmail jimI need a "Hello, world." program by this afternoon.首席執行官
% letterletter: Command not found.% mailTo: ^X ^F ^C% help mailhelp: Command not found.% damn!!: Event unrecognized% logou轉載于:https://www.cnblogs.com/mike-mei/p/8449645.html
《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
以上是生活随笔為你收集整理的检测你处于程序员的哪个层级的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【转载】OI生涯结束……在逸夫楼那些的日
- 下一篇: 第五个神奇的电梯(2)