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 <string.h> | |
#include <math.h> | |
struct Stock | |
{ | |
char code[20]; | |
char name[10]; | |
int volume; | |
double price; |
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
from graphics import * | |
import random | |
import time | |
t1=0.2 | |
def drawl(list): | |
for p in list: | |
(x,y)=p | |
rect=Rectangle(Point(12*x,12*y),Point(12*x+12,12*y+12)) |