/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <iostream>
#include <string>
#include <stdio.h>
#include <ctype.h>
using namespace std;
//This program plots a parabolic function for any choose of variables//
string printheader () //Print the header//
{
cout<<"Please Enter A,B and C for the parabolic function below"<<endl;
cout<<"y=Ax^2+Bx+C"<<endl;
}
int CheckInputValu(int y)
{
int *array=new int [y];
int a;
for (int y=0;y<=2;y++)
{
char NameOfVariable []= "ABC";
cout<<"Please Enter An Integer for Variable"<<endl;
cout<<NameOfVariable[y]<<":";
cin>>array[y];
while(!(array[y])){
cout<<" Error: Please Enter an Integer Number"<<endl;
cout<<NameOfVariable[y]<<":";
cin.clear();
cin.ignore();
cin>>array[y];
}
};
}
int main()
{
int a;
printheader();
CheckInputValu(a);
return 0;
}