1,359 Posted Topics

Member Avatar for divinity02

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. …

Member Avatar for divinity02
0
360
Member Avatar for Asira18

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 …

Member Avatar for Asira18
0
397
Member Avatar for Alveena_1

<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 …

Member Avatar for ddanbe
-2
257
Member Avatar for altjen

> 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 …

Member Avatar for altjen
0
247
Member Avatar for Tcll

> 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 …

Member Avatar for Tcll
0
208
Member Avatar for Dusan_1

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 …

Member Avatar for Schol-R-LEA
0
267
Member Avatar for sankubha

**@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 …

Member Avatar for Schol-R-LEA
0
351
Member Avatar for hefaz

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 …

Member Avatar for hefaz
0
5K
Member Avatar for basit_3

> 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, …

Member Avatar for Schol-R-LEA
0
230
Member Avatar for Litherz

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 …

Member Avatar for Schol-R-LEA
0
115
Member Avatar for Toni_3

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 …

Member Avatar for Slavi
1
204
Member Avatar for Baalla

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 …

Member Avatar for Schol-R-LEA
0
244
Member Avatar for vs88

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 …

Member Avatar for Schol-R-LEA
0
2K
Member Avatar for Lemi

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 …

Member Avatar for Schol-R-LEA
0
122
Member Avatar for Asira18

**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 …

Member Avatar for David W
0
372
Member Avatar for TObannion

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 …

Member Avatar for TObannion
0
261
Member Avatar for Ku Nj
Re: help

**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 …

Member Avatar for Mayukh_1
0
192
Member Avatar for Felipe_1

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 …

Member Avatar for rubberman
0
796
Member Avatar for LONGWAY

**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.

Member Avatar for Schol-R-LEA
0
141
Member Avatar for samyakonline01

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.

Member Avatar for vegaseat
-1
308
Member Avatar for Syed Ammar

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? …

Member Avatar for rubberman
0
233
Member Avatar for Jack_11

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 …

Member Avatar for Schol-R-LEA
0
373
Member Avatar for altjen

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 …

Member Avatar for Mr.M
0
232
Member Avatar for Fon_1

**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? …

Member Avatar for vegaseat
0
135
Member Avatar for london-G

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 …

Member Avatar for Schol-R-LEA
0
188
Member Avatar for basit_3

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` …

Member Avatar for basit_3
0
285
Member Avatar for arguav74

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 …

Member Avatar for Schol-R-LEA
0
1K
Member Avatar for muhammad_86

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, …

Member Avatar for Schol-R-LEA
0
141
Member Avatar for Joseph_13
Member Avatar for D3N9

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.)

Member Avatar for Schol-R-LEA
0
234
Member Avatar for Schol-R-LEA

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 …

1
187
Member Avatar for Aeonix

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 …

Member Avatar for Aeonix
0
23K
Member Avatar for Schol-R-LEA

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, …

Member Avatar for rubberman
4
293
Member Avatar for Al-Haya Noor

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 …

Member Avatar for rubberman
0
183
Member Avatar for Sdam
Member Avatar for gahhon

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 …

Member Avatar for JamesCherrill
0
208
Member Avatar for 04279169

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; …

Member Avatar for startomana
0
211
Member Avatar for CSprogA

**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 …

Member Avatar for Schol-R-LEA
0
9K
Member Avatar for m andrew

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 …

Member Avatar for Hassan_12
0
250
Member Avatar for Krysis

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.

Member Avatar for Schol-R-LEA
0
1K
Member Avatar for nikki_2

**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.**

Member Avatar for Schol-R-LEA
0
132
Member Avatar for vishnus

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 …

Member Avatar for Future Engr.
0
3K
Member Avatar for Kelly_4

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).

Member Avatar for Schol-R-LEA
0
140
Member Avatar for fonzali

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 …

Member Avatar for fonzali
0
569
Member Avatar for zxz

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? …

Member Avatar for zxz
0
3K
Member Avatar for ilovec++

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.

Member Avatar for yoavip
0
566
Member Avatar for Sara_10

*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 …

Member Avatar for Sara_10
0
903
Member Avatar for Thomas_25

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 …

Member Avatar for rubberman
0
2K
Member Avatar for Abetsub71

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 …

Member Avatar for rubberman
0
123
Member Avatar for Bendez Thyna

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 …

Member Avatar for Bendez Thyna
0
324

The End.