The algorithm was done by a member of the class and the teacher approved of it so we just assumed it was correct but THANK YOU so much for all the help. It was very much appreciated. :D
Type: Posts; User: J-Camz
The algorithm was done by a member of the class and the teacher approved of it so we just assumed it was correct but THANK YOU so much for all the help. It was very much appreciated. :D
Each student is suppose to have 1 score but the algorithm we got to work with set the array to 50.
I changed it to a float and now I'm getting the following errors.
25 invalid operands to binary >
27 incompatible types in assignment
30 invalid operands to binary +
I'm sorry if I'm...
i get the same errors when i declare it as a float
I just learned about c structures the other day but I can't seem to get them to work. It give the wrong result at the end.
The warnings I'm getting are:
In function `main':
24 [Warning] comparison...
can I just declare the values that i need in main and them pass them to the module by reference?
As the title states I'm a little confused as to how I'd pass some of the values within a module back to main. Someone please help me ASAP!
Here is my main (it is incomplete) and a module within...
THANK YOU SO MUCH FOR BEING SO PATIENT AND HELPFUL ! I GOT IT TO WORK. :D
our teacher mentioned passing by reference so i did some research and attempted something but the program keeps asked for the slope instead of ending so i highly doubt i got it right.
#include...
well in class we were told that in order to return more than 1 value from a module they can be placed in an array and the entire array returned. so the first element of all [] would always stored the...
How would I return the values of the array in readVal and make them available in the main?
Also, I'm sorry if this is annoying but I started learning programming like last month so this is all new...
Thank you very much, it solved the problem but now that I got it to compile and run I have another problem.
The program is suppose to ask for the car information and calculate the speed as long as...
I keep getting the following errors and I can't figure out what is wrong.
22 [Warning] passing arg 1 of `readVal' from incompatible pointer type
100 syntax error at end of input
#include...
I just started programming a few months ago and we have a project for school with the following instructions.
Read values of carModel, skidlength and roadSlope for a sequence of cases until the...