Click here to Skip to main content
15,910,980 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: API's for retreiving url's Pin
Bartosz Bien4-Oct-05 10:18
Bartosz Bien4-Oct-05 10:18 
GeneralRe: API's for retreiving url's Pin
Jim Crafton4-Oct-05 10:30
Jim Crafton4-Oct-05 10:30 
QuestionRegistry case sensitivity - useless to check? Pin
dandy724-Oct-05 9:31
dandy724-Oct-05 9:31 
AnswerRe: Registry case sensitivity - useless to check? Pin
Bartosz Bien4-Oct-05 10:09
Bartosz Bien4-Oct-05 10:09 
QuestionTaskbar broadcast messages? Pin
Nautilus Master4-Oct-05 8:58
Nautilus Master4-Oct-05 8:58 
QuestionVS.Net Dialog Editor broken Pin
Jim A. Johnson4-Oct-05 8:16
Jim A. Johnson4-Oct-05 8:16 
AnswerRe: VS.Net Dialog Editor broken Pin
Jim A. Johnson4-Oct-05 10:26
Jim A. Johnson4-Oct-05 10:26 
Questionlooking for C++ code Pin
repati4-Oct-05 7:45
repati4-Oct-05 7:45 
Hi all,
Iam looking for the C++ code for the following Question asap? if anybody can do it please reply back soon and also let me know how soon they can do and how much it costs. thank u..........

Introduction

Reverend Zeller developed a formula for computing the day of the week on which a given date fell or will fall. Suppose that we let a, b, c and d be integers defined as follows:
a = the number of the month of the year, with March = 1, April = 2, and so on, with
January and February being counted as month 11 and 12 of the preceding year
b = the day of the month
c = the year of the century
d = century
For example, July 31, 1929 gives a = 5, b = 31, c = 29, d = 19; January 3, 1988 gives a = 11, b = 3, c = 87, d = 19. Now calculate the following integer quantities:
w = the integer quotient (13a – 1)/5
x = the integer quotient c/4
y = the integer quotient d/4
z = w + x + y + b + c – 2d
r = z reduced modulo 7; that is, r is the remainder of z divided by 7; r = 0 represents
Sunday; r = 1 represents Monday, and so on.


Specific Instructions

Implement a MyDate class to represent a date. The input has to be read as a string using an overloaded input operator. Preferably, no accessor function should be used to set the values of the data members. While reading the specified date, your program should validate the format i.e. while July 31, 1929 would be correct, 7/31/29, July 31, 29, 31/7/29 for example would be incorrect. The MyDate object should be able to find its own day of the week! Write a test program that illustrates the use of your MyDate class. The input to test the program should include the following:
July 31, 1929
January 3, 1988
March 21, 05
December 12, 1960
9/31/2005
July 4, 1776
January 1, 1991

Include all the source code (well documented) and input files and sufficient representative output.


sreek
AnswerRe: looking for C++ code Pin
Jim A. Johnson4-Oct-05 8:19
Jim A. Johnson4-Oct-05 8:19 
AnswerRe: looking for C++ code Pin
PJ Arends4-Oct-05 9:39
professionalPJ Arends4-Oct-05 9:39 
GeneralRe: looking for C++ code Pin
Wes Aday4-Oct-05 12:54
professionalWes Aday4-Oct-05 12:54 
QuestionReading all lines Pin
Alex Cutovoi4-Oct-05 7:36
Alex Cutovoi4-Oct-05 7:36 
AnswerRe: Reading all lines Pin
Chris Losinger4-Oct-05 8:27
professionalChris Losinger4-Oct-05 8:27 
AnswerRe: Reading all lines Pin
David Crow4-Oct-05 8:27
David Crow4-Oct-05 8:27 
GeneralRe: Reading all lines Pin
Alex Cutovoi4-Oct-05 8:39
Alex Cutovoi4-Oct-05 8:39 
GeneralRe: Reading all lines Pin
David Crow4-Oct-05 8:49
David Crow4-Oct-05 8:49 
GeneralRe: Reading all lines Pin
Alex Cutovoi4-Oct-05 9:02
Alex Cutovoi4-Oct-05 9:02 
GeneralRe: Reading all lines Pin
David Crow4-Oct-05 9:10
David Crow4-Oct-05 9:10 
GeneralRe: Reading all lines Pin
Alex Cutovoi4-Oct-05 9:32
Alex Cutovoi4-Oct-05 9:32 
GeneralRe: Reading all lines Pin
David Crow4-Oct-05 9:58
David Crow4-Oct-05 9:58 
QuestionClient/server .... please HELP Pin
Member 23297074-Oct-05 7:20
Member 23297074-Oct-05 7:20 
QuestionNewbie problem Pin
Anonymous4-Oct-05 6:18
Anonymous4-Oct-05 6:18 
AnswerRe: Newbie problem Pin
Ravi Bhavnani4-Oct-05 6:28
professionalRavi Bhavnani4-Oct-05 6:28 
QuestionDialog Controls Pin
LCI4-Oct-05 4:58
LCI4-Oct-05 4:58 
AnswerRe: Dialog Controls Pin
Maximilien4-Oct-05 5:21
Maximilien4-Oct-05 5:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.