Why does old code stay stuck in my console?
Thank you in advance for your responses!
I am using Dev compiler and compiled and ran my prog. I went back and changed some things, yet the changes don't show up, just the old code. What am I missing?
Code:
#include <stdio.h>
#include <iostream>
int addUP (int a, int b, int c)
{return (a + b +c);}
void main ()
{
//here is the first funciton call
cout << "the first function is addition " << addUP (3,4,12) << endl;
int x = 12;
int y = 25;
int z = 140;
//here is the 2nd call
float average = addUP (x, y, z-20)/3;
cout << " the average of " << x << " " << y << " and " << z << " is " << average;
cin.get();
return 0;
}