1,359 Posted Topics
Re: I think you misunderstood what stultuske was saying. What he means is that then you post to Daniweb,the code section *and only the code section* should be pasted into the message using the Code button, while the actually text of the message should be entered with the normal editing window. … | |
Re: To start with, I recommend that you be more careful about formatting your code; as it is, the indentation is all over the place, and inconsistent as hell. Now, you are free to choose how you [style](https://en.wikipedia.org/wiki/Indent_style) your code, but you definitely *should* apply some style to it, and be … | |
Re: <rant> Why do we even bother answering these idiots when all it does is encourage more idiots to post in their threads with the same garbage? </rant> Sorry, lost my head for a moment. **kiran_8**: Please read the [Daniweb forum rules](https://www.daniweb.com/community/rules). It is clear that you didn't already, as you … | |
Re: > I want to make a simple and working anti virus software in Heuristic method Unfortunately, 'simple' and 'working' don't go together in the field of anti-virus software. A working anti-virus program requires tens if not hundreds of thousands of virus signatures, and requires a comparable number of man-hours to … | |
Re: > basically, what I want to do is add a function name to an outside reference in a safe sys.modules reference without copying the name... Have you considered writing a [decorator](https://www.google.com/?gws_rd=ssl#q=python+decorator)? Perhaps something like so: @register def myfunc(args): x = None return x You could even set it up to … | |
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: **@JamesCherrill**: I am fairly certain the OP as referring to the version numbers for the [Substance LAF](https://java.net/projects/substance/) framework, not Java itself. That having been said, I doubt anyone here knows anything of Substance (pun intended). You might want to, I dunno, read the documentation? RTFM is always the first thing … | |
Re: You'll have to give us a good deal more detail about the problem, I'm afraid. What kind of constant are you trying to use? I assume it is an integer, in which case you probably don't have many options - Turbo Assembler (which is the TASM I assume you mean … | |
Re: > i have to make a game for window pc .simplest 2D game Yes, but why? Is this for a homework assignment, or simply for your own interest in the subject? What are the requirements? What kind of game - a Pac-Man style maze game, a Tetris clone, a side-scroller, … | |
Re: As stultuske aleady said, cross-posting is generally considered poor nettiquete, as it leads to a duplication of effort, and anyone who sees the posts on both groups (and there usually are several who frequent both SO and Daniweb) will get tired of seeing the same posts repeated. Also, as pointed … | |
Re: If you use the Search function of the forums, you ought to find [several threads on this subject](https://www.daniweb.com/search/query/0?q=celsius+to+fahrenheit#gsc.tab=0&gsc.q=celsius%20to%20fahrenheit&gsc.page=1). I recommend [this one](https://www.daniweb.com/software-development/python/threads/474136/converting-celsius-to-fahrenheit-using-a-loop-to-display-the-table#post20705040), but then I am biased. :-) That just leaves you with the loop and the exit condition test. I expect you can figure that part out yourself, though … | |
Re: For the sake of clarification: * NTM - [Non-Deterministic Turing Machine](https://en.wikipedia.org/wiki/Non-deterministic_Turing_machine) * DTM - Deterministic Turing Machine * NP - [Non-deterministic Polynomial complexity](https://en.wikipedia.org/wiki/NP_%28complexity%29), used to describe the [computational complexity](https://en.wikipedia.org/wiki/Computational_complexity_theory) of a problem or (less formally) an algorithm to solve said problem - usually describing its time complexity, though in principle … | |
Re: Essentially, this is an issue of parsing, though one with a fairly limited scope. The usual solution is to build a stack (explictly or implicitly) to represent the order of operations in postfix form. You could then convert said stack to a tree structure quite easily. I would recommend doing … | |
Re: First off, is this a program you have developed yourself, or one provided by the company or some third-party vendor? Ifn the latter case, there probably isn't much we can say - this is a programming forum, not a technical support forum, and it is unlikely that anyone here is … | |
Re: **mridul.ahuja**: You, and the OP, need to be made aware that `getch()` (and the rest of `conio.h`) is *not* a standard C++ function, but rather is one specific to Turbo C++; some later compilers and IDEs have equivalents, but that doesn't change the basic fact that it will only work … | |
Re: You need to initalize the all loop indices to zero, not one; the index of the first element of an array in C++ (and most other languages that don't support defined array boundaries - a rare feature found mainly in [Ada](https://en.wikipedia.org/wiki/Ada_%28programming_language%29), the [Wirth languages](https://en.wikipedia.org/wiki/Niklaus_Wirth), and some [Lisps](https://en.wikipedia.org/wiki/Lisp_%28programming_language%29) because it has … | |
Re: **dbfud1988**: I know you meant well, but please do not just hand out code like this. Doing so goes against the 'no cheating' policy here at DaniWeb. We can assist and give advice, but we try to avoid simply answering homework assignments for students, as it interferes with the learning … | |
Re: def puntofijo(po,TOL, N): vectorx = zeros (N, Float64) vectory = zeros (N, Float64) i = 1 while i<=N : vectorx[i-1] = po Evaluar.dicc_seguro['x']=po fp = eval(Evaluar.funcion, {"__builtins__":None}, Evaluar.dicc_seguro) vectory[i-1]=fp if fabs(po-fp): print "La raiz buscada es: ",po, "con", i-1, "iteraciones" sys.exit() i = i+1 po = fp quit() [vectorx,vectory] I … | |
Re: **basit_3**: While it is admirable that you want to help the OP out with the problem, it is generally not advisable to simply give the working code out willy-nilly, especially without any explanation. DaniWeb policy generally to give advice rather than solving problems outright. | |
Re: Given that this thread dates from a month ago, and that there seemed to be a definite time limit approaching when that post was written, I doubt that the OP is still having that particular issue at this point. | |
Re: First, can you give us more detail as to what is going wrong? You say that it is running (which means that there are no syntax errors in the code - if there were, it would not have compiled), but that the results are incorrect, but *how* are they incorrect? … | |
Re: To engage in a bit a thread necromancy, I should mention that Lisp is undergoing one of the periodic revivals it experiences, where people outside of the original Lisp community rediscover the language and try (generally with little success) to make it into something more mainstream. Logo, Dylan and Python … | |
Re: These really aren't things an individual programmer - no matter how skilled - can accomplish on their own. While there are existing natural language, text-to-speech, and speech-to-text engines available, most of them are commercial libraries which have been developed over years or even decades by large teams of developers. You … | |
Re: **Fon_1**: Just to clarify the matter, are you looking for *any* C compiler, or specifically looking for an installation of the Dev-C++ Integrated Development Environment (which is not itself a compiler - the compiler it uses is the aforementioned GCC) and all of the additional libraries that go with it? … | |
Re: Actually, 'fault tolerance' has more to do with gracefully recovering from exceptional situations than with avoiding them entirely. Setting up exception blocks around fault-sensitive code (e.g., pretty much all I/O) is a good starting point, but not sufficient in and of itself; you have to know how to handle the … | |
Re: While I cannot be certain, it is likely due to a lack of scoping on the `string` declaration. The C++ standard `string` class resides in the `std` namespace, and you would need to scope the declaration accordingly: std::string number; Alternately, if you expect to have a large number of `string` … | |
Re: First off, do not commit thread necromancy; this thread had been dead for four years, until you ressurected it. If you have a new question, start a new thread. Second, please avoid textspeak or other types of online abbreviations in this forum. Write clear, concise and grammatically correct English if … | |
Re: First off, is this an open-source project, or one where the source is distributed for some other purpose? If you are distributing the program solely as binaries, then there is little reason to do this; editing compiled object code, even with a hex editor or a decompiler, is extremely difficult, … | |
Re: What happens when you try to run it? (BTW, there seems to have been some kind of problem when you pasted the code, but don't worry, it isn't hard to see to tell what the code actually is. These things happen.) | |
When posting any request for help with an assembly language problem, we ask that you provide some crucial information: * The operating system (Windows, Linux, MacOS, etc.) the program will be running under, including the version, * The assembler you are using, including the version, * the bit width being … | |
Re: Actually, this is what I believe is now called 'C++ for .Net Applications', what used to be called 'Managed C++' (or as I always preferred, 'Mangled C++'). It is a dialect created by Microsoft and specific to their systems, which runs on the .Net CLR. It is really a new … | |
In a post earlier today, I asserted that Intel wanted to get rid of the x86 platform. It occurred to me that a lot of folks may not understand this claim, but there are good reasons for it. They have made at least three attempts at doing so, in fact, … | |
Re: Unfortunately, Objective-C - a higher level language comparable to C++, but more directly influenced by Smalltalk, and used primarily on MacOS and iOS systems - is actually quite a different thing from Kiel Embedded-C (which is a C dialect specifically intended for microcontroller programming architecture), which is what I believe … | |
Re: What kind of help do you need? | |
Re: OK, rather than getting caught up in the details of the specific matter, let's talk basic principles for a bit. The main purpose of inheritance is to allow common elements of two or more classes to be defined in a way that the child classes can share what is defined … | |
Re: For the sake of readability, let's start by separating the class declarations and implementations from the main program, and get the whole into some semblance of a consistent indentation: **matrix-list.h** #ifndef MATRIX_LIST_H #define MATRIX_LIST_H 1 class Node { private: int row; // different data type for other apps int column; … | |
Re: **CSprogA**: While I would have worded it rather differently, I have to agree with Hassan_12 on this. You would have to tell us what help you need, and ask [meaningful questions](http://catb.org/~esr/faqs/smart-questions.html) about how you can solve the problems you are having, before we can have any hope of helping you … | |
Re: No, what you *need* is to read the [Daniweb Forum Rules](https://www.daniweb.com/community/rules), specifically this one: > **Do** provide evidence of having done some work yourself if posting questions from school or work assignments We are perfectly willing to help you, if you [ask a meaningful question](http://catb.org/~esr/faqs/smart-questions.html), and will do our best … | |
Re: If you check the dates, you would see that this thread is four years old, and that Krysis has not been on Daniweb since then. Please avoid thread necromancy in the future, thank you. | |
Re: **goold**: Hijacking a thread with an unrelated question is rude. Hijacking a thread to make the exact same mistake that the OP was criticized for is simply *stupid*. **DON'T BE STUPID.** | |
Re: Well, the list of suggestions linked to above is still valid, and while some are a bit small for what you want, plenty of those examples would make a suitable semester project. Are there any requirements or limitations on the projects or types of development tools that you need to … | |
Re: I think you have the wrong forum; this one is dedicated to helping programmers learn how to improve their craft, not a hiring forum. Try the 'Jobs & Resumes' message board under 'Business Exchange' in the top menu, or a hiring site such as [freelancer.com](http://freelancer.com). | |
Re: I am guessing that you used the built-in `float` type for this, but given that you are dealing with currency, I would recommend using the [decimal module](https://docs.python.org/3/library/decimal.html) for representing the monetary value instead, to get the best control over the significant decimal places, and applying [locale.currency()](https://docs.python.org/3/library/locale.html?highlight=currency#locale.currency) to format the value … | |
Re: Before I get to my answers, let me ask you a question: what is your purpose in accessing `dev/urandom`? Is this for a class assignment, or part of a larger project? Is there a specific reason why the usual `srand()`/`rand()` functions aren't sufficient? What are your goals in doing this? … | |
Re: Please, don't dig up old threads by posting unrelated questions in them - start a new thread with a title appropriate to you question. Also, you're 'explanation' of the problem is opaque at best. | |
Re: *I've ended up pulling this boilerplate reply out twice in 24 hours, sheesh* 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 … | |
Re: IMAO, the best approach to sorting a linked list is not to let it get out of order in the first place. While inserting the nodes in order is slower than pushing them to the head of the list and then sorting, it has the affect of amortizing the sorting … | |
Re: No one here will do your homework for you. Please demonstrate that you have at least tried to solve the problem first prior to posting here. <rant> Seriously? This is beyond trivial. If you had been paying attention in class *at all*, or even opened your textbook just once, you … | |
Re: From what the OP is saying, I expect what they want is to replace string id[MAX_SIZE]; double cmarks[MAX_SIZE]; double fmarks[MAX_SIZE]; with something like this: struct student_grade { string id; double cmarks; double fmarks; }; student_grade students[MAX_SIZE]; This is sensible; not only does it structure the data better, it makes it … |
The End.