亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ai.cpp.txt

?? 人工智能程序源碼
?? TXT
?? 第 1 頁 / 共 2 頁
字號(hào):
Date: Wed, 17 Sep 2003 19:03:01 -0700
Here is the AI C++ source code to date. 


********** EN.H file begins *************************************
// Declaration of the EN class. - EnBoot
// Member functions defined in EN.cpp 
// For reference only               9/16/03

// preprocessor directives that
// prevent multiple inclusions of header file 

#ifndef EN_H  
#define EN_H 


class EN : public AI {   // Initialization of AI arrays (fibers).

public:

	EN();
	~EN();

    void Ena();
    void Enb();
 

static void SetAudData(int t, int pho, int act, int pov,
                              int beg, int ctu, int psi);

static void SetPsiData(int t, int psi, int act, int jux, int pre, 
                              int pos, int seq, int enx);

static void SetEnData(int t, int nen, int act, int fex,
   				             int pos, int fin, int aud);
private:


};

#endif
****************************** EN.H file ends *******************
EN.H
AI.H
SN.H
SE.H
DB.H
AI.CPP
SE.CPP
EN.CPP
DB.CPP
SN.CPP
********** AI.H file begins *************************************
// Declaration of the AI class. 
// For reference only         9/16/03
// Member functions defined in AI.cpp

// preprocessor directives that
// prevent multiple inclusions of header file
#ifndef AI_H  
#define AI_H 

#ifndef TFVAL  
#define TFVAL 
typedef int BOOL;
static BOOL True = 1;
static BOOL False = 0;
#endif

#ifndef ARY
#define ARY
#define ARYSIZ 100
#endif

#ifndef WRD
#define WRD
#define WRDSIZ 1000
#endif

class AI {

public:
   
   AI();          // Artificial Intelligence Constructor
   ~AI();         // Artificial Intelligence Deststructor

   void Alife();  // Artificial Intelligence Program

protected:
   
private:

};


class TH : public AI {   // Human input module with AI attention

public:

	TH();
	~TH();

    void Thn();

private:

    void Activate();
    void English();
    void NegSvo();   // Negative of Subject-Verb-Object
    void Svo();      // Subject Verb-Object
    
};   

class MO : public AI {   // Human input module with AI attention

public:

	MO();
	~MO();

    void Mot();

private:

};   

#endif
****************************** AI.H file ends *******************
EN.H
AI.H
SN.H
SE.H
DB.H
AI.CPP
SE.CPP
EN.CPP
DB.CPP
SN.CPP
********** SN.H file begins *************************************
  
// Declaration of the SN class.
// Member functions defined in SN.cpp 
// For reference only                  9/16/03

// preprocessor directives that
// prevent multiple inclusions of header file 

#ifndef SN_H  
#define SN_H 

#define BUFLEN 80

class SN : public AI {   // Human input module with AI attention

public:

	SN();
	~SN();

    void Sen();

private:

    void Audition();
    int  AddWrdDb(char * tokenptr);
    void AddWrdDbList(char * tokenptr);
    void OldConcept();
    void NewConcept(int onset);
    BOOL AudRecog(char * tokenptr);
    void AudDamp();
    void RequestMsg();
    void ConvUpper();
    int  ClrSpc(int);
    void ClrActTags();
    void ClrBuf(); 
    void Parser();
    void Activate();
    int Find (const char * str, char * s) const;    
    char Buf[BUFLEN];
    
};   

#endif 
****************************** SN.H file ends *******************
EN.H
AI.H
SN.H
SE.H
DB.H
AI.CPP
SE.CPP
EN.CPP
DB.CPP
SN.CPP
********** SE.H file begins *************************************
  
// Declaration of the SE class - Security.
// Member functions defined in SE.cpp
// For reference only          9/16/03

// preprocessor directives that
// prevent multiple inclusions of header file 

#ifndef SE_H  
#define SE_H 


class SE : public AI {   // Security = Internal rumination tasks

public:

	SE();
	~SE();

    void Sec();

private:

    void Rejuvinate();
    void PsiDecay();
    void Ego();
    
};

#endif   
****************************** SE.H file ends *******************
EN.H
AI.H
SN.H
SE.H
DB.H
AI.CPP
SE.CPP
EN.CPP
DB.CPP
SN.CPP
********** DB.H file begins *************************************
// Declaration of the DB class. Data Base - Fibers
// For reference only         9/16/03
// Member functions defined in DB.cpp

struct AudStr  // Auditory Memory Array
    {
	int pho;  // Phoneme
	int act;  // Activiation Level
	int pov;  // Point of View
	int beg;  // Beginning
	int ctu;  // Continuation
	int psi;  // Tag number to a concept
	};

struct EnStr    // English Lexicon Array
    {
	int nen;  // Mindcore concept number
	int act;  // Activiation Level
	int fex;  // Mindcor Exit tag
	int pos;  // Part of Speech
	int fin;  // Mindcore In tag
	int aud;  // Auditory Tag
	};

struct PsiStr   // Mindcore Concept Array
    {
	int psi;  // Mindcore concept number
	int act;  // Activiation Level
	int jux;  // Juxtaposed modifier
	int pre;  // Previous associated
	int pos;  // Part of Speech
	int seq;  // Subsequent tag
	int enx;  // Transfer to English
	}; 

class DB : public AI {   // Human input module with AI attention

public:

    // set functions
   
static   BOOL SetEle( PsiStr * StrPtr, const int EleIdx);  // set concept array element, element index
static   BOOL SetEle( EnStr * StrPtr,  const int EleIdx);  // set english lexicon element, element index
static   BOOL SetEle( AudStr * StrPtr, const int EleIdx);  // set auditory memory element, element index

   // get functions
   
static   PsiStr * GetPsiEle( const int EleIdx);  // return concept array element
static   EnStr * GetEnEle( const int EleIdx);    // return english lexicon element
static   AudStr * GetAudEle( const int EleIdx);   // return auditory memory element

   // delete functions
   
static   BOOL DelPsi( const int EleIdx); // delete concept array element, element index
static   BOOL DelEn(  const int EleIdx); // delete english lexicon element, element index
static   BOOL DelAud( const int EleIdx); // delete auditory memory element, element index
   
static   PsiStr * GetPsiAryPtr();
static   EnStr * GetEnAryPtr();
static   AudStr * GetAudAryPtr();
static   char * GetWrdPtr(); 
  
static   void PrintMemErr();
static   BOOL SetTime(int t);
static   int GetTime(); 
static   void StartupMsg();

   // print functions
   
   BOOL PrintPsiElements();  // output 
   BOOL PrintEnElements();   // output 
   BOOL PrintAudElements();  // output 
                                       
   // Clear data base functions                                    
                                 
   DB();
   ~DB(); 
 

private: 

   void Clr();
   void ClrPsi();            // Clear Psi array
   void ClrEn ();            // Clear En array
   void ClrAud();            // Clear Aud array
   void ClrWrd();            // Clear Word Array
   AudStr * AudStrPtr;
   EnStr  * EnStrPtr;
   PsiStr * PsiStrPtr;
  
};   
****************************** DB.H file ends *******************
EN.H
AI.H
SN.H
SE.H
DB.H
AI.CPP
SE.CPP
EN.CPP
DB.CPP
SN.CPP
********** AI.CPP file begins ***********************************

// Member function definitions of the AI class.
// For reference only.                  9/16/03


#include <iomanip.h>
#include <stdlib.h>
#include <ctype.h>

#include "AI.h"
#include "EN.h"
#include "SE.h"
#include "DB.h"
#include "SN.h"

   AI::AI()   // Constructor
   { 
   }
     
   AI::~AI()  // Destructor
   {
   }
  
   //  Classes below are AI derived classes
   
   MO::MO()        // Motorium class constructor
   {
   }              
   MO::~MO()       // Motorium class destructor
   {
   }
   void MO::Mot()  // Motorium
   {
   }  
   TH::TH()        // Think class constructor
   {
   }               // Think class destructor
   TH::~TH()
   {
   }
   void TH::Thn()  // Syntax and Vocabulary of Natural Language
   {
   }  

   void AI::Alife() 
   {
   DB DatBase;   		 // Create Data Base
   EN EngBoot;      	 // Create Initialize Data Base 
   SE Security;   	     // Create Internal Rumination
   SN Sensorium;  		 // Create Human Input Facility
   TH Think;        	 // Create Internal Associative Facility
   MO Motorium;   	     // Create Output Facility
   EngBoot.Ena();        // Initialize Word List
   EngBoot.Enb(); 		 // Initialize Word Data Base
   DatBase.StartupMsg(); // Display Startup Message
   while(True)
      {
      Security.Sec();     // AI Internal Rumination  
      Sensorium.Sen();    // AI Initial procesing of Input
      Think.Thn();        // AI Syntax and vocabulary of natural language
      Motorium.Mot();     // AI Output
      };
    }
 

 void main(void)
 {                                                                            
 AI AI1;      // Create Artificial Intelligence Program
 AI1.Alife(); // Execute Artificial Intelligence Program
 }                     
****************************** AI.CPP file ends *****************
EN.H
AI.H
SN.H
SE.H
DB.H
AI.CPP
SE.CPP
EN.CPP
DB.CPP
SN.CPP
********** SE.CPP file begins ***********************************
// Member function definitions of the SE class.
// For reference only.                  9/16/03


#include <iomanip.h>

#include "AI.h"   
#include "SE.h"   

   SE::SE()        // Security class constructor
   {
   }               
   
   SE::~SE()       // Security class destructor
   {
   }
   
   void SE::Sec()  // Human input module with AI attention
   {
   Rejuvinate();
   PsiDecay();
   Ego();
   } 
   
   void SE::Rejuvinate()
   {
   }
   
   void SE::PsiDecay()
   {
   }
   
   void SE::Ego()
   {
   }

****************************** SE.CPP file ends *****************
EN.H
AI.H
SN.H
SE.H
DB.H
AI.CPP
SE.CPP
EN.CPP
DB.CPP
SN.CPP
********** EN.CPP file begins ***********************************

// Member function definitions of the EN class.
// For reference only.                  9/16/03

// Enboot - Initialize the memory threads
// with English words  

// Definitions: 

// Pho - Phoneme 
// Act - Flag for previous character hit in search
// Pov - Point of View (# Internal, * External)
// Beg - Beginning of word flag
// Ctu - Continuation of word flag
// Psi - Assoctiaon tag to En Array
// Jux - Juxtaposed word tag
// Pre - Previous concept asssociated with another concept
// Pos - Part of Speech  1=adj 2=adv 3=conj 4=interj 5=noun 6=prep 7=pron 8=verb
// Seq - Subsequent concept associated with another concept
// Enx - Transfer to English
// Nen - English lexical concept number
// Fex - Fiber exit flag
// Fin - Fiber in flag
// Aud - Auditory recall tag 

// Psi Concept Numbers 

// Articles 

// 1 = a,an		2 = all		3 = any		4 = false
// 5 = no		6 = one		7 = the		8 = true

// Adverbs

// 9 = also		10 = else 	11 = how 	12 = not
// 13 = then	14 = when	15 = where 	16 = why

// Conjunctions

// 17 = and		18 = because	19 = either 	20 = if
// 21 = or		22 = that 		23 = when		24 = whether

// Interjections

// 25 = goodbye	26 = hello		27 = no			28 = no
// 29 = ouch	30 = please		31 = thanks		32 = yes

// Nouns

// 33 = Andru	34 = bugs		35 = cats		36 = fish
// 37 = people	38 = persons	39 = robots 	40 = things	

//  Prepositions

// 41 = at		42 = for		43 = from		44 = in
// 45 = of		46 = on			47 = to			48 = with

// Pronouns

// 49 = he,she	50 = nothing	51 = nothing	52 = they
// 53 = we		54 = what		55 = who		56 = you

// Verbs

// 57 = am,is,are	58 = be		59 = do			60 = hear
// 61 = know 	62 = see		63 = think		64 = understand

#include "AI.h"   
#include "EN.h"
#include "DB.h" 

#include <string.h>  
   
   EN::EN()
   {
   }
   
   EN::~EN()
   {
   }
                                                          
// Set data into Aud array (fiber).
    
void EN::SetAudData( int t, int pho, int act, int pov, 
                            int beg, int ctu, int psi)
   {
   AudStr AudVal;
   AudStr * AudValPtr = &AudVal;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩欧美制服另类| 中文字幕亚洲成人| 欧美日韩国产一级| 亚洲一区视频在线| 亚洲国产精品99久久久久久久久 | 色就色 综合激情| 国产高清久久久| 欧美一区二区三区在线观看视频| 日日摸夜夜添夜夜添国产精品 | 26uuu精品一区二区| 国产麻豆精品在线观看| 成人av电影免费观看| 欧美不卡一区二区| 亚洲素人一区二区| 中文字幕精品三区| av一区二区三区| 免费高清成人在线| 日韩精品免费专区| 亚洲资源中文字幕| 欧美日韩小视频| 成人一区二区在线观看| 久久免费的精品国产v∧| 99久久99久久精品国产片果冻 | 秋霞电影一区二区| 欧美一区二区三区视频免费播放| 2014亚洲片线观看视频免费| 日韩免费看的电影| 亚洲电影欧美电影有声小说| 欧美日韩国产一二三| 久久99热这里只有精品| 91精品国产综合久久香蕉的特点| 国产a级毛片一区| 99久久国产综合精品女不卡| www欧美成人18+| 香蕉加勒比综合久久| 欧美精品久久久久久久多人混战| 97精品电影院| 亚洲资源中文字幕| 欧美激情一区二区三区| 日韩福利视频导航| 精品久久人人做人人爽| 91国内精品野花午夜精品| 精品一区二区三区的国产在线播放| 成人app软件下载大全免费| 亚洲综合成人在线视频| 99久久精品国产导航| 欧美日韩大陆在线| 日本免费在线视频不卡一不卡二| 欧美视频精品在线观看| 欧美丝袜丝交足nylons图片| 中文字幕一区在线观看视频| 欧美一区二区三区爱爱| 日韩三级中文字幕| 一区二区三区在线观看网站| 欧美一区二区精美| 蜜臀av性久久久久av蜜臀妖精| 日韩影院精彩在线| 91亚洲男人天堂| 国产精品亚洲成人| 91蝌蚪porny| 91在线视频观看| 亚洲精品高清视频在线观看| 成人欧美一区二区三区白人| 一区二区视频在线| 国产成人精品免费一区二区| 91麻豆精品国产91久久久久久久久| 图片区小说区国产精品视频| 国产精品久久精品日日| 日韩高清一级片| 日韩一区中文字幕| 97久久精品人人做人人爽| 蜜桃免费网站一区二区三区| 一区二区激情视频| 中文字幕视频一区| 亚洲h在线观看| 亚洲少妇最新在线视频| 97se狠狠狠综合亚洲狠狠| 亚洲精选视频在线| 综合久久一区二区三区| 日韩免费在线观看| 欧美日本不卡视频| 欧美日韩综合在线| 最新不卡av在线| 成人网男人的天堂| 欧美videos大乳护士334| 日韩一二在线观看| 亚洲一区二区在线免费观看视频| 首页亚洲欧美制服丝腿| 国产麻豆午夜三级精品| 天堂资源在线中文精品| 亚洲电影一级黄| 一区二区高清视频在线观看| 亚洲午夜精品网| 亚洲午夜免费电影| 五月婷婷另类国产| 精品一区二区影视| 国产精品69久久久久水密桃| 成人av网站免费| 色天使色偷偷av一区二区| 欧美性大战久久久久久久| 欧美电影在哪看比较好| 精品国产免费视频| 国产精品久久久久久久久晋中| 综合网在线视频| 五月婷婷色综合| 狠狠v欧美v日韩v亚洲ⅴ| 北岛玲一区二区三区四区| 欧美性色欧美a在线播放| 日韩三级视频在线看| 国产精品美日韩| 天天色天天爱天天射综合| 精品午夜久久福利影院| 福利一区二区在线观看| 欧美日韩一区二区在线观看视频| 欧美一区二区三区免费视频| 国产精品久久久久影视| 午夜免费欧美电影| 国产suv精品一区二区三区| 一本色道a无线码一区v| 91精品国产综合久久精品图片 | 日韩欧美激情一区| 日本一区二区三区四区在线视频 | 日韩欧美高清dvd碟片| 国产精品久久久久一区| 日韩国产欧美三级| 91麻豆国产福利在线观看| 日韩欧美色综合网站| 亚洲欧美日韩成人高清在线一区| 麻豆专区一区二区三区四区五区| 99久久精品免费看国产| 日韩一级二级三级精品视频| 亚洲丝袜制服诱惑| 国产主播一区二区| 欧美怡红院视频| 亚洲一线二线三线久久久| 欧美aaa在线| 日韩码欧中文字| 天天色 色综合| 色综合久久久久久久久| 久久久综合九色合综国产精品| 亚洲男人的天堂一区二区| 久久99国内精品| 欧美亚洲图片小说| 中文字幕一区二区三区蜜月| 精品一区二区免费视频| 欧美日韩国产高清一区二区| 自拍偷拍欧美激情| 成人福利在线看| 久久精品亚洲精品国产欧美kt∨ | 久久精品视频免费| 免费亚洲电影在线| 欧美日本一区二区| 一区二区三区中文在线| 国产超碰在线一区| 26uuu久久综合| 国内精品伊人久久久久av一坑| 欧美日韩免费观看一区二区三区| 国产精品成人在线观看| 国产乱码精品一区二区三区五月婷| 日韩欧美一级二级三级| 日本午夜精品一区二区三区电影| 欧美中文字幕亚洲一区二区va在线 | 国产拍欧美日韩视频二区| 久久99日本精品| 日韩午夜精品电影| 免费av成人在线| 日韩免费成人网| 日韩精品视频网站| 91精品国产91综合久久蜜臀| 午夜电影网亚洲视频| 欧美精品日韩综合在线| 同产精品九九九| 欧美一区二区三区公司| 看片的网站亚洲| 精品国产乱码久久久久久浪潮| 久久精品国产77777蜜臀| 精品美女一区二区| 国产精品一区二区不卡| 中文字幕第一区| 色伊人久久综合中文字幕| 亚洲一区免费在线观看| 欧美美女黄视频| 日本aⅴ免费视频一区二区三区| 欧美一区二区三区四区视频| 日韩1区2区3区| 精品久久久三级丝袜| 丰满亚洲少妇av| 一区二区欧美精品| 欧美欧美欧美欧美| 久久99国产精品麻豆| 国产片一区二区三区| 色哟哟一区二区三区| 青青草国产成人av片免费| 精品日产卡一卡二卡麻豆| 国产98色在线|日韩| 欧美手机在线视频| 国产一区二区三区免费在线观看| 91精品久久久久久久91蜜桃| 精品伊人久久久久7777人| 精品国产sm最大网站免费看|