Search:

Type: Posts; User: Dom

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. char *cptr = 0......is cptr the name of variable with pointer to char? or is it cptr?

    Help thanks
  2. help me figure out a part of this short code...about pointers

    #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...
  3. Thread: Tic Tac Toe!

    by Dom
    Replies
    26
    Views
    16,576

    if you want the code

    contact me
  4. will anyone help?

    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.
  5. help on array of floats...just some simple adjustments

    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...
  6. help with phonebook: commands and assigning numbers/letters

    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...
  7. is this program simpler than it looks/sounds? Can someone give me pseudo-code?

    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...
  8. Replies
    5
    Views
    1,622

    Thanks Agx. I don't think it is manging I'm...

    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...
  9. Replies
    5
    Views
    1,622

    Should I drop out of programming?

    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...
  10. help

    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>...
  11. New code

    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>
  12. it outputs time so that it won't say 70...

    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.
  13. New code, help me define time within the elapsed_time function

    #include <stdio.h>




    //Time display structure
    struct time
    {
    int hour;
    int minutes;
  14. Obviously because people here never answer my question.

    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...
  15. Hi, check out my elapsed_time prog. Help with implementation!

    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...
  16. Alrighty...can you help me with my pseudo code?

    so I'll have




    int main()
    {
    elapsed_time(time1, time2) //to call function

    printf("Time elapsed from %i and %i = %i", time1, time2, ?)
  17. I'm not worrying about syntax right now or...

    I'm not worrying about syntax right now or missing returns... I'm looking for other functions I would need to implement.
  18. Obviously......

    Obviously......
  19. elapsed_time (time1, time 2) is the call so it...

    elapsed_time (time1, time 2) is the call so it probably is a function
  20. What else do I need in this simple time program...

    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



    ...
  21. Haha

    Ok thanks guys, I'll be back though because I'm a beginner.
  22. Where do I begin with this program...elapsed time function?

    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...
  23. TTT: declares draw after computer move, annoying...how to get it only if there is a..

    get it to display only if it actually is a draw



    winner = checkWinner(cell);
    if ( winner != ' ' ) {
    printf( " you totally won!!!!\n", winner);
    break;
  24. Thanks

    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......:\
  25. What exactly is the purpose of single quotes? For example, the following array here:

    actually can you explain everything about this piece?




    const char baseDigits[10] =
    {'0', '1', '2', '3', '4',
    'A','B','C','D', 'E'} ;
Results 1 to 25 of 42
Page 1 of 2 1 2