Like Tree2Likes
  • 1 Post By Salem
  • 1 Post By rogster001

C/C++ Calender

This is a discussion on C/C++ Calender within the C++ Programming forums, part of the General Programming Boards category; I created a C C++ Calender Program It is currently hosted on sourceforge @ C C++ Calender The program has ...

  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    1

    Smile C/C++ Calender

    I created a C C++ Calender Program
    It is currently hosted on sourceforge
    @ C C++ Calender

    The program has a USERNAME :shivam
    and a PASSWORD:cool


    It is a simple c++ program to do almost all the functions that a calender is used for.The program has been coded by a object oriented way which can easily tweaked. The program is a win32 application without the use of any graphics or databases so that it can be cool and simple
    please have a look
    and drop comments if you liked it
    AND help me improve the code..
    -------------------------------screenshots----------------------
    Name:  CALENDER-SCREENSHOT1.jpg
Views: 213
Size:  97.3 KB
    Name:  CALENDER-SCREENSHOT2.jpg
Views: 183
Size:  83.4 KB
    Name:  day2date.jpg
Views: 186
Size:  64.8 KB
    Name:  month-calender.jpg
Views: 180
Size:  137.6 KB
    Name:  month-calender1.jpg
Views: 187
Size:  66.9 KB

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,437
    > The program has been coded by a object oriented way which can easily tweaked
    Neither of these things are true, in any shape or form.

    You might have named them ".cpp" files, but apart from using cout, there is precious little C++ code here. There certainly isn't any use of classes or data abstraction which would make the "oo way" feasible.

    First, you should learn the concept of passing parameters and returning results. Then you would be able to get rid of the stupid number of global variables you have.

    Second - remove all those label: .. goto loops you have, and replace them with proper while loops.

    3.
    Code:
    		gotoxy(27, 4);	cout<<"Wrong date entered--WAIT";
    		again=1 ;
    		for(w=0;w<500000000;w++){};
    Why? What point is there in frustrating the user even more by forcing pointless wait loops.

    4. #include "func.cpp" //Contains all the User-Defined functions accessed in the program
    What you should have is a func.h and func.cpp being compiled separately.
    You just about get away with it with only a couple of files, but when you get to writing programs with 10's (or 1000's) of source files, you need a different approach!


    5. > void main() //using void to cut the crap
    Yeah - riiiigggghhhhtttttt
    Elysia likes this.
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,409
    On the positive side you have done made a fair job of the display, its nice looking.

    Whats this about? :
    void main() //using void to cut the crap
    This shows a real lack of understanding, you cannot just discount the standard, what is it like: ' standard, smchmandard ' to you ??
    Elysia likes this.
    Thought for the day:
    "Are you sure your sanity chip is fully screwed in sir?" (Kryten)
    FLTK: "The most fun you can have with your clothes on."

    Stroustrup:
    "If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Calender in C?
    By follano in forum C Programming
    Replies: 3
    Last Post: 04-22-2011, 06:28 PM
  2. calender
    By bazzano in forum C Programming
    Replies: 5
    Last Post: 03-02-2006, 02:34 AM
  3. Calender..
    By dahenkiz in forum C Programming
    Replies: 2
    Last Post: 11-09-2005, 12:25 PM
  4. Calender
    By sameintheend01 in forum C++ Programming
    Replies: 1
    Last Post: 02-03-2003, 05:36 AM
  5. Calender
    By confused in forum C Programming
    Replies: 2
    Last Post: 11-28-2001, 04:44 AM

Tags for this Thread


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