For some reason, my numbers aren't adding in correctly and it's taking the -1 sentinel value and adding it into the total.
// worthless testing.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main()
{
int number = 0;
int total = 0;
do
{
cout<<"Enter a number: ";
cin>>number;
total = total + number;
} while (number != -1);
cout<<"Total is:"<<total<<endl;
return 0;
}