Question about Computers & Internet

2 Answers

Arrays i am currently a student in programming,at the moment i am dealing with arrays,i would like to know how to declare,initialize,store,retrieve and display elements from an array

Posted by on

  • JazzyE Jul 04, 2008

    Arrays in java

  • ABRsvcs May 11, 2010

    What language?



    Dan

×

2 Answers

You can

Posted on Jul 04, 2008


You

Posted on Jul 04, 2008


1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Write a pseudocode declaration for a string array initialized with the following strings einstein newton


the nice thing about pseudocode is that there's many ways to do it
E.g 1;
String str = new Array["einstein',"newton"];
E.g 2;
myStringArray = new Array{'einstein','newton'}

BOTH of the above are correct, because they are pseudocode

Oct 19, 2014 | Computers & Internet

1 Answer

Declare 2 arrays with 5 as index value of each. the user will input values to the first array(user-defined). Transfer value of the first array to the second array.Get the sum of the second...


You could do this by creating two arrays as such:
int firstArray[5]; int secondArray[5]
and then the sum variable:
int sum = 0;
then you could do a for loop to find the sum of the second array:

Feb 22, 2011 | Microsoft Visual C++ Professional Edition...

1 Answer

How to form an array in visual basics(Express)


samples of arrays in vb.net
1)
dim array(3) as integer

array(0)=1
array(1)=2
array(2)=3
array(3)=4

2) dim array() as integer

array=new integer(){1,2,3,4}

3) for two dimensional arrays add comma separation to the size

May 28, 2010 | Microsoft Visual Basic Enterprise Edition...

1 Answer

I don?t understand the use of pointers in C++


Pointers are variables which store memory address of other variables.
It is denoted by an astrix *
Pointers and normal variables must have same data types.
Need of Pointers:
As said pointers variables store memory addresses of other variables, this can be used when we want to perform some calculations on a variable, we pass the address of this variable to the function from using pointers, thus any changes made to the variable will directly affect the variable as it is pointed to the same memory location.
It can also be for pointing various memory locations e.g. video memory. In the days of Dos we could actually read and write directly on to the video memory using address 0xB8000000 hexa decimal address.
Declaring a pointer:
int a = 10;
int *p = &a;
Here are passing address of a to p. Make sure that the data types should be same.
When we use pointers as arrays, it is much faster then the usual array iterators.
int num[] = {43,52,54,53};
int i=0, *j;
j=&num[0];
while(i<=3) { cout<<"num ["<<i<<"] = "<<*j<<endl; j++; } // This peice of code is faster than following method
for (int i=0;i<=3;++) { cout<<"num ["<<i<<"] = "<<num[i]<<endl; }
As we are directly working on memory.
Pointers are most commonly used to allocate memory dynamically, using new operator.
int *p = new [10];
This code allocates for 10 integer type array dynamically.
Dont forget to release the reserved memory using new operator by delete operator.
delete []p; // Frees the reserved memory.
This is an overview of pointers, as it requires study and practice.
Please rate. Thanks :)

May 09, 2010 | Computers & Internet

2 Answers

What is intel(R) matrix storage manager


Yes you need it. document.write("The files below contain the Intel® Matrix Storage Manager.

This driver provides support for high-capacity & fault-tolerant Serial ATA (SATA) RAID 5 arrays and high-performance & fault-tolerant SATA RAID 10 arrays on select Intel® 5 Series, 4 Series, 3 Series, 965, 975X, 955X and 945 chipset-based platforms. It provides support for high-performance SATA RAID 0 arrays & redundant SATA RAID 1 arrays on select Intel® 5 Series, 4 Series, 3 Series, 965, 975X, 955X, 945, 925, 915 chipset-based platforms. It also provides AHCI support on select Intel® 5 Series, 4 Series, 3 Series, 965, 975X, 955X, 945, 925 and 915 chipset-based platforms, as well as on Mobile Intel® 915/910 chipset-based platforms.

Note: Intel® RAID Technology requires the Intel® ICH9R/ICH9M-E/ICH10R/PCH/PCHM SATA RAID controller hub, Intel® 82801HR I/O controller hub (ICH8R), Intel® 631xESB/632xESB I/O controller hub, Intel® 82801GR/GH I/O controller hub (ICH7R/DH), Intel® 82801FR I/O controller hub (ICH6R).

DISCLAIMER: This software is provided by Intel only for the convenience of its customers. THIS SOFTWARE IS PROVIDED \"AS IS\" WITH NO WARRANTIES WHATSOEVER, INCLUDING ANY WARRANTY OF MERCHANTABILITY, NON-INFRINGEMENT, FITNESS FOR ANY PARTICULAR PURPOSE, OR ANY WARRANTY OTHERWISE ARISING OUT OF ANY PROPOSAL, SPECIFICATION OR SAMPLE. This software is furnished under license and may only be used or copied in accordance with the terms of the license. The software is subject to change without notice. Intel assumes no responsibility or liability for any errors, incompatibility issues, inoperability or inaccuracies that may appear in this software.

See the Installation Instructions page for a list of system requirements and considerations.

Note: Before installing this application or requesting technical support from Intel, it is suggested that you first contact your system manufacturer. They may provide software which is specifically configured for your system.")The Intel® Matrix Storage Manager.

This driver provides support for high-capacity & fault-tolerant Serial ATA (SATA) RAID 5 arrays and high-performance & fault-tolerant SATA RAID 10 arrays on select Intel® 5 Series, 4 Series, 3 Series, 965, 975X, 955X and 945 chipset-based platforms. It provides support for high-performance SATA RAID 0 arrays & redundant SATA RAID 1 arrays on select Intel® 5 Series, 4 Series, 3 Series, 965, 975X, 955X, 945, 925, 915 chipset-based platforms. It also provides AHCI support on select Intel® 5 Series, 4 Series, 3 Series, 965, 975X, 955X, 945, 925 and 915 chipset-based platforms, as well as on Mobile Intel® 915/910 chipset-based platforms.

So don't delete it.

Mar 10, 2010 | Computers & Internet

2 Answers

Merging two arrays and sort them


NEED A NEW KEY THE ONE ON THE BOX WONT WORK

Jul 29, 2009 | Microsoft Windows XP Professional With...

1 Answer

Array


I'm going to guess that your question is about hard disk arrays

There are several uses for arrays and there are different level of arrays

Here is a link detailing the levels and uses for hard disk arrays:

http://en.wikipedia.org/wiki/RAID_1#RAID_1

Jan 31, 2009 | Computers & Internet

2 Answers

C++ programs


An array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier
Initializing arrays. When declaring a regular array of local scope (within a function, for example), if we do not specify otherwise, its elements will not be initialized to any value by default, so their content will be undetermined until we store some value in them. The elements of global and static arrays, on the other hand, are automatically initialized with their default values, which for all fundamental types this means they are filled with zeros
include <iostream>
using namespace std;

int billy [] = {16, 2, 77, 40, 12071};
int n, result=0;

int main ()
{
for ( n=0 ; n<5 ; n++ )
{
result += billy[n];
}
cout << result;
return 0;
}
multidimensional array pseudo-multidimensional array #define WIDTH 5 #define HEIGHT 3 int jimmy [HEIGHT][WIDTH]; int n,m; int main () { for (n=0;n<HEIGHT;n++) for (m=0;m<WIDTH;m++) { jimmy[n][m]=(n+1)*(m+1); } return 0; } #define WIDTH 5 #define HEIGHT 3 int jimmy [HEIGHT * WIDTH]; int n,m; int main () { for (n=0;n<HEIGHT;n++) for (m=0;m<WIDTH;m++) { jimmy[n*WIDTH+m]=(n+1)*(m+1); } return 0; }
and now for trignometry
#include<iostream>
#include<cmath>
using namespace std;

int main()
{
int factorial(int);
int n = 3, i = 1;
double x, x2, b, PI, r;
char choice;
//r = x * (PI / 180)

cout<<"Please enter an angle value => ";
cin>>x;
cout<<"Is the angle value in Degree or Radian?"<<endl;
cout<<"Type D if its in degree "<<endl;
cout<<"Type R if its in radian "<<endl;
cin>>choice;


if((choice = 'R')||(choice = 'r'))
do{
i++; n = 3; x2 = 0; b = x2;
{
if(i == 1)
x2 = x - (pow(x,n) /factorial(n));
n = n + 2;
};
else
{
x2 = (x2 + ((pow(x,n)) /(factorial(n))) - (pow(x,n+2)) / (factorial(n+2)));
n = n + 4;
}


}while(abs(b - x2) > 0.000001);
else
//convert it to r

r = x * PI /180;

//cout<<"error occured/n";
cout<<"sin(x) = "<<x2<<endl;

return 0;
}

Mar 24, 2008 | ArcMedia JavaScript Source Code 3000 Pro...

1 Answer

Problem with new array.


Do you see your new disk in the "Disk Management" window? To get there go to "run", type "compmgmt.msc", then click disk management. If you do see the disks there, then you need to format the disk to a "basic" configuration. If your new disk/volume does not show up there, I would suggest a hard reset on your server whenever possible. I see this issue at times with Windows and newly added storage array logical drives.

Aug 31, 2007 | IBM Total Storage DS400 (13n1777) Fibre...

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

51 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...