oooooohhhh!!! got it thanks! how do i display the newly multiplied values using displayMatrix()?
Type: Posts; User: hiddenprophecy
oooooohhhh!!! got it thanks! how do i display the newly multiplied values using displayMatrix()?
Here's the program.
the goals are:
1. user inputs values
2. displayMatrix() displays array and its values
3. user inputs multiplier value
4. scalarMultiply() multiplies values by whatever user...
This is what i input...and it told me that the subscript is not of integral type
double theAverage(double M[]){
double sum,i,ave;
for( i = 0.0, sum = 0.0; i < SIZE; i++)
sum = sum +...
thanks adak! that's really clear for me now! though I am having trouble finding the average without having to add each element then / it by SIZE. any suggestions? here's what i got so far.
...
SCREW MY 2 POSTS AFTER THIS ONE!!! I TRIED IT AND IT WORKED!!! SWEEEEEETTT!!!! CAN YOU TELL ME HOW THAT WORKS??????? THANK YOU THANK YOU THANK YOU!!!!
(can you tell I'm kinda excited?)
the number of elements in the array are being displayed just fine, however the value that the user inputs in each element of the array is what i want to display but it won't...
for instance.
//I...
void displayArray(int /*what goes here*/[]){
int i;//what goes here
printf("\nHere is your array:\n\n");
printf("You have %i elements in this array.\n",SIZE);
for (i=0;i<SIZE;i++){...
am i doing that in main() or displayArray? When I do it in displayArray it tells me I have an unidentified variable. Then when i declare the variable it still doesn't show the values that the user...
Hi, i'm new to this forum and i have seen a lot of really useful information given here, so i thought i would give it a shot.
I'm doing a program that is VERY basic and the spec of the program...