Your C++ Homework

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fred Astair

    #1

    Your C++ Homework

    I used this site for a c++ homework assignment that my teacher left me no
    clue on how to do it. http://www.betterteachers.com. Check it out.

    Fred


  • Pedro Graca

    #2
    Re: Your C++ Homework

    Fred Astair wrote:[color=blue]
    > I used this site for a c++ homework assignment that my teacher left me no
    > clue on how to do it. http://www.betterteachers.com. Check it out.
    >
    > Fred[/color]

    Don't forget main() returns an int.
    --
    USENET would be a better place if everybody read: | to mail me: simply |
    http://www.catb.org/~esr/faqs/smart-questions.html | "reply" to this post, |
    http://www.netmeister.org/news/learn2quote2.html | *NO* MIME, plain text |
    http://www.expita.com/nomime.html | and *NO* attachments. |

    Comment

    • JKop

      #3
      Re: Your C++ Homework

      Fred Astair posted:
      [color=blue]
      > I used this site for a c++ homework assignment that my teacher left me no
      > clue on how to do it. http://www.betterteachers.com. Check it out.
      >
      > Fred[/color]



      Since when does one need a teacher to learn C++?!

      I'm living proof of the contrary.


      -JKop

      Comment

      • Julie

        #4
        Re: Your C++ Homework

        JKop wrote:[color=blue]
        >
        > Fred Astair posted:
        >[color=green]
        > > I used this site for a c++ homework assignment that my teacher left me no
        > > clue on how to do it. http://www.betterteachers.com. Check it out.
        > >
        > > Fred[/color]
        >
        >
        >
        > Since when does one need a teacher to learn C++?!
        >
        > I'm living proof of the contrary.
        >
        > -JKop[/color]

        Having a teacher isn't an either/or situation.

        Comment

        • Jonathan Turkanis

          #5
          Re: Your C++ Homework


          "JKop" <NULL@NULL.NULL > wrote in message
          news:6eyfd.4010 3$Z14.14659@new s.indigo.ie...[color=blue]
          > Fred Astair posted:
          >[color=green]
          > > I used this site for a c++ homework assignment that my teacher left me no
          > > clue on how to do it. http://www.betterteachers.com. Check it out.
          > >
          > > Fred[/color]
          >
          >
          >
          > Since when does one need a teacher to learn C++?!
          >
          > I'm living proof of the contrary.[/color]

          I wouldn't stress that one example too much.

          However, there's something to be said for learning C++ independently from
          textbooks, since some excellent C++ books are widely available and good C++
          teachers seem to be in short supply.

          Jonathan


          Comment

          • Cy Edmunds

            #6
            Re: Your C++ Homework

            "JKop" <NULL@NULL.NULL > wrote in message
            news:6eyfd.4010 3$Z14.14659@new s.indigo.ie...[color=blue]
            > Fred Astair posted:
            >[color=green]
            >> I used this site for a c++ homework assignment that my teacher left me no
            >> clue on how to do it. http://www.betterteachers.com. Check it out.
            >>
            >> Fred[/color]
            >
            >
            >
            > Since when does one need a teacher to learn C++?!
            >
            > I'm living proof of the contrary.
            >
            >
            > -JKop[/color]

            Given that you recently threw one on line fit because you couldn't add an
            integer to a string and another because you couldn't return a stream by
            value, I would say this proof is a little leaky.

            --
            Cy
            http://home.rochester.rr.com/cyhome/


            Comment

            • Catalin Pitis

              #7
              Re: Your C++ Homework


              "JKop" <NULL@NULL.NULL > wrote in message
              news:6eyfd.4010 3$Z14.14659@new s.indigo.ie...[color=blue]
              > Fred Astair posted:
              >[color=green]
              >> I used this site for a c++ homework assignment that my teacher left me no
              >> clue on how to do it. http://www.betterteachers.com. Check it out.
              >>
              >> Fred[/color]
              >
              >
              >
              > Since when does one need a teacher to learn C++?!
              >
              > I'm living proof of the contrary.
              >[/color]
              Depends on the teacher. With a good teacher(s), you may learn faster and
              spend less time for digging in books, manuals and other materials. I missed
              that a lot. But I took care to guide other's study in the companies that I
              worked.

              Catalin


              Comment

              • JKop

                #8
                Re: Your C++ Homework

                Jonathan Turkanis posted:
                [color=blue]
                >
                > "JKop" <NULL@NULL.NULL > wrote in message
                > news:6eyfd.4010 3$Z14.14659@new s.indigo.ie...[color=green]
                >> Fred Astair posted:
                >>[color=darkred]
                >> > I used this site for a c++ homework assignment that my teacher left
                >> > me no clue on how to do it. http://www.betterteachers.com. Check it
                >> > out.
                >> >
                >> > Fred[/color]
                >>
                >>
                >>
                >> Since when does one need a teacher to learn C++?!
                >>
                >> I'm living proof of the contrary.[/color]
                >
                > I wouldn't stress that one example too much.[/color]


                Any particular reason why?


                -JKop

                Comment

                • JKop

                  #9
                  Re: Your C++ Homework

                  Cy Edmunds posted:
                  [color=blue]
                  > "JKop" <NULL@NULL.NULL > wrote in message
                  > news:6eyfd.4010 3$Z14.14659@new s.indigo.ie...[color=green]
                  >> Fred Astair posted:
                  >>[color=darkred]
                  >>> I used this site for a c++ homework assignment that my teacher left
                  >>> me no clue on how to do it. http://www.betterteachers.com. Check it
                  >>> out.
                  >>>
                  >>> Fred[/color]
                  >>
                  >>
                  >>
                  >> Since when does one need a teacher to learn C++?!
                  >>
                  >> I'm living proof of the contrary.
                  >>
                  >>
                  >> -JKop[/color]
                  >
                  > Given that you recently threw one on line fit because you couldn't add
                  > an integer to a string and another because you couldn't return a[/color]
                  stream[color=blue]
                  > by value, I would say this proof is a little leaky.[/color]


                  You learn something new everyday.

                  -JKop

                  Comment

                  • JKop

                    #10
                    Re: Your C++ Homework

                    [color=blue]
                    > Depends on the teacher. With a good teacher(s), you may learn faster
                    > and spend less time for digging in books, manuals and other materials.
                    > I missed that a lot. But I took care to guide other's study in the
                    > companies that I worked.[/color]


                    Definitely agree with you there! While having a teacher (for anything in
                    life really) will make you learn faster, still there's no need for the
                    teacher. I've yet to find a book which has a good explanation on why:


                    int *p_k;

                    *p_k = 4;


                    is illegal.


                    -JKop

                    Comment

                    • Catalin Pitis

                      #11
                      Re: Your C++ Homework


                      "JKop" <NULL@NULL.NULL > wrote in message
                      news:LRIfd.4013 5$Z14.14731@new s.indigo.ie...[color=blue]
                      >[color=green]
                      >> Depends on the teacher. With a good teacher(s), you may learn faster
                      >> and spend less time for digging in books, manuals and other materials.
                      >> I missed that a lot. But I took care to guide other's study in the
                      >> companies that I worked.[/color]
                      >
                      >
                      > Definitely agree with you there! While having a teacher (for anything in
                      > life really) will make you learn faster, still there's no need for the
                      > teacher. I've yet to find a book which has a good explanation on why:
                      >
                      >
                      > int *p_k;
                      >
                      > *p_k = 4;
                      >
                      >
                      > is illegal.[/color]

                      When you find it, tell me :). I'm curious.

                      Catalin


                      Comment

                      • Gernot Frisch

                        #12
                        Re: Your C++ Homework


                        "Catalin Pitis" <catalin.pitis@ iquestint.com.r enameme> schrieb im
                        Newsbeitrag news:2u94aeF26c 2m9U1@uni-berlin.de...[color=blue]
                        >
                        > "JKop" <NULL@NULL.NULL > wrote in message
                        > news:LRIfd.4013 5$Z14.14731@new s.indigo.ie...[color=green]
                        >>[color=darkred]
                        >>> Depends on the teacher. With a good teacher(s), you may learn
                        >>> faster
                        >>> and spend less time for digging in books, manuals and other
                        >>> materials.
                        >>> I missed that a lot. But I took care to guide other's study in the
                        >>> companies that I worked.[/color]
                        >>
                        >>
                        >> Definitely agree with you there! While having a teacher (for
                        >> anything in
                        >> life really) will make you learn faster, still there's no need for
                        >> the
                        >> teacher. I've yet to find a book which has a good explanation on
                        >> why:
                        >>
                        >>
                        >> int *p_k;
                        >>
                        >> *p_k = 4;
                        >>
                        >>
                        >> is illegal.[/color]
                        >
                        > When you find it, tell me :). I'm curious.[/color]

                        Don't understand: Is there no book that tells you that it's illegal?
                        I'm gonna write one. Title:
                        "Dereferenc ing an uninitialized pointer is illegal".

                        Content:
                        Dereferencing an uninitialized pointer is illegal. Example:
                        int* p_k; *p_k=4; [1]

                        References:
                        [1] JKob in comp.lang.c++, 27.10.2004

                        Am I gonna be rich?
                        -Gernot






                        Comment

                        • Catalin Pitis

                          #13
                          Re: Your C++ Homework


                          "Gernot Frisch" <Me@Privacy.net > wrote in message
                          news:2u979sF28l mbpU1@uni-berlin.de...[color=blue]
                          >
                          > "Catalin Pitis" <catalin.pitis@ iquestint.com.r enameme> schrieb im
                          > Newsbeitrag news:2u94aeF26c 2m9U1@uni-berlin.de...[color=green]
                          >>
                          >> "JKop" <NULL@NULL.NULL > wrote in message
                          >> news:LRIfd.4013 5$Z14.14731@new s.indigo.ie...[color=darkred]
                          >>>
                          >>>> Depends on the teacher. With a good teacher(s), you may learn faster
                          >>>> and spend less time for digging in books, manuals and other materials.
                          >>>> I missed that a lot. But I took care to guide other's study in the
                          >>>> companies that I worked.
                          >>>
                          >>>
                          >>> Definitely agree with you there! While having a teacher (for anything in
                          >>> life really) will make you learn faster, still there's no need for the
                          >>> teacher. I've yet to find a book which has a good explanation on why:
                          >>>
                          >>>
                          >>> int *p_k;
                          >>>
                          >>> *p_k = 4;
                          >>>
                          >>>
                          >>> is illegal.[/color]
                          >>
                          >> When you find it, tell me :). I'm curious.[/color]
                          >
                          > Don't understand: Is there no book that tells you that it's illegal? I'm
                          > gonna write one. Title:
                          > "Dereferenc ing an uninitialized pointer is illegal".
                          >
                          > Content:
                          > Dereferencing an uninitialized pointer is illegal. Example:
                          > int* p_k; *p_k=4; [1]
                          >
                          > References:
                          > [1] JKob in comp.lang.c++, 27.10.2004
                          >
                          > Am I gonna be rich?
                          > -Gernot[/color]

                          It should be a missundertandin g :). By illegal I meant that the compiler
                          doesn't allow me to do it. But I'm allowed to do it. I surely wouldn't do it
                          :).

                          Catalin


                          Comment

                          • Patrick Kowalzick

                            #14
                            Re: Your C++ Homework

                            Hi Fred,
                            [color=blue]
                            > I used this site for a c++ homework assignment that my teacher left me no
                            > clue on how to do it. http://www.betterteachers.com. Check it out.[/color]

                            Nice. Did it help? Did you learn a lot?

                            Regards,
                            Patrick


                            Comment

                            • JKop

                              #15
                              Re: Your C++ Homework

                              [color=blue]
                              > Given that you recently threw one on line fit because you couldn't add
                              > an integer to a string and another because you couldn't return a stream
                              > by value, I would say this proof is a little leaky.[/color]


                              Actually, don't you think that destroys your own argument? You've just
                              expressed that at one time I didn't know how to append a number in digit
                              form to a string, and that I didn't know why a stream could not be copied.
                              Evidently, I posted enquiring about these, and now I know how. Emphasis on
                              "now I know". Quit living in the past.


                              -JKop

                              Comment

                              Working...