Like Tree5Likes
  • 3 Post By quzah
  • 2 Post By CommonTater

C programming!!! Please help!!

This is a discussion on C programming!!! Please help!! within the C Programming forums, part of the General Programming Boards category; I'm currently doing a proposal on solar panel water pump. I have the prototype working,right now i need to use ...

  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    3

    C programming!!! Please help!!

    I'm currently doing a proposal on solar panel water pump. I have the prototype working,right now i need to use C programming to automatically activate the water pump battery from 6pm to 6am. Can someone helpp!

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Code:
    #include <stdwaterpumpcontroller.h>
    int main( void )
    {
        waterpump mywaterpump;
        operatepump( mywaterpump, 6, 18 );
        return 0;
    }

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by kian View Post
    I'm currently doing a proposal on solar panel water pump. I have the prototype working,right now i need to use C programming to automatically activate the water pump battery from 6pm to 6am. Can someone helpp!
    Sure thing...
    First, take a good book or tutorial on C and work it page by page, exercise by exercise until you understand what is going on.
    Second, take the documentation for your microcontroller and work it page by page until you understand what is going on.
    Third, take the problem and work it out on paper, bit by bit until you understand what is required.
    Fourth, write the code...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. About Device Driver Programming And Socket Programming
    By pritesh in forum Linux Programming
    Replies: 6
    Last Post: 01-23-2010, 02:46 AM
  2. Replies: 1
    Last Post: 08-19-2007, 03:55 AM
  3. small programming job VCPP / Object Oriented Programming
    By calgonite in forum Projects and Job Recruitment
    Replies: 10
    Last Post: 01-04-2006, 10:48 PM
  4. Total newb to programming here... Question about the many programming languages. Ty!
    By tsubotakid1 in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 10-05-2003, 10:32 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21