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
| # Copyright 2015 The TensorFlow Authors. All Rights Reserved. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the 'License'); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an 'AS IS' BASIS, |
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
| /** | |
| * Determine the mean of a list of integers in a file 'nums.txt'. | |
| * One integer is on each line in the file. Writes the mean in a | |
| * nicely formatted way into a file mean.txt. Will override | |
| * mean.txt if it exists already. | |
| * @author Chi Zeng ([email protected]) + section-mates. | |
| * Oct. 22, 2013 | |
| */ | |
| #include <stdio.h> |
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
| /** | |
| * Makes a copy of a file. | |
| * The destination file name must not already exist. | |
| * Usage: ./executable source destination | |
| * @author Chi Zeng ([email protected]) and section-mates | |
| * Oct. 22, 2013 | |
| */ | |
| #include <stdio.h> |
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
| /** | |
| * Makes a copy of a file. | |
| * The destination file name must not already exist. | |
| * Usage: ./executable source destination | |
| * @author Chi Zeng ([email protected]) and section-mates | |
| * Oct. 22, 2013 | |
| */ | |
| #include <stdio.h> |
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
| /** | |
| * Merge sort. | |
| * | |
| * By Chi Zeng ([email protected]) and compatriots who cared enough about CS50 to | |
| * come to section. | |
| * Oct. 8, 2013 | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> |
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
| /** | |
| * factorial.c | |
| * Calculates X! factorial. | |
| * | |
| * @author Chi Zeng ([email protected]) | |
| * Sep. 24, 2013 | |
| */ | |
| #include <stdio.h> |
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
| /** | |
| * factorial.c | |
| * Calculates X! factorial. | |
| * | |
| * @author Chi Zeng ([email protected]) | |
| * Sep. 24, 2013 | |
| */ | |
| #include <stdio.h> |
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
| /** | |
| * makeChange.c | |
| * Calculates the number of ways to make change for x cents | |
| * using half dollars, quarters, dimes, nickels, pennies. | |
| * | |
| * @author Chi Zeng ([email protected]) | |
| * Sep. 24, 2013 | |
| */ | |
| #include <stdio.h> |