- Strength to Increase Rep
- +15
- Strength to Decrease Rep
- -3
- Upvotes Received
- 840
- Posts with Upvotes
- 657
- Upvoting Members
- 293
- Downvotes Received
- 24
- Posts with Downvotes
- 24
- Downvoting Members
- 20
- Interests
- Lisp, language design, OS development, anime, webcomics, gender
Re: Tech fora? Not so much these days, though I still check the [OSDev.org forum](https://forum.osdev.org) from time to time, and am on the Discord for the [Craft Computing YouTube channel](https://www.youtube.com/c/CraftComputing). I am mostly on LGBT+ related Discords lately, and the forum and Discord for the [Whateley Academy](https://whateley.academy) web serial novel series. | |
Re: I would like to add one piece of advice on the topic of tutorials. There are many, many tutorials on Python programming, either as web pages or as YouTube videos; some are great, some are only okay, but most are pretty bad. It can be hard to judge which are … | |
Re: I haven't had the chance to look through this code in detail, but two things immediately strike me: * The use of `<conio.h>`. This is a non-standard library which is specific to certain ancient MS-DOS and Windows compilers, and won't be supported by any modern compiler library. * The declaration … | |
Re: A forum is just a central meeting place, or (in this case) a place where you can talk with others about some topic. More specifically, it is a synonym for "message board". In other words, you are already using the forum. The link Dani gave should help you with this … | |
Re: I would recommend moving away from the older C-style `srand()`/`rand()` combination, and use the C++ [`<random>`](https://cplusplus.com/reference/random/) library, which is both more flexible and gives finer control. While it requires more effort to set up, it would be well worth that effort. #include <iostream> #include <limits> #include <ctime> #include <iomanip> #include … | |
Re: You don't. The algorithm (or rather, the elaborate set of algorithms and heuristics, though most people mistakenly refer to it as just 'the algorithm') is a tightly kept corporate secret (which in any case is so complex that no one individual can understand more than a small part of it), … | |
I've been working on the GUI portion of my [C++ Connect-N game project](https://github.com/Schol-R-LEA/ConnectN), and have gotten it to would could charitably be called a working state. However, the game AI, not to put it to finely, stinks. I was wondering if anyone here has more experience in implementing a minmax … | |
Re: If you don't mind me asking, how is it that you are writing new VB 6.0 code in 2022? I would strongly advise against trying to beat that dead horse any further, if you have any choice in the matter. | |
[Ranged Numeric Types in C++](https://github.com/Schol-R-LEA/Ranged-Numeric-Types-for-CPP) I've started writing a simple template class for automating range checking in specialized numeric types, inspired by the ranged types in languages such as Pascal and Ada. At the moment it is mainly meant for integer types, though I've made it flexible enough that it … | |
Re: Itself, since PHP is in fact a programming language. One for a specific set of uses, but a programming language nonetheless. As for which *other* language it most resembles, that's a bit of a judgement call, really. I would say... well, no, that would be giving you the answer, which … | |
Re: We would need a lot more information than that to be able to help you with it, starting with the code in question and the error you are getting. | |
Re: We'd be happy to help if you had some code to show us, so we could give pointers for it. Solving your homework for you isn't helping. | |
Re: First off, we don't do other people's homework for them. Second, we *don't* do other people's homework for them. And third, ***we don't do other people's homework for them***. Sensing a pattern here yet? No one here will simply hand you a solution on a silver platter. If you show … | |
Re: Several of us have VB6 experience, but for most of us it would be several years since we've used it - VB6 was released in 1998 and support for it was mostly discontinued by 2008. It is extremely inadvisable to write any new code using VB6 in 2022. Also, while … | |
Re: In the future, please post the code into your message (using the Code Block button, `</>`, in the editor window menubar), rather than as a link to a copy on another site. Also, please tell us *what* is failing, in detail. We need to know what you expected the code … | |
Re: > i have posted the code.its a bit bulky because i had to repeat one function four times. i know there is a shorter way to do this but i have not figured out how. One thing you can do is, rather than having separate `final_search`*n* and `newest_list`*n* variables, use … | |
Re: There are two approaches you can take: you can either make `scP1` and `scP2` globals by moving their declarations to the top level outside of the `main()` function or - preferably - pass them as references to `Score()` so that they could be updated. Note that similar issues exist for … | |
Re: Fortunately, the assignment gives a good deal of detail as to how to go about it, and seems focused on how well you understand basic OOP development. From the assignment, you know that: * You'll have a class called `Account` * `Account` objects will have member (instance) variables for the … | |
Re: If I might recommend a bit of an improvement: void ShowCardP1(int cardP1, string cardName[], string p_code[], string type[], string plusMode, string system[]) { cout<< "Product code: " << p_code[cardP1] << " " << endl; cout<< cardName[cardP1] << " " << endl ; cout<< "Type: " << type[cardP1] << " " … | |
Re: Unfortunately, there's really no way to read Python code when the indentation has been lost. I'll try to puzzle out your intentions here, but it isn't straightforward. As it is, I can't even tell if this is all supposed to be one function, or the function followed by some top-level … | |
Re: While it is an extra step, I would recommend converting the date text value to a `System.DateTime` value and perform the operations on that before converting back to text. | |
Re: I can see a number of issues with the code as given. * You define a class `Shapes` but then declare `Circle` as a subclass of `Shape`. The names need to match in order to be valid. * You never `#include` the header `Shapes.h` in the `Circle.h` header. * You … | |
Re: Uhm, 'struggle'? I have no idea what that refers to in this context. OTOH, `void` just means a function doesn't return a value, or conversely, that a pointer doesn't have a type. Mind you, I don't think this code would even compile under most compilers today, or at least would … | |
Re: First off, we don't do other people's homework for them. Second, we *don't* do other people's homework for them. And third, ***we don't do other people's homework for them***. Sensing a pattern here yet? No one here will simply hand you a solution on a silver platter. If you show … | |
Re: [Definitely homework](https://www.coursehero.com/tutors-problems/Computer-Science/39758435-You-have-been-contracted-to-develop-a-prototype-system-for-the/), apparently from University of Technology of Jamaica (which fits with the reference to [Norman Manley Airport](https://en.wikipedia.org/wiki/Norman_Manley_International_Airport), a real airport in Kingston). If that link is anything to go by, the project is meant to be solved in Java. If so, I guess my first question to the OP … | |
Re: If you want it to run in a browser, then yes, you almost certainly want to use JavaScript. While there are other languages which can be used, such as TypeScript or ClojureScript, they all get translated into JavaScript anyway. There are [many video tutorials](https://www.youtube.com/results?search_query=game+programming+in+javascript) on this topic, and [many web … | |
Re: First off, we don't do other people's homework for them. Second, we *don't* do other people's homework for them. And third, ***we don't do other people's homework for them***. Sensing a pattern here yet? No one here will simply hand you a solution on a silver platter. If you show … | |
Re: There is a developer on the [OSDev forum](https://forum.OSDev.org), David Cooper, who managed to do something like this for his OS project, though I am pretty sure he started off cross-developing his toolkit. He created what he describes as a sophisticated suite for editing code in hex, though presumably if you … | |
Re: Pseudo-code **doesn't** work; that's the whole point of it. It is a higher-level description of a problem without the details that would make it a running program. Pseudo-code isn't a specific language - it is just a description of the program in a way that resembles actual code, but omits … | |
| Re: From what I've read, MIPSMARK is intended for checking and grading MIPS assembly language programs. Are you compiling the C code to MIPS assembly, and if you are, with what compiler and compiler invocation? Where is MIPSMARK available from? Do you know of a download site for it, or a … |