Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. I have homework C++
Forum Updated to NodeBB v4.3 + New Features

I have homework C++

Scheduled Pinned Locked Moved Solved The Lounge
24 Posts 13 Posters 5.5k Views 5 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.
  • jsulmJ jsulm

    @maixeptoanphat And you want others to do your home work?!

    maixeptoanphatM Offline
    maixeptoanphatM Offline
    maixeptoanphat
    wrote on last edited by
    #3

    yepp, pls help me

    jsulmJ 1 Reply Last reply
    0
    • maixeptoanphatM maixeptoanphat

      yepp, pls help me

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #4

      @maixeptoanphat No, I will not. It's your home work, so you have to do it...

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      maixeptoanphatM 1 Reply Last reply
      3
      • jsulmJ jsulm

        @maixeptoanphat No, I will not. It's your home work, so you have to do it...

        maixeptoanphatM Offline
        maixeptoanphatM Offline
        maixeptoanphat
        wrote on last edited by
        #5

        @jsulm I don't know how to do it, can you give me some instructions?

        jsulmJ 1 Reply Last reply
        0
        • maixeptoanphatM maixeptoanphat

          @jsulm I don't know how to do it, can you give me some instructions?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #6

          @maixeptoanphat Then ask concrete questions. What did you try? What did not work? This forum is not for teaching C++ basics...

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          maixeptoanphatM 1 Reply Last reply
          3
          • jsulmJ jsulm

            @maixeptoanphat Then ask concrete questions. What did you try? What did not work? This forum is not for teaching C++ basics...

            maixeptoanphatM Offline
            maixeptoanphatM Offline
            maixeptoanphat
            wrote on last edited by
            #7

            @jsulm
            sorry, i'm new, and thank you very much :(

            mrjjM 1 Reply Last reply
            0
            • maixeptoanphatM maixeptoanphat

              @jsulm
              sorry, i'm new, and thank you very much :(

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #8

              @maixeptoanphat

              Hi
              We can talk in board terms about each task without it being too much cheating.
              However being in C++ Gurus forum, its a little off. ;)

              • Enter an array of n real numbers,
                we need a list here containing "real" values
                Did you learn about std::vector ?

              • find and print the smallest and largest elements,
                Here we can use a for loop to run over the List.
                we need 2 new variables to keep track of the biggest and smallest
                value we have seen.

              • Calculates and prints the average of the elements in the array.
                Use a new variable and a for loop to loop the list and sum up
                each value in the list.

              • Print out the elements smaller than the average.
                Again a for loop and use the new variable from before holding the avg value and
                check pr value in list

              maixeptoanphatM 1 Reply Last reply
              6
              • mrjjM mrjj

                @maixeptoanphat

                Hi
                We can talk in board terms about each task without it being too much cheating.
                However being in C++ Gurus forum, its a little off. ;)

                • Enter an array of n real numbers,
                  we need a list here containing "real" values
                  Did you learn about std::vector ?

                • find and print the smallest and largest elements,
                  Here we can use a for loop to run over the List.
                  we need 2 new variables to keep track of the biggest and smallest
                  value we have seen.

                • Calculates and prints the average of the elements in the array.
                  Use a new variable and a for loop to loop the list and sum up
                  each value in the list.

                • Print out the elements smaller than the average.
                  Again a for loop and use the new variable from before holding the avg value and
                  check pr value in list

                maixeptoanphatM Offline
                maixeptoanphatM Offline
                maixeptoanphat
                wrote on last edited by maixeptoanphat
                #9

                @mrjj i'm done. Thank you so much

                1 Reply Last reply
                1
                • fcarneyF Offline
                  fcarneyF Offline
                  fcarney
                  wrote on last edited by JKSH
                  #10

                  lol, I translated the bio statement for this user:
                  "[EDIT: Name deleted --JKSH] is proud to be the supplier and installation of the highest quality portable folding roof in the area. Please contact us for advice and installation of the new and most beautiful portable folding roof today."

                  C++ is a perfectly valid school of magic.

                  aha_1980A 1 Reply Last reply
                  1
                  • fcarneyF fcarney

                    lol, I translated the bio statement for this user:
                    "[EDIT: Name deleted --JKSH] is proud to be the supplier and installation of the highest quality portable folding roof in the area. Please contact us for advice and installation of the new and most beautiful portable folding roof today."

                    aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on last edited by
                    #11

                    Thanks @fcarney, I already thought this post has a bad smell.

                    Qt has to stay free or it will die.

                    1 Reply Last reply
                    1
                    • JonBJ Online
                      JonBJ Online
                      JonB
                      wrote on last edited by
                      #12

                      I'm very naive over these things, what's this all about? I don't wish to start a controversy/cause problems, just I don't understand.

                      mrjjM 1 Reply Last reply
                      0
                      • JonBJ JonB

                        I'm very naive over these things, what's this all about? I don't wish to start a controversy/cause problems, just I don't understand.

                        mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on last edited by
                        #13

                        @JonB
                        Hi
                        Its just spammer hunt/prevention so any signs we know from other posts (that turn out to spam later)
                        is considered. Like advertising for roofs in programming forums.That Sort of fishy.

                        JonBJ 1 Reply Last reply
                        0
                        • mrjjM mrjj

                          @JonB
                          Hi
                          Its just spammer hunt/prevention so any signs we know from other posts (that turn out to spam later)
                          is considered. Like advertising for roofs in programming forums.That Sort of fishy.

                          JonBJ Online
                          JonBJ Online
                          JonB
                          wrote on last edited by
                          #14

                          @mrjj
                          If he is advertsing for roofs, what's he doing here asking questions about homework/calculating averages? Does that help build roofs??

                          mrjjM 1 Reply Last reply
                          0
                          • JonBJ JonB

                            @mrjj
                            If he is advertsing for roofs, what's he doing here asking questions about homework/calculating averages? Does that help build roofs??

                            mrjjM Offline
                            mrjjM Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on last edited by
                            #15

                            @JonB
                            To roof or to code. That is the question. ;)
                            So yes, normally they get on the watch list, and as soon as first spam is seen they are banned for good.

                            JonBJ 1 Reply Last reply
                            1
                            • mrjjM mrjj

                              @JonB
                              To roof or to code. That is the question. ;)
                              So yes, normally they get on the watch list, and as soon as first spam is seen they are banned for good.

                              JonBJ Online
                              JonBJ Online
                              JonB
                              wrote on last edited by
                              #16

                              @mrjj
                              But I am asking: why is that person posting a question here?

                              J.HilkJ 1 Reply Last reply
                              0
                              • JonBJ JonB

                                @mrjj
                                But I am asking: why is that person posting a question here?

                                J.HilkJ Offline
                                J.HilkJ Offline
                                J.Hilk
                                Moderators
                                wrote on last edited by
                                #17

                                @JonB to change it later to include a spam link or other advertisements


                                Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                                Q: What's that?
                                A: It's blue light.
                                Q: What does it do?
                                A: It turns blue.

                                JonBJ 1 Reply Last reply
                                0
                                • J.HilkJ J.Hilk

                                  @JonB to change it later to include a spam link or other advertisements

                                  JonBJ Online
                                  JonBJ Online
                                  JonB
                                  wrote on last edited by
                                  #18

                                  @J-Hilk
                                  Ooohhh!

                                  Then just one more question, sorry: are they likely to get many orders for roofs from a Qt forum?!

                                  JKSHJ 1 Reply Last reply
                                  0
                                  • JonBJ JonB

                                    @J-Hilk
                                    Ooohhh!

                                    Then just one more question, sorry: are they likely to get many orders for roofs from a Qt forum?!

                                    JKSHJ Offline
                                    JKSHJ Offline
                                    JKSH
                                    Moderators
                                    wrote on last edited by
                                    #19

                                    @JonB said in I have homework C++:

                                    Then just one more question, sorry: are they likely to get many orders for roofs from a Qt forum?!

                                    Probably not, but such details don't bother spammers because their main goal is to leave hyperlinks in forums: https://en.wikipedia.org/wiki/Spamdexing#Link_spam

                                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                    1 Reply Last reply
                                    4
                                    • Kent-DorfmanK Offline
                                      Kent-DorfmanK Offline
                                      Kent-Dorfman
                                      wrote on last edited by
                                      #20

                                      I sooo miss the days when the InterNet was by geeks, for geeks, and unknown to all but geeks. I blame AOL.

                                      mzimmersM 1 Reply Last reply
                                      3
                                      • Kent-DorfmanK Kent-Dorfman

                                        I sooo miss the days when the InterNet was by geeks, for geeks, and unknown to all but geeks. I blame AOL.

                                        mzimmersM Offline
                                        mzimmersM Offline
                                        mzimmers
                                        wrote on last edited by
                                        #21

                                        @Kent-Dorfman it seems that all the good things in life begin small and limited, and as they grow to appeal to the least common denominator, they become ruined. Just the way of the world...

                                        1 Reply Last reply
                                        1
                                        • R Offline
                                          R Offline
                                          rajputaman04
                                          Banned
                                          wrote on last edited by
                                          #22
                                          This post is deleted!
                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved