Skip to content

Instantly share code, notes, and snippets.

@spellancer
Created May 1, 2012 09:36
Show Gist options
  • Save spellancer/2566811 to your computer and use it in GitHub Desktop.
Save spellancer/2566811 to your computer and use it in GitHub Desktop.
main.cpp --homework2
#include "stdafx.h"
#include "lexem.h"
#include <iostream>
#include <locale.h>
#include <string.h>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
setlocale (0, "russian");
int i,j,n;
char str[255], *res ;
cout << "Введите конструкцию для проверки: "<<endl;
gets (str);
res = del (str);
n = number (str);
if (n!=-1)
cout << "Количество переменных:" << n << endl;
res = lex (res);
cout << "Результат:" << endl << res <<endl;
system ("pause");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment