can anyone give code in vc++
-
N.Ravi Raj wrote:
when a day is given as input then output should be the weekday
you should refer date time classes in C++ first and then if you don't find a solution, someone here may help. See GetDay function of COleDateTime
You need to google first, if you have "It's urgent please" mentioned in your question. ;-)_AnShUmAn_
urgent please code in vc++ thanks
-
urgent please code in vc++ thanks
If your query is urgent, you can go to rentacoder[^]
It is a crappy thing, but it's life -^ Carlo Pallini
-
urgent please code in vc++ thanks
I gave more than what you asked for in your query. Now it's up to you to use it.
You need to google first, if you have "It's urgent please" mentioned in your question. ;-)_AnShUmAn_
-
If your query is urgent, you can go to rentacoder[^]
It is a crappy thing, but it's life -^ Carlo Pallini
He can waits for Palini.
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
It should be in maths blog.Anyway Use the logic given below.....i hope it will help u The Basic Steps The basic steps for a date in the years 2000-2099 are as follows: Example date July 13th, 2004 1. Take the last 2 digits of the year and add a quarter onto itself. (04 + 1 = 5) 2. Get the corresponding code for the month. (January = 6, February = 2, March = 2, etc. See month codes for details). July = 5 3. Take the day. (=13) 4. Add the numbers together (5 + 5 + 13 = 23) 5. Take away 7 (or multiples of 7) until a number from 1-7 is left. (23 - 21 =2) 6. This number corresponds to the day of the week. (1 = Monday, 2 = Tuesday, etc.) In this case 2 = Tuesday The basic steps | Other points | Month codes | Leap years | Gregorian calendar | Shortcuts | Examples | Other methods | Books | Links | Whose idea? Other points to take into account Apart from the basic steps, other elements have to be taken into account: * When adding a quarter of the year onto itself, If the quarter of the year is not a whole number, simply ignore the decimals. Do not round up. Therefore 27/4 = 6.75 = 6, and 2/4 = 0.5 = 0. * Leap years: subtract 1 from the total if the month is January or February. * Negative numbers. During the calculation you get 0 or negative numbers, just add seven until you get a number from 1-7. * Different "centuries" *. o 1700s add 5 o 1800s add 3 o 1900s add 1 o 2100s subtract 2 o 2200s subtract 4 (* For this method we have to consider a '00' year as part of the new century) The basic steps | Other points | Month codes | Leap years | Gregorian calendar | Shortcuts | Examples | Other methods | Books | Links | Whose idea? The codes for the months At first the hardest part is learning the codes for the months. They are as follows: Jan Feb Mar Apr. May Jun Jul Ago Sept Oct Nov Dec 6 2 2 5 0 3 5 1 4 6 2 4 Try to use some memory system to remember the codes for the months. for example, February is the 2nd month, March 2 music, etc. Try to find associations that will remind you. If need be, you can add 7 or multiples of 7 to any of these values to help you remember them. For example, August could be 1 or 8, and as it is the 8th month, it may be easier to remember with 8 than with 1. This may be useful if you can match it with a well-known date. You could remember that the code for December is 25 (4+21), or for someone's birthday. The ne
it's always good to give credit where credit's due[^]...
-
It should be in maths blog.Anyway Use the logic given below.....i hope it will help u The Basic Steps The basic steps for a date in the years 2000-2099 are as follows: Example date July 13th, 2004 1. Take the last 2 digits of the year and add a quarter onto itself. (04 + 1 = 5) 2. Get the corresponding code for the month. (January = 6, February = 2, March = 2, etc. See month codes for details). July = 5 3. Take the day. (=13) 4. Add the numbers together (5 + 5 + 13 = 23) 5. Take away 7 (or multiples of 7) until a number from 1-7 is left. (23 - 21 =2) 6. This number corresponds to the day of the week. (1 = Monday, 2 = Tuesday, etc.) In this case 2 = Tuesday The basic steps | Other points | Month codes | Leap years | Gregorian calendar | Shortcuts | Examples | Other methods | Books | Links | Whose idea? Other points to take into account Apart from the basic steps, other elements have to be taken into account: * When adding a quarter of the year onto itself, If the quarter of the year is not a whole number, simply ignore the decimals. Do not round up. Therefore 27/4 = 6.75 = 6, and 2/4 = 0.5 = 0. * Leap years: subtract 1 from the total if the month is January or February. * Negative numbers. During the calculation you get 0 or negative numbers, just add seven until you get a number from 1-7. * Different "centuries" *. o 1700s add 5 o 1800s add 3 o 1900s add 1 o 2100s subtract 2 o 2200s subtract 4 (* For this method we have to consider a '00' year as part of the new century) The basic steps | Other points | Month codes | Leap years | Gregorian calendar | Shortcuts | Examples | Other methods | Books | Links | Whose idea? The codes for the months At first the hardest part is learning the codes for the months. They are as follows: Jan Feb Mar Apr. May Jun Jul Ago Sept Oct Nov Dec 6 2 2 5 0 3 5 1 4 6 2 4 Try to use some memory system to remember the codes for the months. for example, February is the 2nd month, March 2 music, etc. Try to find associations that will remind you. If need be, you can add 7 or multiples of 7 to any of these values to help you remember them. For example, August could be 1 or 8, and as it is the 8th month, it may be easier to remember with 8 than with 1. This may be useful if you can match it with a well-known date. You could remember that the code for December is 25 (4+21), or for someone's birthday. The ne
Simply providing a link would have sufficed: http://www.terra.es/personal2/grimmer/[^]
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
it's always good to give credit where credit's due[^]...
wow, neat !
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
He can waits for Palini.
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
Hamid. wrote:
Palini
Wow, It's me? Uhm.....No, I'm Pallini! :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Hamid. wrote:
Palini
Wow, It's me? Uhm.....No, I'm Pallini! :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]Yeah thats right. :-D btw may I ask a quetion?
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
Yeah thats right. :-D btw may I ask a quetion?
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
Hamid. wrote:
btw may I ask a quetion?
You know you can. :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Hamid. wrote:
btw may I ask a quetion?
You know you can. :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]I was watched mvp.support.microsoft.com last night and I saw name of some members of codeproject(btw I saw your name CONGRATULATION Calro:-D ) I want to know is this depend to mvp that we could to get of codeproject or its different (I only got a mail chris 1 jan)? Thanks :)
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
I was watched mvp.support.microsoft.com last night and I saw name of some members of codeproject(btw I saw your name CONGRATULATION Calro:-D ) I want to know is this depend to mvp that we could to get of codeproject or its different (I only got a mail chris 1 jan)? Thanks :)
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
Hamid. wrote:
I want to know is this depend to mvp that we could to get of codeproject or its different (I only got a mail chris 1 jan)?
So far I've posted only on Code Project so I got it thanks to Code Project. I think you should be noticed by your local Ms MVP leader in order to get the award. Good luck & best wishes! :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Hamid. wrote:
I want to know is this depend to mvp that we could to get of codeproject or its different (I only got a mail chris 1 jan)?
So far I've posted only on Code Project so I got it thanks to Code Project. I think you should be noticed by your local Ms MVP leader in order to get the award. Good luck & best wishes! :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]Well I think its not possible so I need to do it myself.
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )