Help thanks
Type: Posts; User: Dom
#include<stdio.h>
int main(void)
{
int x = 0;
int z[] = {0,1,4,9,16,25,36,49,64,81};
int *p = z
x= *(p+9) /*this will be 81*/ + *(p+3) /*this will be 9*/ + (10**(z+1)); /* i have no clue...
contact me
isn't this simple for you guys...
just ran it just now and there is an error... and it's with line 6...it says invalid operands to binary
I do not know how to fix.
Here is the original followed by the one I changed so the program will sum the elements of an array of floats instead of an array of ints. It's with
help me with any mistakes if you...
I've got my code so that when I enter "1" it adds an entry, "2" to delete entry, and "3" to print the pb.... I want the commands to be in letters as seen in the printf. I'm not sure how to put into...
or start me off...it's getting near finals and I just do not have time anymore.
The table below is taken from real live hardware and a HUMIREL sensor, which has the ability to read the...
Thanks Agx. I don't think it is manging I'm having trouble with...I'm just running out of time...everyday I can get 4-5hours of sleep and every week I have at least 2 days I'm only getting 2. I don't...
I am not learning anything in this class.
First let me list the teacher's faults:
1. He teaches by powerpoint and never shows examples or works through anything with us. He shows what things do...
I'd like to get this running now but what do I need to fix. Just tell me what parts need to be fixed because the errors the program gives me doesn't explain very well.
#include <stdio.h>...
Just point out all the parts that are wrong so I may fix them. I do not like reading the errors on codeblocks since they don't explain why it is wrong.
help guys.
#include <stdio.h>
it outputs time so that it won't say 70 seconds...it will be 1 minutes and 10 seconds...thats what the increments are for.
#include <stdio.h>
//Time display structure
struct time
{
int hour;
int minutes;
Then they have the arrogance to reply with something like "oh you don't know how to program, you need to learn from a textbook young man".
Perhaps you should just answer the question so I won't...
I need to know what I am missing so far and what errors I've made.
First of all this is a program that computes the elapsed time between the two times you see within the code.
Help me out a...
so I'll have
int main()
{
elapsed_time(time1, time2) //to call function
printf("Time elapsed from %i and %i = %i", time1, time2, ?)
I'm not worrying about syntax right now or missing returns... I'm looking for other functions I would need to implement.
Obviously......
elapsed_time (time1, time 2) is the call so it probably is a function
I'm trying to get a program to display time elapsed...what else do I need here?
Also, I have times to be used as test vectors: time1 3:45:15 and time2 9:44:03....using military time
...
Ok thanks guys, I'll be back though because I'm a beginner.
Write a complete program with the elapsed_time function. Use the following data as test vectors:
Time1 = 3:45:15 and Time2 = 9:44:03
Time2 = 11:45:0 and Time2 = 0:0:1
I don't have to...
get it to display only if it actually is a draw
winner = checkWinner(cell);
if ( winner != ' ' ) {
printf( " you totally won!!!!\n", winner);
break;
BUT I want to stick with this one...
it will be too much work to even start a new way which I've no clue on executing yet......:\
actually can you explain everything about this piece?
const char baseDigits[10] =
{'0', '1', '2', '3', '4',
'A','B','C','D', 'E'} ;