Добавил:
korayakov
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Лабы / Калькулятор / Calc / main
.cpp#include "stdafx.h"
#include <string>
#include <iostream>
#include <conio.h>
#include "func0.h"
#include "func1.h"
#include "func2.h"
#include "func3.h"
#include "func4.h"
using namespace std ;
int main()
{
int f0;
string str,ptr;
while(1)
{
cout<<"enter expression: ";
cin>>str;
f0=func0(str);
if(f0!=-1)
str=func4(func3(str));
cout<<str<<endl;
}
getch();
return 0;
}