Click here to Skip to main content
15,911,715 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: antialiasing with MFC Pin
T1TAN6-Sep-05 3:08
T1TAN6-Sep-05 3:08 
GeneralRe: antialiasing with MFC Pin
Neagoe Gabriel6-Sep-05 3:54
Neagoe Gabriel6-Sep-05 3:54 
GeneralRe: antialiasing with MFC Pin
T1TAN6-Sep-05 4:26
T1TAN6-Sep-05 4:26 
GeneralRe: antialiasing with MFC Pin
Anonymous6-Sep-05 5:49
Anonymous6-Sep-05 5:49 
Question_CrtIsValidHeapPointer(pUserData) ASSERTION Pin
dharani6-Sep-05 2:51
dharani6-Sep-05 2:51 
AnswerRe: _CrtIsValidHeapPointer(pUserData) ASSERTION Pin
Tim Smith6-Sep-05 3:45
Tim Smith6-Sep-05 3:45 
GeneralRe: _CrtIsValidHeapPointer(pUserData) ASSERTION Pin
dharani8-Sep-05 23:06
dharani8-Sep-05 23:06 
QuestionC++ in Visual Studio.NET Pin
J Liang6-Sep-05 2:43
J Liang6-Sep-05 2:43 
I recently installed VS.NET and wanted to create a C++ program, I selected Win32 Console Project to start with. I have one while loop and one for loop. The while loop execute first then follow by the for loop. The problem is after executing the while loop, it closes the window with the black background and will not show me the result. I'd checked my program, it actually run the for loop but the window just close before it can show me anything. This is my test code:

#include "stdafx.h"
#include <iostream>
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
int myArray[100];
int count = 0;
int number = 0;

cout << "Please enter some number (-1 to terminate): " << endl;
while (number != -1) {
cin >> number;
myArray[count] = number;
count++;
}

cout << "The numbers you just typed are: ";
for (int counter = 0; counter < count; counter++)
{
cout << myArray[counter] << " ";
}
cout << endl;
return 0;
}
Thanks to anyone that can help me with this so I can start practising my programming skill =)

Jay
AnswerRe: C++ in Visual Studio.NET Pin
T1TAN6-Sep-05 3:01
T1TAN6-Sep-05 3:01 
GeneralRe: C++ in Visual Studio.NET Pin
J Liang6-Sep-05 3:21
J Liang6-Sep-05 3:21 
GeneralRe: C++ in Visual Studio.NET Pin
T1TAN6-Sep-05 3:28
T1TAN6-Sep-05 3:28 
AnswerRe: C++ in Visual Studio.NET Pin
Cedric Moonen6-Sep-05 3:02
Cedric Moonen6-Sep-05 3:02 
GeneralRe: C++ in Visual Studio.NET Pin
J Liang6-Sep-05 3:24
J Liang6-Sep-05 3:24 
GeneralRe: C++ in Visual Studio.NET Pin
_rubinho_6-Sep-05 4:18
_rubinho_6-Sep-05 4:18 
AnswerRe: C++ in Visual Studio.NET Pin
Neagoe Gabriel6-Sep-05 3:03
Neagoe Gabriel6-Sep-05 3:03 
GeneralRe: C++ in Visual Studio.NET Pin
J Liang6-Sep-05 3:31
J Liang6-Sep-05 3:31 
Questioncl.exe using hyperthreading? Pin
Maarten Kools6-Sep-05 2:38
professionalMaarten Kools6-Sep-05 2:38 
AnswerRe: cl.exe using hyperthreading? Pin
Saurabh.Garg6-Sep-05 3:18
Saurabh.Garg6-Sep-05 3:18 
QuestionInserting string in an html file using vc++/mfc... help. Pin
babyspidy6-Sep-05 2:22
babyspidy6-Sep-05 2:22 
GeneralRe: Inserting string in an html file using vc++/mfc... help. Pin
Jörgen Sigvardsson6-Sep-05 11:54
Jörgen Sigvardsson6-Sep-05 11:54 
GeneralRe: Inserting string in an html file using vc++/mfc... help. Pin
babyspidy6-Sep-05 14:40
babyspidy6-Sep-05 14:40 
GeneralRe: Inserting string in an html file using vc++/mfc... help. Pin
Jörgen Sigvardsson7-Sep-05 9:57
Jörgen Sigvardsson7-Sep-05 9:57 
GeneralRe: Inserting string in an html file using vc++/mfc... help. Pin
babyspidy7-Sep-05 20:53
babyspidy7-Sep-05 20:53 
QuestionVectors :( Pin
Eytukan6-Sep-05 2:05
Eytukan6-Sep-05 2:05 
AnswerRe: Vectors Pin
toxcct6-Sep-05 2:22
toxcct6-Sep-05 2:22 

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.