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

C / C++ / MFC

 
GeneralFunction PreSubclassWindow() Pin
ChuThaiDuong2-May-04 17:04
ChuThaiDuong2-May-04 17:04 
Questionhow to do write to a file with a std::string Pin
kfaday2-May-04 16:35
kfaday2-May-04 16:35 
AnswerRe: how to do write to a file with a std::string Pin
Maxwell Chen2-May-04 16:59
Maxwell Chen2-May-04 16:59 
AnswerRe: how to do write to a file with a std::string Pin
Henrik Stuart2-May-04 18:34
Henrik Stuart2-May-04 18:34 
AnswerRe: how to do write to a file with a std::string Pin
David Crow3-May-04 2:33
David Crow3-May-04 2:33 
Generalarrays that are pass Pin
bishead2-May-04 15:53
bishead2-May-04 15:53 
GeneralRe: arrays that are pass Pin
Christian Graus2-May-04 16:17
protectorChristian Graus2-May-04 16:17 
GeneralRe: I need a little more help Pin
bishead2-May-04 17:21
bishead2-May-04 17:21 
I am stuck. I can not get the average if the inputs and I am not sure if the value are add up. Here is what I have so far... If you need to see my whole program just let me know.


void MyForm:: Btn1_Clicked(Object* sender, EventArgs* e)
{

int i,sum;

int* average = new int[50];// Create an array dynamically pg.234
String* average1 = VoltsTextBox->Text;
int val = Int32::Parse(average1);

for(i=0; i<50; ++i)
{
average[i];
}
for(i=0; i<50; ++i)
{
sum = sum + average[i];
}
int ave = sum/i;
String* ave2= ave.ToString("F3");
CurrentTextBox->Text= ave2;
}
GeneralRe: I need a little more help Pin
Paul Ranson3-May-04 1:14
Paul Ranson3-May-04 1:14 
GeneralRe:Thanks Paul Pin
bishead3-May-04 7:28
bishead3-May-04 7:28 
GeneralTab order of controls in dialog Pin
Kuniva2-May-04 11:06
Kuniva2-May-04 11:06 
GeneralRe: Tab order of controls in dialog Pin
Ravi Bhavnani2-May-04 11:18
professionalRavi Bhavnani2-May-04 11:18 
GeneralConsole Window Pin
Daniel13242-May-04 9:39
Daniel13242-May-04 9:39 
GeneralRe: Console Window Pin
Dominik Reichl2-May-04 9:50
Dominik Reichl2-May-04 9:50 
GeneralRe: Console Window Pin
Daniel13242-May-04 10:49
Daniel13242-May-04 10:49 
GeneralRe: Console Window Pin
Dominik Reichl3-May-04 1:17
Dominik Reichl3-May-04 1:17 
GeneralRe: Console Window Pin
Daniel13243-May-04 5:48
Daniel13243-May-04 5:48 
GeneralTextBox Pin
bishead2-May-04 8:35
bishead2-May-04 8:35 
GeneralRe: TextBox Pin
valikac2-May-04 14:50
valikac2-May-04 14:50 
GeneralRe: Thanks Kuphryn Its works .... Pin
bishead2-May-04 15:36
bishead2-May-04 15:36 
GeneralGlobal variables with ATL COM objects Pin
2-May-04 8:00
suss2-May-04 8:00 
GeneralRe: Global variables with ATL COM objects Pin
Michael Dunn2-May-04 8:10
sitebuilderMichael Dunn2-May-04 8:10 
GeneralCopy Constructor Pin
Madmaximus2-May-04 7:45
Madmaximus2-May-04 7:45 
GeneralRe: Copy Constructor Pin
Michael Dunn2-May-04 8:17
sitebuilderMichael Dunn2-May-04 8:17 
GeneralRe: Copy Constructor Pin
Andrew Walker2-May-04 13:21
Andrew Walker2-May-04 13:21 

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.