Click here to Skip to main content
15,921,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: omanip... was this class superseded in vs2003? Pin
Christian Graus20-Aug-06 11:16
protectorChristian Graus20-Aug-06 11:16 
GeneralRe: omanip... was this class superseded in vs2003? Pin
jon-8021-Aug-06 5:05
professionaljon-8021-Aug-06 5:05 
Questionhow to control windows explorer ? Pin
Kriptoz20-Aug-06 6:42
Kriptoz20-Aug-06 6:42 
AnswerRe: how to control windows explorer ? Pin
Waldermort20-Aug-06 7:28
Waldermort20-Aug-06 7:28 
Questionhow to get the following info. from a thread Pin
zhijia.yuan20-Aug-06 6:38
zhijia.yuan20-Aug-06 6:38 
AnswerRe: how to get the following info. from a thread Pin
Michael Dunn20-Aug-06 6:51
sitebuilderMichael Dunn20-Aug-06 6:51 
AnswerRe: how to get the following info. from a thread Pin
Hamid_RT22-Aug-06 7:27
Hamid_RT22-Aug-06 7:27 
Questionstack around the variable 'values' was corrupted Pin
jon-8020-Aug-06 6:01
professionaljon-8020-Aug-06 6:01 
The following error is being displayed when running this simple program:

stack around the variable 'values' was corrupted (same as subject)

#include <iostream>
#include <conio.h>

using namespace std;

void main ()
{
int x;
const int fieldSize = 10;
const int arraySize = 5;
double values[arraySize];

values[0] = 23.4;
for (x= 0; x < arraySize; x++)
values [x+1] = values[x] * .10;

for (x= 0; x < arraySize; x++)
{
cout.width(fieldSize);
cout<< values[x]<<endl;
}

cout.precision(2);
cout<<"After precision (2) call"<< endl;

for (x=0; x < arraySize; x++)
{
cout.width(fieldSize);
cout<<values[x]<<endl;
//error is displayed when arraySize = 5. The program seems to perform an extra loop.
}

}

Jon
AnswerRe: stack around the variable 'values' was corrupted Pin
Michael Dunn20-Aug-06 6:06
sitebuilderMichael Dunn20-Aug-06 6:06 
GeneralRe: stack around the variable 'values' was corrupted Pin
jon-8020-Aug-06 10:22
professionaljon-8020-Aug-06 10:22 
GeneralRe: stack around the variable 'values' was corrupted Pin
Michael Dunn20-Aug-06 10:35
sitebuilderMichael Dunn20-Aug-06 10:35 
GeneralRe: stack around the variable 'values' was corrupted Pin
jon-8020-Aug-06 13:38
professionaljon-8020-Aug-06 13:38 
Questionhow to connect to a website using VC++ Pin
micku20-Aug-06 5:40
micku20-Aug-06 5:40 
AnswerRe: how to connect to a website using VC++ Pin
Ravi Bhavnani20-Aug-06 5:45
professionalRavi Bhavnani20-Aug-06 5:45 
Questionshowing and hiding controls Pin
Waldermort20-Aug-06 3:07
Waldermort20-Aug-06 3:07 
AnswerRe: showing and hiding controls [modified] Pin
Sarath C20-Aug-06 3:22
Sarath C20-Aug-06 3:22 
GeneralRe: showing and hiding controls Pin
Waldermort20-Aug-06 4:37
Waldermort20-Aug-06 4:37 
QuestionPossible to make structures with arrays dynamic? Pin
KanuAMBC20-Aug-06 0:12
KanuAMBC20-Aug-06 0:12 
AnswerRe: Possible to make structures with arrays dynamic? Pin
Cedric Moonen20-Aug-06 2:39
Cedric Moonen20-Aug-06 2:39 
AnswerRe: Possible to make structures with arrays dynamic? Pin
Waldermort20-Aug-06 3:10
Waldermort20-Aug-06 3:10 
AnswerRe: Possible to make structures with arrays dynamic? Pin
Hamid_RT22-Aug-06 7:25
Hamid_RT22-Aug-06 7:25 
Questionbuilt-in variables for VC? Pin
George_George19-Aug-06 23:35
George_George19-Aug-06 23:35 
AnswerRe: built-in variables for VC? Pin
Mike Dimmick20-Aug-06 5:53
Mike Dimmick20-Aug-06 5:53 
GeneralRe: built-in variables for VC? Pin
George_George20-Aug-06 17:37
George_George20-Aug-06 17:37 
QuestionComparing strings to a table of values Pin
Rigsby6619-Aug-06 23:07
Rigsby6619-Aug-06 23:07 

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.