Library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
Type arr is array (1 to mut_bits) of integer;
type chrom_matrix is array (1 to pop_s
我是Haskell的新手,當我嘗試配置我碼。我明白main()中的所有指令都需要是IO(),並且發生錯誤是因爲我使用的函數之一(在Graphics.Gloss.Interface.IO.Animate中)沒有返回IO()。我想用光澤包顯示遺傳算法的結果。 這裏是我的代碼: module Main where
import Prelude as P
import Control.Monad.R