/*
Write a program to copy its input to its output, replacing each tab by \t, each
backspace by \b, and each backslash by \\. This makes tabs and backspaces visible
in an unambiguous way.
*/
#inclu...
分类:
其他好文 时间:
2015-07-12 20:25:20
阅读次数:
93
/*
Verify that the expression getchar() != EOF is 0 or 1.
*/
#include
main()
{
int c;
while(c = getchar() != EOF)
{
printf("%d\n", c);
}
printf("%d - at EOF\n", c);
}...
分类:
其他好文 时间:
2015-07-12 19:02:18
阅读次数:
145
/*
Modify the temperature conversion program to print the table in reverse order,
that is, from 300 degrees to 0.
*/
#include
/* print Fahrenheit-Celsius table in reverse order */
main()
{
int...
分类:
其他好文 时间:
2015-07-11 20:16:44
阅读次数:
164
/*
Write a program to print the corresponding Celsius to Fahrenheit table.
*/
#include
/* print Celsius-Fahrenheit table for celsius = 0, 20, ..., 300; floating-point
version */
main()
{
float...
分类:
其他好文 时间:
2015-07-11 20:14:23
阅读次数:
176
/*
Run the "hello, world" program on your system. Experiment with leaving out parts of the program to see what error messages you get.
*/
#include
main()
{
printf("hello world\n");
}...
分类:
其他好文 时间:
2015-07-11 18:31:13
阅读次数:
107
/*
Experiment to find out what happens when printf's argument string contains \c, where c is some character not listed above.
*/
#include
main()
{
printf("hello world\y");
printf("hello wor...
分类:
其他好文 时间:
2015-07-11 18:27:26
阅读次数:
137
/*
Modify the temperature conversion program to print a heading above the table.
*/
#include
/* print fahrenheit-Celsius table for fahr = 0, 20, ..., 300; floating-point
version */
main()
{
fl...
分类:
其他好文 时间:
2015-07-11 18:26:47
阅读次数:
147
findClosestCentroids.mm = size(X,1);for i=1:m [value index] = min(sum((repmat(X(i,:),K,1)-centroids).^2,2)); idx(i) = index;endcomputeCentroids....
分类:
系统相关 时间:
2015-07-07 00:46:23
阅读次数:
231
% Exercise 4 -- Logistic Regressionclear all; close all; clcx = load('E:\workstation\data\ex4x.dat'); y = load('E:\workstation\data\ex4y.dat');[m, n] ...
分类:
其他好文 时间:
2015-06-27 21:10:12
阅读次数:
301
MNIST是一套对手写数字进行识别的数据集:http://yann.lecun.com/exdb/mnist/MNIST的数据结构官网上已给出,挺奇葩的-.-,所以第一件事是把数据整理出来我写了个脚本帮我整理,输出的是一坨文本文件,【其中image是用灰度矩阵表示,每个像素1字节,每张图28x28 ...
分类:
其他好文 时间:
2015-06-21 18:29:51
阅读次数:
169