Thread: need help Guys!

  1. #1
    Registered User
    Join Date
    Jun 2011
    Location
    Bolpur, India
    Posts
    42

    need help Guys!

    I have taken a small project of a banking system where people can create his/her own profile by signing up there and can log in anytime.I just want to add two small features:
    1)I want a feature where if the user changes any settings in his/her profile a message will be shown to him/her "Do you want to keep these settings?(Reverting back to previous settings in "COUNTDOWN STARTS")".We have seen such things while we change the settings in computer games.In this case I want to let the timer starts from 10 seconds.I have no idea to do this....So anyone please help me to get this job done if there is any way doing this in C language
    2)I want to show a message containing the time and date when the user last logged in to the profile.How can I achieve this?
    It will be very helpful to me if you introduce me to these topics.
    Thank you.
    Last edited by mistu4u; 06-21-2011 at 12:31 AM.

  2. #2
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    I think you have been told before that in order to receive help two things are required:

    1) Showing effort in solving the problem yourself, typically by providing code, or where appropriate explaining what you are trying to accomplish in great detail.
    2) Describing the steps you took to identify what the problem is (i.e. debug the code, explaining your rationale about an algorithm, etc)

    As far as your system goes, the specification you posted is extremely vague. In terms of actually using time in C I recommend you take a look at the time.h header.
    1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
    2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
    3. Get rid of conio.h and other antiquated DOS crap headers.
    4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.

  3. #3
    Registered User
    Join Date
    Jun 2011
    Location
    Bolpur, India
    Posts
    42
    Actually I donot know how to add these features.....I tried to explain things clear as far as i can.So I posted here so that anyone can help me showing me how can i add these features.
    "1st allow yourself to make the basics clear and then step ahead to make a glorious victory over the subject and unleash your power to manipulate it !"
    Regards MISTU4U

  4. #4
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    In order to add features to an existing program you need to understand how it works enough to know where you can add things.

    If the program already uses user profiles, you can just edit those to add a Last Modified field which you can display. If it doesn't you get to implement profiles.

    Implementing a countdown means that you have to know how to do a countdown in the first place. Then you worry about the program's output, figuring out where you can insert your countdown-to-reversion code.

  5. #5
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    In that case, we have a different interpretation of help. The forum's interpretation of help is that you do a substantial amount of the work or the thinking, and we help by guiding that process. Even if you don't know how to do something there is no excuse for not providing any kind of plan or approach, even if it is incorrect. Right now, this post is just another: "do this for me". I already got you started by telling you to look at time.h . If you are unwilling to do work, we (or at least myself) are unwilling to help.
    1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
    2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
    3. Get rid of conio.h and other antiquated DOS crap headers.
    4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.

  6. #6
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by mistu4u View Post
    Actually I donot know how to add these features.....I tried to explain things clear as far as i can.So I posted here so that anyone can help me showing me how can i add these features.
    Ummm, please forgive my bluntness... but if you don't know how to do this why did you take on the task?

  7. #7
    Registered User
    Join Date
    Jun 2011
    Location
    Bolpur, India
    Posts
    42
    Quote Originally Posted by CommonTater View Post
    Ummm, please forgive my bluntness... but if you don't know how to do this why did you take on the task?
    Because I think this is how some new ideas enter one's mind and creativity increases and if this question was properly answered I got to know facts concerning using time as an added servixe to my project.
    "1st allow yourself to make the basics clear and then step ahead to make a glorious victory over the subject and unleash your power to manipulate it !"
    Regards MISTU4U

  8. #8
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    It looks like you've got at least one clue somewhere in this post that would lead you to more information (hint: #2). If you look into this, and are uncertain about what you're reading, but show an attempt at trying to understand, then you might receive more help.

    Also, if I were you, I'd listen to your signature.

    "1st allow yourself to make the basics clear and then step ahead to make a glorious victory over the subject and unleash your power to manipulate it !"

  9. #9
    Registered User
    Join Date
    Jun 2011
    Location
    Bolpur, India
    Posts
    42
    Quote Originally Posted by Matticus View Post
    It looks like you've got at least one clue somewhere in this post that would lead you to more information (hint: #2). If you look into this, and are uncertain about what you're reading, but show an attempt at trying to understand, then you might receive more help.

    Also, if I were you, I'd listen to your signature.
    Thanx matt,You have made some handy comments.Surely will try to get it done MYSELF!!
    "1st allow yourself to make the basics clear and then step ahead to make a glorious victory over the subject and unleash your power to manipulate it !"
    Regards MISTU4U

  10. #10
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by mistu4u View Post
    Because I think this is how some new ideas enter one's mind and creativity increases and if this question was properly answered I got to know facts concerning using time as an added servixe to my project.
    I agree... but it's also how bugs get introduced into stable code...

    Keep in mind that what you do as a programmer has direct impacts on others, it's not just about you... *ESPECIALLY* when it involves other people's money or healthcare.

  11. #11
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > I agree... but it's also how bugs get introduced into stable code...
    Also known to be written as "If it isn't broken, it doesn't have enough features yet".
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Hey guys can i get some help please?
    By Damienmc++keown in forum C++ Programming
    Replies: 3
    Last Post: 04-20-2011, 06:53 PM
  2. ASP.NET, what do you guys think?
    By Kleid-0 in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 01-30-2005, 02:30 PM
  3. Hi guys
    By face_master in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 10-23-2004, 03:03 AM
  4. Hey Guys
    By valar_king in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-13-2004, 06:54 PM