@LukeZeller/

NBShell Beta

C++

Network Based Shell

fork
loading
Files
  • main.cpp
  • user
  • changelog.txt
  • cmmds.cpp
  • cmmds.h
  • edit.cpp
  • edit.h
  • interpereter.cpp
  • interpereter.h
  • logo.txt
  • main.fs
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include <iostream>
#include <string>
#include <fstream>


using namespace std;

#include <iomanip>
using std::setw;

#include "interpereter.h"

const string ver = "0.3";
const string year = "2019";

string logoLine;


int main() {
  
  
  fstream  logo;
  logo.open("logo.txt", ios::out | ios::in );
  if (logo.is_open()) {
    while ( getline (logo,logoLine) ) {
      
      cout << logoLine << endl;
    }
      
  }
    
  logo.close(); 

  cout << endl;

  cout << "NBShell v" << ver << endl << "Copyright Luke Zeller " << year << endl;

  while(true) {

    if (interperet() == 1) {
      cout << "Exiting..." << endl;
      return 0;
    }

  }
  return 0;
}