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 <stdlib.h> | |
#include <stdarg.h> | |
double average(int i, ...); | |
int main(int argc, char *argv[]) | |
{ | |
double x = 22.5, y = 10.5, z = 13.2; | |
printf("x+y+z=%.2f\n", average(3, x, y, z)); |
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 <string.h> | |
#include <stdlib.h> | |
#include <sys/stat.h> | |
#include <time.h> | |
int main(int argc, char *argv[]) | |
{ | |
struct stat st; | |
char *f = "README"; |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
# a cralwer demo, crawl image of "Nao can dui hua" on http://baozoumanhua.com | |
import urllib2 | |
import urllib | |
import re | |
def get_all_page_urls(): | |
url = 'http://baozoumanhua.com/duihua/hot/page/' |
NewerOlder