随笔分类 - 哈佛cs50
摘要:(1)lab7 songs sqlite3 songs.db 1)list the names of all songs in the database SELECT name FROM songs; 2)list names of all songs in increasing order of
阅读全文
摘要:(1)lab6 world cup # Simulate a sports tournament import csv import sys import random # Number of simluations to run N = 1000000 #1000 def main(): # En
阅读全文
摘要:(1)lab5 - inheritance // Simulate genetic inheritance of blood type #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <time.h> // E
阅读全文
摘要:(1)lab4-Smiley helpers.c #include "helpers.h" void colorize(int height, int width, RGBTRIPLE image[height][width]) { // Change all black pixels to a c
阅读全文
摘要:lab2 #include <ctype.h> #include <cs50.h> #include <stdio.h> #include <string.h> // Points assigned to each letter of the alphabet int POINTS[] = {1,
阅读全文
摘要:|lab1| #include <cs50.h> #include <stdio.h> int main(void) { // TODO: Prompt for start size int start_size; do{ start_size = get_int("Start size: ");
阅读全文

浙公网安备 33010602011771号