Skip to content

Instantly share code, notes, and snippets.

@fabregasguo
Created April 17, 2014 01:28
Show Gist options
  • Save fabregasguo/10946931 to your computer and use it in GitHub Desktop.
Save fabregasguo/10946931 to your computer and use it in GitHub Desktop.
sample c program
#include <stdio.h>
int main()
{
return 1;
}
import sys
def main():
in_file = open("samle", "r")
while 1:
lines = in_file.readlines(10000)
if not lines:
break
for line in lines:
line = line.strip()
words = line.split()
len_word = len(words)
print len_word
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment