Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. interesting Advance C# exercise

interesting Advance C# exercise

Scheduled Pinned Locked Moved C#
csharphelptutorialquestion
13 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rockxuyenmandem
    wrote on last edited by
    #1

    HTTP has been In use by the WWW global Information Initiative since 1990 and nowadays It Is one of the most widely used protocols on the Internet HTTP application have historically allowed three different formats for the representation of date/time stamps (described In RFC 2616) 1. RFC 1123 format, for example Sun, 06 Nov 2005 08:49:37 GMT 2. RFC 1036 format, for example Sunday, 06-Nov-05 08:49:37 GMT 3. ANSI C's asctime() format, for example Sun Nov 6 08:49:37 2005 An Implementation Is not HTTP 1.1 compliant If It fails to understand one of the above date/time formats Question 1 You are require to write an HTTP 1.1 compliant program to parse a string containing one of the above date/time formats. The program must detect the date/time format automatically based on the Input string and store the result In the following object Class MyDate { public Int day; /*1 to 31*/ public Int month; /*1 to 12*/ public Int year; /*1970 to 9999*/ public Int hour; /*0 to 23*/ public Int minute; /*0 to 59*/ public Int second; /*0 to 59*/ public Int dayofweek; /* 0= Sun, 1=Mon,etc* / } Question 2 Develop a program to display the system date/time In the RFC 1123 format(as show In example) ===================================================== I have no idea to do this exercise, please help me. Thanks alot. Good luck.

    J W L 3 Replies Last reply
    0
    • R rockxuyenmandem

      HTTP has been In use by the WWW global Information Initiative since 1990 and nowadays It Is one of the most widely used protocols on the Internet HTTP application have historically allowed three different formats for the representation of date/time stamps (described In RFC 2616) 1. RFC 1123 format, for example Sun, 06 Nov 2005 08:49:37 GMT 2. RFC 1036 format, for example Sunday, 06-Nov-05 08:49:37 GMT 3. ANSI C's asctime() format, for example Sun Nov 6 08:49:37 2005 An Implementation Is not HTTP 1.1 compliant If It fails to understand one of the above date/time formats Question 1 You are require to write an HTTP 1.1 compliant program to parse a string containing one of the above date/time formats. The program must detect the date/time format automatically based on the Input string and store the result In the following object Class MyDate { public Int day; /*1 to 31*/ public Int month; /*1 to 12*/ public Int year; /*1970 to 9999*/ public Int hour; /*0 to 23*/ public Int minute; /*0 to 59*/ public Int second; /*0 to 59*/ public Int dayofweek; /* 0= Sun, 1=Mon,etc* / } Question 2 Develop a program to display the system date/time In the RFC 1123 format(as show In example) ===================================================== I have no idea to do this exercise, please help me. Thanks alot. Good luck.

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      Do your own homework! If/When you get stuck on a specific coding question then feel free to post it and people here will be more than happy to help. Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

      R 1 Reply Last reply
      0
      • J J4amieC

        Do your own homework! If/When you get stuck on a specific coding question then feel free to post it and people here will be more than happy to help. Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

        R Offline
        R Offline
        rockxuyenmandem
        wrote on last edited by
        #3

        I known what you mean but... I haven't found any ways to do this exercise, i am begener and live in the country that IT is weak. My experience in C# is not really good. If you have time, plz help me. thankssssssss alot

        J 1 Reply Last reply
        0
        • R rockxuyenmandem

          HTTP has been In use by the WWW global Information Initiative since 1990 and nowadays It Is one of the most widely used protocols on the Internet HTTP application have historically allowed three different formats for the representation of date/time stamps (described In RFC 2616) 1. RFC 1123 format, for example Sun, 06 Nov 2005 08:49:37 GMT 2. RFC 1036 format, for example Sunday, 06-Nov-05 08:49:37 GMT 3. ANSI C's asctime() format, for example Sun Nov 6 08:49:37 2005 An Implementation Is not HTTP 1.1 compliant If It fails to understand one of the above date/time formats Question 1 You are require to write an HTTP 1.1 compliant program to parse a string containing one of the above date/time formats. The program must detect the date/time format automatically based on the Input string and store the result In the following object Class MyDate { public Int day; /*1 to 31*/ public Int month; /*1 to 12*/ public Int year; /*1970 to 9999*/ public Int hour; /*0 to 23*/ public Int minute; /*0 to 59*/ public Int second; /*0 to 59*/ public Int dayofweek; /* 0= Sun, 1=Mon,etc* / } Question 2 Develop a program to display the system date/time In the RFC 1123 format(as show In example) ===================================================== I have no idea to do this exercise, please help me. Thanks alot. Good luck.

          W Offline
          W Offline
          Wjousts
          wrote on last edited by
          #4

          Voted 1 because: a) we don't do your homework for you b) you've posted this before c) the problem is really neither interesting or all that advanced If you're really stuck start with the MSDN documentation for the string class. You might also find the Regex class and the DateTime class useful. Show that you are actually making an effort and somebody can problem help you with specific problems. -- modified at 11:28 Thursday 11th May, 2006

          L 1 Reply Last reply
          0
          • R rockxuyenmandem

            I known what you mean but... I haven't found any ways to do this exercise, i am begener and live in the country that IT is weak. My experience in C# is not really good. If you have time, plz help me. thankssssssss alot

            J Offline
            J Offline
            J4amieC
            wrote on last edited by
            #5

            rockxuyenmandem wrote:

            I haven't found any ways to do this exercise

            Have you actually tried? If so what have you tried. It looks like you want somebody to do the whole thing for you!

            rockxuyenmandem wrote:

            am begener and live in the country that IT is weak

            This is no excuse for not doing your homework!

            rockxuyenmandem wrote:

            My experience in C# is not really good.

            Hence why you are given homework, so that you can learn. If you are totally stuck on where to start can I sugggest you either a) Attend your classes and/or b) Seek advice from your tutor.

            rockxuyenmandem wrote:

            If you have time, plz help me.

            More than willing to help, but I wont do your homework as already stated. Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

            1 Reply Last reply
            0
            • W Wjousts

              Voted 1 because: a) we don't do your homework for you b) you've posted this before c) the problem is really neither interesting or all that advanced If you're really stuck start with the MSDN documentation for the string class. You might also find the Regex class and the DateTime class useful. Show that you are actually making an effort and somebody can problem help you with specific problems. -- modified at 11:28 Thursday 11th May, 2006

              L Offline
              L Offline
              Le centriste
              wrote on last edited by
              #6

              d) it is the second time he posts the same question. -------- "I say no to drugs, but they don't listen." - Marilyn Manson

              J 1 Reply Last reply
              0
              • L Le centriste

                d) it is the second time he posts the same question. -------- "I say no to drugs, but they don't listen." - Marilyn Manson

                J Offline
                J Offline
                J4amieC
                wrote on last edited by
                #7

                no, that was b):laugh: Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

                L 1 Reply Last reply
                0
                • J J4amieC

                  no, that was b):laugh: Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

                  L Offline
                  L Offline
                  Le centriste
                  wrote on last edited by
                  #8

                  crap, I missed this one!! :wtf: I stand corrected. -------- "I say no to drugs, but they don't listen." - Marilyn Manson

                  W O 2 Replies Last reply
                  0
                  • L Le centriste

                    crap, I missed this one!! :wtf: I stand corrected. -------- "I say no to drugs, but they don't listen." - Marilyn Manson

                    W Offline
                    W Offline
                    Wjousts
                    wrote on last edited by
                    #9

                    e) It's also the second time he posted it ;)

                    1 Reply Last reply
                    0
                    • L Le centriste

                      crap, I missed this one!! :wtf: I stand corrected. -------- "I say no to drugs, but they don't listen." - Marilyn Manson

                      O Offline
                      O Offline
                      Office Lineman
                      wrote on last edited by
                      #10

                      No... You sit, corrected twice. :laugh: -- I've killed again, haven't I?

                      J 1 Reply Last reply
                      0
                      • O Office Lineman

                        No... You sit, corrected twice. :laugh: -- I've killed again, haven't I?

                        J Offline
                        J Offline
                        J4amieC
                        wrote on last edited by
                        #11

                        :laugh: This thread has teh funneh! Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

                        1 Reply Last reply
                        0
                        • R rockxuyenmandem

                          HTTP has been In use by the WWW global Information Initiative since 1990 and nowadays It Is one of the most widely used protocols on the Internet HTTP application have historically allowed three different formats for the representation of date/time stamps (described In RFC 2616) 1. RFC 1123 format, for example Sun, 06 Nov 2005 08:49:37 GMT 2. RFC 1036 format, for example Sunday, 06-Nov-05 08:49:37 GMT 3. ANSI C's asctime() format, for example Sun Nov 6 08:49:37 2005 An Implementation Is not HTTP 1.1 compliant If It fails to understand one of the above date/time formats Question 1 You are require to write an HTTP 1.1 compliant program to parse a string containing one of the above date/time formats. The program must detect the date/time format automatically based on the Input string and store the result In the following object Class MyDate { public Int day; /*1 to 31*/ public Int month; /*1 to 12*/ public Int year; /*1970 to 9999*/ public Int hour; /*0 to 23*/ public Int minute; /*0 to 59*/ public Int second; /*0 to 59*/ public Int dayofweek; /* 0= Sun, 1=Mon,etc* / } Question 2 Develop a program to display the system date/time In the RFC 1123 format(as show In example) ===================================================== I have no idea to do this exercise, please help me. Thanks alot. Good luck.

                          L Offline
                          L Offline
                          LongRange Shooter
                          wrote on last edited by
                          #12

                          I would have to say that the most interesting aspect to this post is that you are a 3rd year computer student and yet you do not know how to parse a string. By my third year I was writing compilers and operating systems. I highly recommend you consider a new career path. We definitely don't need more developers like you around. You got a 1 vote from me.

                          R 1 Reply Last reply
                          0
                          • L LongRange Shooter

                            I would have to say that the most interesting aspect to this post is that you are a 3rd year computer student and yet you do not know how to parse a string. By my third year I was writing compilers and operating systems. I highly recommend you consider a new career path. We definitely don't need more developers like you around. You got a 1 vote from me.

                            R Offline
                            R Offline
                            rockxuyenmandem
                            wrote on last edited by
                            #13

                            :(...:((...:((

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups