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

C / C++ / MFC

 
GeneralRe: How to check a directory is existed or not Pin
Karismatic17-Sep-07 22:47
Karismatic17-Sep-07 22:47 
GeneralRe: How to check a directory is existed or not Pin
David Crow18-Sep-07 4:09
David Crow18-Sep-07 4:09 
GeneralRe: How to check a directory is existed or not Pin
kcynic18-Sep-07 15:25
kcynic18-Sep-07 15:25 
QuestionRe: How to check a directory is existed or not Pin
David Crow18-Sep-07 16:56
David Crow18-Sep-07 16:56 
GeneralRe: How to check a directory is existed or not Pin
Karismatic19-Sep-07 2:15
Karismatic19-Sep-07 2:15 
AnswerRe: How to check a directory is existed or not Pin
Hamid_RT18-Sep-07 3:12
Hamid_RT18-Sep-07 3:12 
AnswerRe: How to check a directory is existed or not Pin
David Crow18-Sep-07 4:11
David Crow18-Sep-07 4:11 
QuestionString of integers Pin
Herboren17-Sep-07 16:24
Herboren17-Sep-07 16:24 
Im trying to create a simple program the reads a string of integers from the board and store them in an array, then out put to the screen each integer from that string. It compiles fine but then crashes with an error. This is my code:
<br />
// PassArray.cpp : Defines the entry point for the console application.<br />
//<br />
<br />
#include "stdafx.h"<br />
#include conio.h<br />
#include iostream<br />
using namespace std;<br />
<br />
<br />
int _tmain(int argc, _TCHAR* argv[])<br />
{<br />
	int aArray[4];<br />
	int n;<br />
	cout << "Input 5 digits: "; cin >> aArray[4];<br />
	for ( n=0; n<0; n++ )<br />
	{<br />
		cout << "Integer: " << aArray[n] << endl;<br />
	}<br />
	<br />
	_getch();<br />
	return 0;<br />
}<br />

this is the error

Run-Time Check Failure #2 - Stack around the variable 'aArray' was corrupted.

AnswerRe: String of integers Pin
fefe.wyx17-Sep-07 16:45
fefe.wyx17-Sep-07 16:45 
GeneralRe: String of integers Pin
Herboren17-Sep-07 18:47
Herboren17-Sep-07 18:47 
GeneralRe: String of integers Pin
nbugalia17-Sep-07 19:15
nbugalia17-Sep-07 19:15 
AnswerRe: String of integers Pin
Russell'17-Sep-07 23:24
Russell'17-Sep-07 23:24 
AnswerRe: String of integers Pin
David Crow18-Sep-07 4:17
David Crow18-Sep-07 4:17 
GeneralRe: String of integers [modified] Pin
Herboren18-Sep-07 4:43
Herboren18-Sep-07 4:43 
GeneralRe: String of integers Pin
David Crow18-Sep-07 5:32
David Crow18-Sep-07 5:32 
GeneralRe: String of integers Pin
Herboren18-Sep-07 6:13
Herboren18-Sep-07 6:13 
QuestionRe: String of integers Pin
David Crow18-Sep-07 6:51
David Crow18-Sep-07 6:51 
AnswerRe: String of integers [modified] Pin
Herboren18-Sep-07 9:04
Herboren18-Sep-07 9:04 
GeneralRe: String of integers Pin
David Crow18-Sep-07 10:36
David Crow18-Sep-07 10:36 
GeneralRe: String of integers Pin
Herboren18-Sep-07 10:58
Herboren18-Sep-07 10:58 
QuestionRe: String of integers Pin
David Crow18-Sep-07 11:06
David Crow18-Sep-07 11:06 
AnswerRe: String of integers [modified] Pin
Herboren18-Sep-07 11:17
Herboren18-Sep-07 11:17 
GeneralRe: String of integers Pin
David Crow19-Sep-07 7:58
David Crow19-Sep-07 7:58 
Questioncode for opening,closing and saving an image file Pin
itsgood12317-Sep-07 14:23
itsgood12317-Sep-07 14:23 
AnswerRe: code for opening,closing and saving an image file Pin
Sarath C17-Sep-07 15:49
Sarath C17-Sep-07 15:49 

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.