This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cs50.h> | |
| #include <stdio.h> | |
| int main(void) | |
| { | |
| // TODO: Prompt for start size | |
| int s; | |
| do | |
| { | |
| s = get_int("Start size: "); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <cs50.h> | |
| int main(void) | |
| { | |
| //to ask name for acquaintance. | |
| string name = get_string("What's your name?\n"); | |
| printf("hello, %s.\n", name); | |
| printf("I'm Moqi. Nice to meet you.\n"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <cs50.h> | |
| int main(void) | |
| { | |
| //Notification | |
| printf("Welcome, Please enter a number from one to eight to build.\n"); | |
| int h; | |
| do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <cs50.h> | |
| //References... | |
| void p_s(int x); | |
| void p_hash(int x); | |
| int main(void) | |
| { | |
| //Notification. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cs50.h> | |
| #include <stdio.h> | |
| #include <math.h> | |
| int main(void) | |
| { | |
| int c = 0; | |
| //Get owe... | |
| printf("Write down the amount you owe to calculate the number of coins like ($.ยข)...\n"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cs50.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| // Points assigned to each letter of the alphabet | |
| int POINTS[] = {1, 3, 3, 2, 1, 4, 2, 4, 1, 8, 5, 1, 3, 1, 1, 3, 10, 1, 1, 1, 1, 4, 4, 8, 4, 10}; | |
| int compute_score(string word); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cs50.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| #include <math.h> | |
| int main(void) | |
| { | |
| //Get Text... | |
| string text = get_string("Text: "); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cs50.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| #include <math.h> | |
| #include <stdlib.h> | |
| //Variable. | |
| int s = 0; | |
| int main(int argc, string argv[]) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sort1 uses: Bubble Sort | |
| How do you know?: I checked the time for the least amount of data in the sorted state based on omega. | |
| sort2 uses: Merge Sort | |
| How do you know?: I checked the time for the least amount of data in the sorted state based on omega. | |
| sort3 uses: Selection Sort |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cs50.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| #include <math.h> | |
| #include <stdlib.h> | |
| // Max number of candidates | |
| #define MAX 9 |
OlderNewer