@grahamdearsley
Forum Replies Created
-
AuthorPosts
-
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.
Dont remember seeing the “Windows is a service” bit before.
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 ?
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.
November 15, 2018 at 7:33 pm in reply to: RedHat perhaps commits suicide by letting IBM buy it #28312IBM 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.
Crossword time.
Arrange these words “out, sell” into an expression also meaning capitulation, cave in or surrender.
Clue: same as Brexit deal.
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.
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.
All the best for good news
Oops posted that twice. The second one is correct ?
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.
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.
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).
Ah go play with that then
Just going to point out that a DLL is a dynamicly linked library. It is pulled in at run time.
November 8, 2018 at 11:08 pm in reply to: Read First if flying on a Boeing 737 Max–or maybe not! #28108Ah yes Bob but those things were largely fly by cable. Up Up and away in my beautiful kite !
And i still dont want the HTML formatting posts !
<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>
Er position X,Y obviously ?
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.
-
AuthorPosts
