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:
to 2009-10-14 21:27:05 +02:00
parent 25b4022527
commit 2f8d6d8c39
14 changed files with 44 additions and 13 deletions

View File

@ -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()
{ {

View File

@ -11,6 +11,8 @@
#include "sgraph.hh" #include "sgraph.hh"
using namespace std;
class Link class Link
{ {
Role role; Role role;

View File

@ -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:

View File

@ -11,6 +11,8 @@
#include "thesymbols.hh" #include "thesymbols.hh"
using namespace std;
class MNode; class MNode;

View File

@ -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;

View File

@ -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;

View File

@ -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))

View File

@ -1,5 +1,6 @@
#include "lem.h" #include "lem.h"
#include <stdlib.h>
#include <assert.h> #include <assert.h>

View File

@ -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>
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------

View File

@ -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.

View File

@ -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> >
{ {

View File

@ -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.

View File

@ -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
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------

View File

@ -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>
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------