1,359 Posted Topics
Re: Please don't resurrect long-dead threads like you just did. It is very unlikely that the people you are replying to are still on Daniweb after 8 to 9 years. As for the answer to your question, we will need more information. What version of MASM (or any other compatible assembler) … | |
Re: There was a time when mad skillz was sufficient. In the 1970s, just claiming to be an assembly programmer would get you a high-paying job; in the mid-1980s, a C programmer with any experience might as well own the Philosopher's Stone; in 1995, you could walk into a company with … | |
Re: First off, please do not post new requests into old threads like this. This thread was originally posted more than half a decade ago; some of the details are now out of data (though fortunately the jist of it hasn't changed), and if nothing else it is problematic if you … | |
Re: The listings are by database engine, not language. Which SQL RDBMS are you using (SQL is a standard, not a specific DB engine), and which version? I am guessing MS SQL Server, but I would not want to assume. | |
Re: In the future, please check the dates of a thread before replying. | |
Re: The truth of the matter is, you can write slow code in any language, and it is generally a lot easier to write inefficient code than efficient code. The main advantage of C - and high-level languages in general - is that it is easier to write fast code in … | |
Re: What [i]do[/i] you know about C++? Start with that. What did your professor and/or textbook cover about C++? Did you get any instruction on using the Dev-C++ editor? What [i]don't[/i] you know about writing the program? Do you know how to: [list] [*] Declare a main() function? [*] #include a … | |
Re: That's correct. Generally speaking, while it would have been a lot easier for the programmer had they allowed register offsets, it would have also made for a more complicated hardware. Given that one of the original goals of MIPS was that it would *not* be designed for assembly programmers (it … | |
Re: I would recommend two changes. First, move the input loop to before the output loop, such that you collect all of the lines before you start outputting the randomly selected lines. Second, after displaying a line, remove that given line from the [icode]vector[/icode] using the single argument version of the … | |
Re: Yes. The `void` part only refers to the return value of the function, not the actual computation. The function runs; it simply doesn't have a return value. BTW, strictly speaking, it should be `int main()` not `void main()`. The `main()` function does in fact return a value to the operating … | |
Re: Actually, if the OP is using 5.7.1, then presumably their talking about the [Orwell fork](http://sourceforge.net/projects/orwelldevcpp/), which *is* maintained and up to date (with gcc 4.8.1). | |
![]() | Re: I agree with JOSheaIV that this seems somewhat hinky. However, if you are in fact sincere, you would find a better forum for this matter at the [OS-Dev forum](http://forum.osdev.org), which covers issues related to this in greater detail. However, you do not - I repeat, **DO NOT** - want to … |
Re: **@rproffitt** and **@rubberman**: I am assuming the OP is writing this for an assembly language course, in which case the C code is simply given as a guide for hand-coding the assembly program. **@Kunyepa**: How is the code misbehaving? Can you post the errors you are getting? It would help … | |
Re: Actually, in India and Pakistan, it is even worse that that: last I heard (as recently as last summer), the national university systems continue to *mandate* the use of Turbo C++ 1.5 as the standard C/C++ compiler, and professors are forbidden to use anything else for introductory C++ courses (whether … | |
Re: Have you checked the C:\mypath\Release\ path? | |
Re: [QUOTE=ranjini.jayam;1583249]Still date i dont have an any source code or algorithm for extract the text if any [/QUOTE] Correct me if I am wrong, but the purpose of a thesis paper, in most cases, is to present a [i]novel[/i] solution to a problem such as this. Unless your paper is … | |
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: In the absence of further information, should we assume you spoke to the professor and all is right in the world, or did you still need help, and if the latter, what problems are you experiencing? | |
Re: I can see how the first one could be solved (using an if() statement with an empty block as it's body), but the problem itself is pointless - no one would do such a thing for any practical purpose. The only point I can see for this question is either … | |
Re: > DaniWeb receives about one thirtieth of the traffic we received three years ago and only getting worse. Yes, but I gather that this has been true about programming fora across the board, for reasons completely unrelated to DaniWeb or its design (e.g., word has gotten out to college students … | |
Re: You might find the [Object File](http://wiki.osdev.org/Object_Files) page of the OS Dev wiki helpful here. To sum up, while it is possible to generate a pure executable image from code under some circumstances, it is extremely unusual to do so. No current OS would normally allow that to be done, especially … | |
Re: [FAQ: Clearing the console](http://www.cplusplus.com/articles/4z18T05o/) The linked article goes over most of the common (and a few less common) approaches to clearing the console screen, and explains the strengths and (mostly) the weaknesses of each. It specifically explains why there is no general, portable solution to the problem (without using a … | |
Re: A better place to start might be the [OSDev wiki](http://wiki.osdev.org/Main_Page), especially the Introduction page (particularly the section '[What Is An Operating System?](http://wiki.osdev.org/Introduction#What_is_an_Operating_System.3F)'), [Beginner's Mistakes](http://wiki.osdev.org/Beginner_Mistakes), and [Required Knowledge](http://wiki.osdev.org/Required_Knowledge). The textbook can come after you decide whether or not you really want to tackle such a major project; chances are, after you … | |
Re: What Labdabeta said is correct, but a bit skimpy, so I'll give you a bit more detail. For the first five to ten years of programmable electronic computers, programming was done in machine code, though even that can be a bit of an overstatement - several of the first generation … | |
Re: **natanhailu**: I realize that you are a newcomer here, but there are some pieces of netiquette you should be made aware of. First off, you should not post a new question in another poster's existing thread unless the question has some bearing on what is already being discussed. Doing that … | |
Re: I think a more basic explanation may be called for... Like most languages still in use, C++ is still evolving over time, and the official standards for the language is updated by the International Standards Organization (ISO) and the American National Standards Institute (ANSI) at irregular intervals as the development … | |
Re: **nathan.pavlovsky**: I know that you have the explanation, but the question itself may indicate a possible problem. I say this because it used to be common for compiler packages to cross-include headers in order to support older code, but most newer compilers' libraries have eliminated most or even all of … | |
Re: > Thnx for your replies....actually i am B.TECH in computer science. I assume that you mean that you have actually graduated with said degree, rather than that you are currently a student. Unfortunately, that still tells us little about your programming ability, as quite a few people graduate with Bachelor's, … | |
Re: Part of the practical upshot of what vijayan121 is saying here is that you should always pass stream objects (or any other non-copyable objects) by explicit reference (that is, using the reference operator, `&`) rather than by a pointer reference or by value. Actually, this is [a gross oversimplification](http://tvtropes.org/pmwiki/pmwiki.php/Main/LaymansTerms), but … | |
Re: As an aside, the wording here in the original post caught my eye: > i have write and erased many code,right now whats left is this... I was wonder, do you use any kind of source control? Even in small projects, revision control is very useful, if only because it … | |
Re: Do a search on the [Travelling Salesman Problem](https://duckduckgo.com/?q=travelling+salesman+problem&t=ffnt&ia=about), for details as to the algorithmic complexity of the problem and various solutions available for it, but keep in mind that your professor **will** - not might, but definitely will - do the same search as well. Copying the code from any … | |
Re: [Check the stickies before posting](https://www.daniweb.com/software-development/cpp/threads/70096/c-books). As for which ones are best, you'd probably at least two different answers from every C++ programmer out there. | |
Re: OK, let's start off by clearing up a misconception you seem to have. HTML and CSS are not programming languages at all; HTML is a markup language (that is to say, it is used to define the structure of a document), while CSS is a styling language (it is used … | |
Re: As NathanOliver said, the Borland `graphics.h` header, and the library it declares, are not standard C++; indeed, there is no standard graphics package for C++. The Turbo C++ package, furthermore, was specific to MS-DOS, and while programs written for it would work under Windows in the command shell prior to … | |
Re: I am fairly certain that Vegaseat was poking fun at the 'Is Lisp a Legacy Language?' thread when he posted this. Or maybe at the whole concept of 'legacy languages' in the first place, especially when questions about *new* languages like Go also end up getting posted here for lack … | |
Re: You might have some more luck if you try searching the [OSDev forums](http://forum.osdev.org/), or read their [wiki](http://wiki.osdev.org/Expanded_Main_Page). There aren't many os-devers on Daniweb AFAICT, and I expect that this question (or ones like it) has been addressed there in the past. You absolutely should read the [Introduction](http://wiki.osdev.org/Introduction), [Required Knowledge](http://wiki.osdev.org/Required_Knowledge), [Beginner's … | |
Re: Crazy for wanting to write an operating system? No, I wouldn't say so. Overly ambitious perhaps, but not crazy. There are dozens if not hundreds of OS developers (or would-be OS developers) around, even if you discount those on established projects like Linux and FreeBSD. I've been puttering around with … | |
Re: Asking for help in an illegal activity is a violation of [Daniweb forum rules](https://www.daniweb.com/community/rules), specifically: > Do not ask for help to pursue any illegal activity including, but not limited to, hacking and spamming | |
Re: As Gribouilis said, there is only so much we can suggest without doing the work for you. As for data structures, there are three options I can recommend, in order from least preferred to most: * Use a list consisting of lists of exponent:coefficient pairs (you want the exponent first … | |
Re: **Mayukh_1**: Given that the OP has not been on Daniweb for two months, I think we can call this a dead thread. | |
Re: > how can i make a calculator using function and procedure.. With all due respect, this is far too broad a question for us to try to answer, even if we were inclined to do the work for you in the first place - which we are not. NathanOliver's answer … | |
Re: */me covers ears from the shouting* As Moschops said, it depends on the operating system, on the C compiler and libraries you are using, and in some cases, the specific type of console you are working with. I'm going to guess that you are working with a DOS console running … | |
Re: As JWenting says, the research is yours to do. We can only give advice. That having been said, I would start by going over the languages you are already familiar with, and see what relevant libraries are available for each. In most cases, the frameworks in question should work with … | |
Re: You have the right general idea,except that you want to look for a category of letter forms, not just a single letter; also, the set of letter forms which have a descender (`'gjpqy'`) is constant, so there's no need to pass a list of them as a function argument. | |
Re: If you need one other suggestion which would cover both computer science and software engineering, and involves an actual open research problem, you might look into the question of compiling and linking generics (such as C++ templates) in an object format. It is a difficult issue because instantiating a generic … | |
Re: Given that you never actually call `create_widgets()`, I would expect that it wouldn't display the button in question at all. Similarly, as it is now, it is set up to read from the serial port without regard to the button state (if the button were created in the first place). … | |
Re: > Why String^ to just a string?? change that. **@ritchieking**: Presumably, basit_3 is working in C++/CLR (C++ for .Net, formerly called Managed C++), which despite what Microsoft says is in some ways a different language than Standard C++. The `String` class is a .NET Framework class, and the `^` operator … | |
Re: >I keep getting an error for "password was not declared in this scope" in main. As tinstaafl pointed out already, that is because `password` isn't declared in `main()`, and in any case you are using a C-string (a zero-delimited character array, as used in the C language, the predecessor of … | |
Re: Just to clarify what Slavi said, you only need to have this line in the actual code: salary = salary - (salary * (25.0 / 100.0)); The other lines just describe the computation. Note also that I changed the numbers to have decimal points followed by a zero; this is … | |
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 … |
The End.