greetings.c

来自「很多嵌入式VxWorks的实验程序」· C语言 代码 · 共 24 行

C
24
字号
/* greetings.c - extraterrestrial hello world program */#include "vxWorks.h"#include "stdio.h"#include "stdlib.h"char * greetings [] =    {    "Trust No One",    "The Truth is Out There",    "I Want To Believe",    "Surrender, Earthlings, or your planet shall be destroyed!",    "You have committed a crime. Remain where you are\n"       "until we arrive to punish you."    };void hello (void)    {    int i = rand() % NELEMENTS (greetings);    printf ("%s\n", greetings[i]);    }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?