Click here to Skip to main content
15,914,289 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: api in vc Pin
David Crow5-May-05 1:56
David Crow5-May-05 1:56 
GeneralABOUT THE RTC Client API Pin
yeetins4-May-05 6:23
yeetins4-May-05 6:23 
QuestionThradIsSuspendd() ? Pin
peterchen4-May-05 6:00
peterchen4-May-05 6:00 
AnswerRe: ThradIsSuspendd() ? Pin
Graham Bradshaw4-May-05 12:50
Graham Bradshaw4-May-05 12:50 
QuestionHow to track urls Pin
kb-boxer4-May-05 5:47
kb-boxer4-May-05 5:47 
AnswerRe: How to track urls Pin
ThomasABBE4-May-05 11:34
ThomasABBE4-May-05 11:34 
AnswerRe: How to track urls Pin
ThatsAlok6-May-05 2:09
ThatsAlok6-May-05 2:09 
GeneralHELP with this program!!! Pin
Member 19336884-May-05 4:17
Member 19336884-May-05 4:17 
I just finished a simple program, but it keeps saying that I have a error. The error says that "end of program is found before left brace" line 37. What does that mean, here's my code:

#include <iostream>

using std::cout;
using std::cin;
using std::endl;

int main()
{
//declare variables
double sales = 0.0;
double totRegSales = 0.0;
int region;
int outlet;

while (region <= 5)
{
cout << "region" << region << endl;
outlet = 1;
totRegSales = 0.0;
do
{
cout << "Enter sales for outlet" << outlet << "enter 0 for next region):";
cin >> sales;
totRegSales += sales;
outlet++;
}
while (sales != 0.0);
cout << "region " << region << "sales total:" << totRegSales << endl << endl;
region++;
}
cout << "End of program" << endl;
GeneralRe: HELP with this program!!! Pin
Chris Losinger4-May-05 4:30
professionalChris Losinger4-May-05 4:30 
GeneralRe: HELP with this program!!! Pin
Member 19336884-May-05 4:37
Member 19336884-May-05 4:37 
GeneralRe: HELP with this program!!! Pin
Chris Losinger4-May-05 4:43
professionalChris Losinger4-May-05 4:43 
GeneralRe: HELP with this program!!! Pin
Member 19336884-May-05 5:54
Member 19336884-May-05 5:54 
GeneralRe: HELP with this program!!! Pin
Chris Losinger4-May-05 6:03
professionalChris Losinger4-May-05 6:03 
GeneralRe: HELP with this program!!! Pin
David Crow4-May-05 6:16
David Crow4-May-05 6:16 
GeneralWeird double/int truncation error Pin
AsGoodAsItGets4-May-05 4:07
AsGoodAsItGets4-May-05 4:07 
GeneralRe: Weird double/int truncation error Pin
Chris Losinger4-May-05 4:32
professionalChris Losinger4-May-05 4:32 
GeneralRe: Weird double/int truncation error Pin
ricecake4-May-05 8:45
ricecake4-May-05 8:45 
GeneralRe: Weird double/int truncation error Pin
Anonymous5-May-05 0:32
Anonymous5-May-05 0:32 
GeneralRe: Weird double/int truncation error Pin
ricecake5-May-05 3:38
ricecake5-May-05 3:38 
GeneralRUNTIME_CLASS Pin
muslcesonvacation4-May-05 4:03
muslcesonvacation4-May-05 4:03 
GeneralRe: RUNTIME_CLASS Pin
liquid_4-May-05 10:25
liquid_4-May-05 10:25 
GeneralTransparent Ellipse Pin
Anonymous4-May-05 3:32
Anonymous4-May-05 3:32 
GeneralRe: Transparent Ellipse Pin
Larry J. Siddens4-May-05 4:45
Larry J. Siddens4-May-05 4:45 
GeneralVisual C++ test Pin
act_x4-May-05 2:41
act_x4-May-05 2:41 
GeneralRe: Visual C++ test Pin
David Crow4-May-05 3:20
David Crow4-May-05 3:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.