一份用C語言寫的簡(jiǎn)歷

3月的春招正在火熱進(jìn)行,看到了一個(gè)程序員用C語言給自己寫的簡(jiǎn)歷,分享一下,不知道國(guó)內(nèi)的HR會(huì)看嗎?
<pre><code>

include <stdio.h>

include <time.h>

typedef struct {
union {
const char * company;
const char * school;
const char * project;
};
union {
const char * location;
const char * url;
};
union {
const char * title;
const char * program;
};

time_t started;
time_t left;

const char * description[];

} thing_t;

typedef thing_t job_t;
typedef thing_t school_t;
typedef thing_t project_t;

define CURRENT 0 /* I wasn't alive at the Unix epoch, so that'll work */

/* Contact Information */
const char * name = "Kevin R. Lange";
const char * email = "klange@toaruos.org";
const char * address = "1045 Mission St, Apt 440\n"
"San Francisco, CA 94103";

/* Education */
school_t uiuc = {
.school = "University of Illinois at Urbana-Champaign",
.location = "Urbana, IL",
.program = "BS Computer Science",
.started = 1251158400,
.left = 1336608000,
.description = {
"Minor in International Studies in Engineering, Japan",
"Focused on systems software courses",
NULL
}
};

school_t hit = {
.school = "Hiroshima Institute of Technology",
.location = "Hiroshima, Japan",
.program = "Study Abroad",
.started = 1274745600,
.left = 1278288000,
.description = {
"Cultural exchange program",
"Intensive language course",
NULL
}
};

school_t * schools[] = {
&uiuc,
&hit,
NULL
};

/* Projects */
project_t compiz = {
.project = "Compiz Window Manager",
.url = "http://compiz.org",
.title = "Developer",
.started = 1201392000,
.left = 1264291200,
.description = {
"Minor plugin contributor",
"Various research projects",
NULL
}
};

project_t toaruos = {
.project = "ToAruOS",
.url = "https://github.com/klange/toaruos",
.title = "Lead",
.started = 1295049600,
.left = CURRENT,
.description = {
"Hobby x86 Unix-like kernel and userspace",
"Advanced in-house GUI with compositing window manager",
NULL
}
};

project_t * projects[] = {
&toaruos,
&compiz,
NULL
};

/* Employment History */

job_t yelp = {
.company = "Yelp, Inc.",
.location = "San Francisco, CA",
.title = "Software Engineer, i18n",
.started = 1339977600,
.left = CURRENT,
.description = {
"Developed several internal tools and libraries",
"Provided critical input and design work for Yelp's launch in Japan",
NULL
}
};

job_t apple_internship = {
.company = "Apple Inc.",
.location = "Cupertino, CA",
.title = "Software Engineering Intern",
.started = 1306886400,
.left = 1314662400,
.description = {
"Built software framework for testing and verification of desktop retina display modes",
"Assisted other interns with Unix fundamentals",
NULL
}
};

job_t * jobs[] = {
&yelp,
&apple_internship,
NULL
};

void print_thing(thing_t * thing) {
char started[100];
char left[100];
struct tm * ti;

printf("%s at %s - %s\n", thing->title, thing->company, thing->location);

ti = localtime(&thing->started);
strftime(started, sizeof(started), "%B %d, %Y", ti);

if (thing->left == CURRENT)  {
    printf("%s to now\n", started);
} else {
    ti = localtime(&thing->left);
    strftime(left, sizeof(left), "%B %d, %Y", ti);
    printf("%s to %s\n", started, left);
}

const char ** desc;
for (desc = thing->description; *desc; desc++) {
    printf("- %s\n", *desc);
}

puts("");

}

int main(int argc, char ** argv) {

school_t ** s;
job_t ** j;
project_t ** p;

printf("%s\n%s\n%s\n\n", name, email, address);

puts("Education\n");
for (s = schools; *s; s++) {
    print_thing(*s);
}

puts("Employment\n");
for (j = jobs; *j; j++) {
    print_thing(*j);
}

puts("Projects\n");
for (p = projects; *p; p++) {
    print_thing(*p);
}

return 0;

}
</code></pre>

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Lua 5.1 參考手冊(cè) by Roberto Ierusalimschy, Luiz Henrique de F...
    蘇黎九歌閱讀 14,264評(píng)論 0 38
  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 11,224評(píng)論 0 23
  • Spring Cloud為開發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 136,695評(píng)論 19 139
  • 知了在枝頭高唱 是否 它縱情的歌聲 是在慶祝 劫后余生 躲過了暴雨 躲過了口舌之欲 重生 在脫殼之后
    舒漓閱讀 240評(píng)論 0 9
  • 2015年2月22日 今天是我家請(qǐng)客,我喝了好多好多酒,還有白的,很醉 睡了一下午,所以,不寫了。 作于2015年...
    蒙古海軍上將閱讀 224評(píng)論 0 1

友情鏈接更多精彩內(nèi)容