Wheels-Of-Fire

Forum Replies Created

Viewing 20 posts - 1,341 through 1,360 (of 1,996 total)
  • Author
    Posts
  • in reply to: Learning to program #28342
    Wheels-Of-FireWheels-Of-Fire
    Participant
      @grahamdearsley
      Forumite Points: 4

      He he the good old BEDMAS (brackets, exponent, divide, multiply, add, subtract) chestnut. This works in general but remember you are still working from left to right. In your own programs it is best to use brackets to make sure things get worked out in the order you want.

      in reply to: Windows 10 Cumulative Updates #28327
      Wheels-Of-FireWheels-Of-Fire
      Participant
        @grahamdearsley
        Forumite Points: 4

        Dont remember seeing the “Windows is a service” bit before.

        in reply to: Windows 10 Cumulative Updates #28319
        Wheels-Of-FireWheels-Of-Fire
        Participant
          @grahamdearsley
          Forumite Points: 4

          With the latest update I noticed the the message “Windows is a service and will receive regular updates”. How long has it been doing that ?

          in reply to: Brexit now = CETA +/-? #28313
          Wheels-Of-FireWheels-Of-Fire
          Participant
            @grahamdearsley
            Forumite Points: 4

            Oh no it won’t Duke. Mrs may will put her deal to parliament knowing it will fail but that will give her a legitimate reason for a second referendum. Then we can all vote leave again and get on with it.

            in reply to: RedHat perhaps commits suicide by letting IBM buy it #28312
            Wheels-Of-FireWheels-Of-Fire
            Participant
              @grahamdearsley
              Forumite Points: 4

              IBM actually has quite a good record when it comes to UNIX based OS’s. A court ruled that IBM and AT&T actually own UNIX but with major contributions from third parties. It wasn’t until the idiots at SCO tried to claim they owned UNIX that IBM took any action over ownership and only then because SCO were trying to sue them for its use.

              in reply to: Brexit now = CETA +/-? #28304
              Wheels-Of-FireWheels-Of-Fire
              Participant
                @grahamdearsley
                Forumite Points: 4

                Crossword time.

                Arrange these words “out, sell” into an expression also meaning capitulation, cave in or surrender.

                Clue: same as Brexit deal.

                in reply to: C++ Programming #28260
                Wheels-Of-FireWheels-Of-Fire
                Participant
                  @grahamdearsley
                  Forumite Points: 4

                  Well we seem to have an extra “Math::” scope qualfier in the header file, as we are already in the “Math” class declaration this is not required or legal.

                  in reply to: Crowing about your OS #28249
                  Wheels-Of-FireWheels-Of-Fire
                  Participant
                    @grahamdearsley
                    Forumite Points: 4

                    I just don’t the problems that others seem to with W10. The only problem I get fairly regularly is updated Radeon graphics drivers failing to instal the video card sound driver but thats the fault of AMD rather than Microsoft.

                    in reply to: Tomorrow is Decision Day. #28247
                    Wheels-Of-FireWheels-Of-Fire
                    Participant
                      @grahamdearsley
                      Forumite Points: 4

                      All the best for good news

                      in reply to: C++ Programming #28233
                      Wheels-Of-FireWheels-Of-Fire
                      Participant
                        @grahamdearsley
                        Forumite Points: 4

                        Oops posted that twice. The second one is correct ?

                        in reply to: C++ Programming #28232
                        Wheels-Of-FireWheels-Of-Fire
                        Participant
                          @grahamdearsley
                          Forumite Points: 4

                          edX made a mistake in their very first attempt at showing how to split a class into sepperate declaration header and definition cpp files. The header called Math.h was:

                          #pragma once

                          static class Math

                          {

                          public:

                          Static int Math::pow(int base, int exp);

                          };

                          And the cpp definition was:

                          #include “pch.”

                          #include “math.h”

                          Int Math::pow(int base, int exp)

                          {

                          int result = 1

                          for (int 1=0; i<exp; i++)

                          {

                          result=result*base;

                          }

                          return result;

                          The error message was ” qualified name not allowed in member declaration” can anyone spot it ? Took me 20 min.

                           

                          in reply to: C++ Programming #28231
                          Wheels-Of-FireWheels-Of-Fire
                          Participant
                            @grahamdearsley
                            Forumite Points: 4

                            edX made a mistake in their very first attempt at showing how to split a class into sepperate declaration header and definition cpp files. The header called Math.h was:

                            #pragma once

                            static class Math

                            {

                            public:

                            Static int maths::pow(int base, int exp);

                            };

                            And the cpp definition was:

                            #include “pch.”

                            #include “math.h”

                            Int Math::pow(int base, int exp)

                            {

                            int result = 1

                            for (int 1=0; i<exp; i++)

                            {

                            result=result*base;

                            }

                            return result;

                            The error message was ” qualified name not allowed in member declaration” can anyone spot it ? Took me 20 min.

                             

                            in reply to: Learning to program #28192
                            Wheels-Of-FireWheels-Of-Fire
                            Participant
                              @grahamdearsley
                              Forumite Points: 4

                              Well I didn’t exactly have a play but I did look up .PYC files. It looks like Python can compile libraries into an intermediate portable or P Code format to save space and speed the interpratation. Sorry to go on about the out dated Atari BASIC but it does a similar thing by tokenising every line you enter for the same reasons. If you SAVE a program to disc you get the tokenised version complete with variable table but if you use LIST “D:MYPROG.TXT” you just get an ASCII text file that you can reload with ENTER. If you use ENTER then the program gets tokenised as it is read in and merged with any program in memory (as long as the line numbers are different).

                              in reply to: Learning to program #28123
                              Wheels-Of-FireWheels-Of-Fire
                              Participant
                                @grahamdearsley
                                Forumite Points: 4

                                Ah go play with that then

                                in reply to: Learning to program #28119
                                Wheels-Of-FireWheels-Of-Fire
                                Participant
                                  @grahamdearsley
                                  Forumite Points: 4

                                  Just going to point out that a DLL is a dynamicly linked library. It is pulled in at run time.

                                  in reply to: Read First if flying on a Boeing 737 Max–or maybe not! #28108
                                  Wheels-Of-FireWheels-Of-Fire
                                  Participant
                                    @grahamdearsley
                                    Forumite Points: 4

                                    Ah yes Bob but those things were largely fly by cable. Up Up and away in my beautiful kite !

                                    in reply to: Learning to program #28097
                                    Wheels-Of-FireWheels-Of-Fire
                                    Participant
                                      @grahamdearsley
                                      Forumite Points: 4

                                      And i still dont want the HTML formatting posts !

                                      in reply to: Learning to program #28096
                                      Wheels-Of-FireWheels-Of-Fire
                                      Participant
                                        @grahamdearsley
                                        Forumite Points: 4

                                        <p style=”text-align: justify;”>Still don’t know Python but you are going to find that some of the things you thought were commands  are actually calls into functions or classes that must be included to work.</p>

                                        in reply to: Learning to program #28092
                                        Wheels-Of-FireWheels-Of-Fire
                                        Participant
                                          @grahamdearsley
                                          Forumite Points: 4

                                          Er position X,Y obviously ?

                                          in reply to: Learning to program #28090
                                          Wheels-Of-FireWheels-Of-Fire
                                          Participant
                                            @grahamdearsley
                                            Forumite Points: 4

                                            Speaking of language specifics, Atari BASIC has a simple PLOT X,Y command that will put a filled in 8×8 square (CHR$ number something cant remember which) at position X,X as long as you are in character screen mode. Can’t find anything like it for a C console app.

                                          Viewing 20 posts - 1,341 through 1,360 (of 1,996 total)