Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

JIANG Di dd1994

💭
I may be slow to respond.
View GitHub Profile
@dd1994
dd1994 / 波尔共振.c
Created Nov 24, 2013
物理實驗報告“波爾共振”的一個麻煩算數題 -std=c99
View 波尔共振.c
#include <stdio.h>
#include <math.h>
double f(double,double);
int main(void)
{
double t0[10] = {1.558, 1.560, 1.563, 1.565, 1.566, 1.565, 1.565, 1.563, 1.561, 1.559};
double t[10] = {1.568, 1.569, 1.571, 1.573, 1.576, 1.582, 1.584, 1.587, 1.590, 1.595};
for (int i = 0; i < 10; ++i)
{
printf("%.3f\n",f(t0[i], t[i])*180/3.1415926 );
@dd1994
dd1994 / 霍尔效应.c
Created Nov 25, 2013
物理实验报告“霍尔效应”的一道麻烦算数题 -std=c99
View 霍尔效应.c
#include <stdio.h>
double f(double);
int main(int argc, char const *argv[])
{
double u[17] = {4.115, 5.88, 6.79, 7.2275, 7.745, 7.83, 7.8425, 7.9025, 7.8925, 7.8525, 7.84, 7.8225, 7.455, 7.165, 6.6, 5.39, 3.5115};
for (int i = 0; i < 17; ++i)
{
View 蠟筆小新00.txt
`-/oshdmNNMMMMMNNmdhys+/-`
-ohmNMMMMMMMMMMMMMMMMMMMMMMMMMNho/.
`:+ohNNMMmhys++oydmMMMMMMMMMMMMMMMMMMMMMMMNy+.
.odMMMMMMMMMMMMMMd:----:+shmMMMMMMMMMMMMMMMMMMMMMmo-
-hMMMMMMMMMMMMMMMMMMN+......---/oydNMMMMMMMMMMMMMMMMMMd+`
+NMMMMMMMMNhysyNMMMMMMM+..........---/ohmMMMMMMMMMMMMMMMMNs.
+NMMMMMMNy/--..--hMMMMMMN-..............--:oymMMMMMMMMMMMMMMNs`
-dmsdmmds/--.......-mMMMMMMs..................--:ohNMMMMMMMMMMMMm/
+Ny-.----............+MMMMMMh.......----...........--/ymMMMMMMMMMMMy`
`yN+-..................-omMMMMo......oNNNNmy/...........--/ymMMMMMMMMMm.
View 蠟筆小新01.txt
`:+ydmNMMMMNmdyo/.
`/shNMMmdo+sydNMMMMMMMMNy/`
+NMMMmdmMMMo...-:+sdNMMMMMMMy-
`sdNds:..-yMMM:.......-/sdMMMMMMy.
-y:........-dMM/..:yyo-....-+hNMMMN/
:y-..-/ooo/-..--...-hMMMho/:----yMMMM/
.h--sso:-.-/y+........:odMMMMMMMd/oMMMM-
y/..-.......-y+.....-/ooosdNmmmdy-.hMMMd
`+s+........:++:-+.../ss/-....-sy-....+MMMM.
+s:.........hMmhMo....:oyy+-...../h-...oMMMM:
View 蜡笔小新02.txt
`-:////sdmNmdho/`
.:/oydmNNNmmNNNmmNNmNmmmh/`
.-/shmNNNmNNNNNmmNNNNmmmmmNmmmmmm+`
-+ydmmmNmmmmmNmNNNdoNNNNmmNNNNNNNmmmNmh-
`-odmmmmmmmmmNNNNmNNNs-hNmmmmNmyyhmNNmmmmmmmo`
-odmmmmmmmmmmmmmNmmmNd:.:NmmmmmN/..../hmmmmmmmmd:
`/hmNmmmmmNmNNNNNmmmmmmN/..oNmmmmmd.`````.:sdmmdy-:ys.
-smmmmNNNmmmNmNNNNNNmmmmmN+..ymmmmmmo````````..--..``.od/
-ymmmNmmNNNNNNNNNNNNmmmmmmmNy..hmmmmmm-`````````````````.:sy/`
`smmmmmNNNNNNNNNNNNNNNmmmmmmmmd-./hddmh:.````````````````````-oyhs+/-``
View Tutorial.md

Prerequisites

  • a vswap OpenVZ VPS or a KVM/Xen/VMware VPS with Ubuntu Server 12.04 LTS installed (architecture doesn't matter), or a dedicated server
  • patience and a willingness to learn
  • approximately 10 minutes of time

Why Ubuntu LTS?

View 删除操作.c
#include <stdio.h>
#include <string.h>
void func(char *, char *);
int main(void)
{
char str1[80], str2[80];
gets(str1);
View 十进制转二进制.c
#include<stdio.h>
void func(int);
int main(void)
{
int n;
while(scanf("%d", &n) != EOF)
{
View sumDiff.c
#include <stdio.h>
void sumDiff(int , int , int *, int *);
int main(void)
{
int a, b, sum, diff;
while(scanf("%d %d", &a, &b) != EOF)
{
View 矩阵整理.c
#include <stdio.h>
void func(int a[100][100], int m, int n)
{
int i, j;
for (i = 1; i < m; ++i)
{
for (j = 0; j < n; ++j)