Hello! I am a newbie to C++ I hope you can help me in creating a program. I have a code but it doesn't seem to work... Please help me. I am trying to create a program that accepts any number of integers (positive and negative) as input and
saves it as an array of integers. The string “---eee13---”, which will be typed by the user will be the signal of the program to stop accepting inputs. Then, it will print all the integer inputs. The program
should have the capability to disregard inputs that are not integers.
This is my code:
int main (void)
{
int count = 0;
char input[256];
int finalinput[1024];
int inputcount = 0;
int a = 0, b = 0, c = 0;
you go in to the
if (('input[count]' >= 48 && 'input[count]' <= 57) || input[count] == '-')
{
while (count < a && ('input[count]' >= 48 && 'input[count]' <= 57)) {
Need help pls... I have a code but it doesn't seem to work... Please help me. I am trying to create a program that accepts any number of integers (positive and negative) as input and saves it as an array of integers.
The string “---eee13---”, which will be typed by the user will be the signal of the program to stop accepting inputs. Then, it will print all the integer inputs.
The program should have the capability to disregard inputs that are not integers.
I have posted my code above... Any help is very much appreciated..Thanks