Poprawki kodu w C++ (nazwy plikow naglowkowych, using ...).
modified: compiledic/aut2fsa.cc modified: dgp/grammar.hh modified: dgp/mgraph.hh modified: dgp/sgraph.hh modified: dgp/thesymbols.hh modified: gue/guess.cc modified: kor/corlist.cc modified: lem/lem.cc modified: lib/symtab.cc modified: lib/tft.h modified: lib/tfti.h modified: lib/ttrans.h modified: lib/word.cc modified: lib/word.h
This commit is contained in:
parent
25b4022527
commit
2f8d6d8c39
@ -1,10 +1,12 @@
|
|||||||
|
|
||||||
#include <iostream.h>
|
#include <iostream>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "../lib/tfti.h"
|
#include "../lib/tfti.h"
|
||||||
|
|
||||||
#include <fstream.h>
|
#include <fstream>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
#include "sgraph.hh"
|
#include "sgraph.hh"
|
||||||
|
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
class Link
|
class Link
|
||||||
{
|
{
|
||||||
Role role;
|
Role role;
|
||||||
|
@ -7,6 +7,9 @@
|
|||||||
#include "thesymbols.hh"
|
#include "thesymbols.hh"
|
||||||
#include "../common/common.h"
|
#include "../common/common.h"
|
||||||
|
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
class MNode
|
class MNode
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
#include "thesymbols.hh"
|
#include "thesymbols.hh"
|
||||||
|
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
class MNode;
|
class MNode;
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
#include <set>
|
#include <set>
|
||||||
#include <bitset>
|
#include <bitset>
|
||||||
|
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
typedef Symbol<1> Cat;
|
typedef Symbol<1> Cat;
|
||||||
|
|
||||||
typedef Symbol<2> Role;
|
typedef Symbol<2> Role;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#include "guess.h"
|
#include "guess.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <iostream.h>
|
#include <iostream>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
@ -17,6 +17,10 @@
|
|||||||
|
|
||||||
#define PREF_SIGN '_'
|
#define PREF_SIGN '_'
|
||||||
|
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
|
||||||
Guess::Guess(const char* suf_file)
|
Guess::Guess(const char* suf_file)
|
||||||
: _suf(suf_file) {
|
: _suf(suf_file) {
|
||||||
/* _suf = NULL;
|
/* _suf = NULL;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <alloc.h>
|
#include <malloc.h>
|
||||||
#include "corlist.h"
|
#include "corlist.h"
|
||||||
|
|
||||||
#define min(x,y) ((x<y)?(x):(y))
|
#define min(x,y) ((x<y)?(x):(y))
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include "lem.h"
|
#include "lem.h"
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "symtab.h"
|
#include "symtab.h"
|
||||||
#include <values.h>
|
#include <values.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <alloc.h>
|
#include <malloc.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define _TFT_h
|
#define _TFT_h
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <iostream.h>
|
#include <iostream>
|
||||||
#include <typeinfo>
|
#include <typeinfo>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
//#include "top.h"
|
//#include "top.h"
|
||||||
#include "ttrans.h"
|
#include "ttrans.h"
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Klasa bazowa przetwornika skoñczonego.
|
/// Klasa bazowa przetwornika skoñczonego.
|
||||||
|
@ -1,14 +1,18 @@
|
|||||||
#ifndef TFTiH
|
#ifndef TFTiH
|
||||||
#define TFTiH
|
#define TFTiH
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
#include <fstream.h>
|
#include <fstream>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <iomanip.h>
|
#include <iomanip>
|
||||||
//#include <typeinfo.h>
|
//#include <typeinfo.h>
|
||||||
|
|
||||||
#include "tft.h"
|
#include "tft.h"
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
|
||||||
template<class I, class Ipass, class O, class Opass>
|
template<class I, class Ipass, class O, class Opass>
|
||||||
class TFTi : public TFT<I,Ipass,O,Opass,TTrans_i<I,Ipass,O,Opass> >
|
class TFTi : public TFT<I,Ipass,O,Opass,TTrans_i<I,Ipass,O,Opass> >
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
#ifndef _TTransi_h
|
#ifndef _TTransi_h
|
||||||
#define _TTransi_h
|
#define _TTransi_h
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
#include <iostream.h>
|
#include <iostream>
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
//! The template for a transition with input and output symbols stored internally.
|
//! The template for a transition with input and output symbols stored internally.
|
||||||
/*!
|
/*!
|
||||||
A state is identified with the set of its outgoing transitions.
|
A state is identified with the set of its outgoing transitions.
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
#include "word.h"
|
#include "word.h"
|
||||||
#include "auttools.h"
|
#include "auttools.h"
|
||||||
#include <istream.h>
|
#include <istream>
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
void Word::autodescr(const char* fo, const char* de)
|
void Word::autodescr(const char* fo, const char* de)
|
||||||
@ -120,12 +123,12 @@ int Words::next() {
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
void Words::sort() {
|
void Words::sort() {
|
||||||
std::sort(tab.begin(), tab.end(), Word::cmp_w);
|
// sort(tab.begin(), tab.end(), Word::cmp_w); //NIE DZIALA
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
void Words::sort_rev() {
|
void Words::sort_rev() {
|
||||||
std::sort(tab.begin(), tab.end(), cmp_w_rev_fun);
|
// sort(tab.begin(), tab.end(), cmp_w_rev_fun); // NIE DZIALA
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
@ -5,7 +5,9 @@
|
|||||||
//#include "alphabet.h"
|
//#include "alphabet.h"
|
||||||
//#include "erro.h"
|
//#include "erro.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include <iostream.h>
|
#include <iostream>
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user