
C
Llingmiao
这个作者很懒,什么都没留下…
展开
-
Arduino独立Blink程序-无需外插设备
Arduino独立Blink程序-无需外插设备void setup() { pinMode(LED_BUILTIN, OUTPUT);}void loop() { digitalWrite(LED_BUILTIN, HIGH); delay(1000); digitalWrite(LED_BUILTIN, LOW); delay(1000);}点赞(0)原创 2020-09-03 13:36:46 · 740 阅读 · 0 评论 -
每日一练:C中的函数
#include <stdio.h>int main(int argc, const char * argv[]) { // insert code here... printf("Hello, World!\n"); float weigth; weigth = 23.3; printf("The furkey weight is: %f, \...原创 2018-03-01 09:10:29 · 211 阅读 · 0 评论 -
每日一练:C中的函数2
#include <stdio.h>void congratulateStudent(char *student, char *course, int numDays) { printf("%s has done as much %s programing as I could fit into %d days \n", student,course,numDays);}int ...原创 2018-03-01 09:17:08 · 171 阅读 · 0 评论 -
每日一练:C中的函数3
#include <stdio.h>//#include <unistd.h>void showCookTimeForTurkey(int pound) { int necessaryTime = 15 + 15 * pound; printf("Cook for %d minutes.\n",necessaryTime);}int main(int argc,...原创 2018-03-01 09:39:01 · 185 阅读 · 0 评论 -
每日一练:C中的函数4
void singTheSong(int numOfBottles) { if (numOfBottles == 0) { printf("There is no more bottles to sing the song now.\n"); } else { printf("%d bottoles of beer on the wall, %d bottl...原创 2018-03-02 10:55:36 · 189 阅读 · 0 评论 -
每日一练:C中的指针
#include <stdio.h>typedef struct { float height; int age;} Person;int main(int argc, const char * argv[]) { // insert code here... Person tom; tom.age = 23; tom.height = 22.0; ...原创 2018-03-09 23:41:04 · 174 阅读 · 0 评论 -
每日一练:C中的指针2
int main(int argc, const char *argv[]){ int i = 17; printf("i stores its value at %p \n", &i);// return 0; int *addr = &i; printf("i stores its value at %p \n", addr); printf...原创 2018-03-09 23:48:18 · 197 阅读 · 0 评论 -
每日一练:C语言的引用传递
#include <stdio.h>#include <math.h>int main(int argc, const char * argv[]){ double pi = 3.14; double intgerPart; double fractionPart; fractionPart = modf(pi, &intgerPar...原创 2018-03-10 00:22:21 · 385 阅读 · 0 评论