Prologでまったり Part3
at TECH
[
2ch
|
▼Menu
]
■コピペモード
□
スレを通常表示
□
オプションモード
□このスレッドのURL
■項目テキスト
50:デフォルトの名無しさん 07/11/09 17:11:29 顧客番号 ではなく 顧客 ね。 51:デフォルトの名無しさん 07/11/09 17:26:02 >>48 solve(# P,V,L1,L2) :- !,データベース呼び出し(P,L1). データベース呼び出し(_副目標,L1) :- _副目標 =.. [_関係表名|_引数ならび], select cname into _属性名ならび from col where tname=_関係表名, 条件の選別(_属性名ならび,_引数ならび,_条件句候補), ... でよいのか。 52:デフォルトの名無しさん 07/11/09 17:29:08 またしくじった!! solve(# P,V,L1,L2) :- !,データベース呼び出し(P,L1). データベース呼び出し(_副目標,L1) :- _副目標 =.. [_関係表名|_引数ならび], select cname into _属性名ならび from col where tname=_関係表名, 条件の選別(_属性名ならび,_引数ならび,_条件句候補,L1), ... ですね。 53:デフォルトの名無しさん 07/11/09 20:13:55 どなたか、P# の使い方を教えてください。Redhat9 で mono が動いています。 # cat ap.pl ap([],X,X). ap([U|X],Y,[U|Z]) :- ap(X,Y,Z). # mono /root/psharp/Psharp-1.1.3/PsharpIntrp.exe P# 1.1.3 Copyright(C) 2003 J.J.Cook Based on: Prolog Cafe 0.4.4, 0.6.1 Copyright(C) 1997-2003 M.Banbara and N.Tamura Small Prolog Interpreter | ?- compile(ap). {translating ap.pl into C#...} {ap.pl translated, 1523 msec} yes | ?-halt. # ls -l *.cs -rw-r--r-- 1 root root 4290 11月 9 20:06 Ap_3.cs # mcs /r:Psharp.dll /out:Ap_3.exe Ap_3.cs error CS5001: Program `Ap_3.exe' does not contain a static `Main' method suitable for an entry point Compilation failed: 1 error(s), 0 warnings # これは何が起きているのでしょうか。
次ページ
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
レスジャンプ
mixiチェック!
Twitterに投稿
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch
5387日前に更新/90 KB
担当:undef