We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,577 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Statistics Calculator (dynamic arrays)

I am currently working in a Statistics Calculator which should display mean, standard deviation, median and mode. I have the graphical interface
Sin_título
This one has a text box where you get to write the list and by clicking the button it stores the fist value and goes to the next and that goes on until you finish and click on an other button to operate the list of values. My question is the following,

How can I change the size of the arrrage according to the list they are inputting to the array?

Attachments Sin_título.png 193.48KB
2
Contributors
2
Replies
10 Hours
Discussion Span
5 Months Ago
Last Updated
3
Views
xikhari.some1behindu
Newbie Poster
7 posts since Nov 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

Use a List<T> rather than an array. It will dynamically change its size as needed, and you can treat it as (and convert it to) an array.

Momerath
Senior Poster
3,726 posts since Aug 2010
Reputation Points: 1,322
Solved Threads: 624
Skill Endorsements: 12

ohh thanks really :) i need to deliver this before date and i am in such a rush, thnaks

xikhari.some1behindu
Newbie Poster
7 posts since Nov 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.2992 seconds using 2.67MB