Created
May 1, 2012 09:36
-
-
Save spellancer/2566811 to your computer and use it in GitHub Desktop.
main.cpp --homework2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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