1,359 Posted Topics

Member Avatar for Aizaz Khan

**fdis**: Help you with what, learning not to hijack three-month-old threads without even asking a question? Gladly. If, on the other hand, you want help with a programming problem, you will need to start a new thread of your own, explain what you need help with in clear and standard …

Member Avatar for Schol-R-LEA
-2
156
Member Avatar for iqra aslam

It would be impossible to say without more information, as the term [Mealy Machine](https://en.wikipedia.org/wiki/Mealy_machine) refers to a *class* of [Finite State Automata](https://en.wikipedia.org/wiki/Finite-state_machine), not a specific FSA. You would have to know the state transitions for the specific machine in order to determine what the output would be.

Member Avatar for Schol-R-LEA
0
94
Member Avatar for boxes2

**boxes2:** You should be made aware that this message board doesn't not work like IM, IRC, or Twitter. Repeatedly posting the same message over and over again is counter-productive, as there is often a lag of a day or two before you get a response. Also, messages are not limited …

Member Avatar for iqra aslam
-2
3K
Member Avatar for chophouse

It shouldn't be too much for a lambda expression, so long as you recall a) that you can use a boolean expression such as `in` in a regular statement, and b) the `string` library includes a handy set of constant strings with the sets of letters, digits, and whitespace. All …

Member Avatar for Gribouillis
0
342
Member Avatar for Nikolas9896

I the absence of other information, I would recommend trying the `-I` option with the path to the header files in question. g++ -Ipath\to\include main.cpp program1.cpp -o program1.exe However, if they are in the path already that shouldn't be necessary, so there may be more to this than that.

Member Avatar for Nikolas9896
0
370
Member Avatar for Reshiram27

I see. That's an unfortunately common problem, and frankly, the best solution is to walk out of the course, making sure the instructor knows why you are getting out. You aren't going to learn anything useful in it if the professor insists on using obsolete technology. However, it is disgusting …

Member Avatar for jwenting
0
633
Member Avatar for red11

Before we begin, let us make on thing clear: we won't do the work for you. Period. We are here to help you learn, not help you get a good grade you didn't earn. We will give advice, and help you solve problems, but we will not help you cheat. …

Member Avatar for Hiroshe
0
611
Member Avatar for coxxie

What seems to be happening here is that you are getting a conflict between two variables named [icode]coeff[/icode]: one is an instance variable of the class, which is an array of [ICODE]int[/ICODE], the other is an argument of the method, which is an [ICODE]int[/ICODE]. Because of the scoping rules, the …

Member Avatar for NathanOliver
0
3K
Member Avatar for MasterHacker110

If you don't mind me asking, why is it you can't (or won't) shift to a different DBMS? Access itself **is** a SQL RDBMS, if a very limited one; it should not be difficult to port the data, at the very least, over to MS SQL, and relatively easy to …

Member Avatar for Schol-R-LEA
0
615
Member Avatar for new2code

That code will in fact work, but it isn't typical C idiom, and isn't quite what you seem to have in mind. Basically, what you are doing with this is evaluating a boolean value and assigning the result to the variable `letter`. It does not assign the *code* to the …

Member Avatar for David W
0
377
Member Avatar for can-mohan

No, it isn't possible in C (it can be done in C++, using operator overloading, but it would require you to write the overloaded operator function). The solution is to write a function that acts similarly, by walking through the list a fixed number of nodes.

Member Avatar for Schol-R-LEA
0
232
Member Avatar for doreen.lata.14

OK, and what do you have for it so far? Did you have any questions about it specifically?

Member Avatar for Saboor880
0
207
Member Avatar for can-mohan

Does it have to be a linked list? There are several options, really, but we'd need to know what you're goal is and what the constraints on the design are. If it must be a linked list, the simplest solution is to have an ordered list of ordered lists. You …

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

[This](http://msdn.microsoft.com/en-us/library/windows/desktop/ms682088%28v=vs.85%29.aspx) doc page may prove useful to you. > By the way does it have to say void in the brackets on int main. No. In fact, in C++ it *shouldn't* have `void` there. > And then for every line I want to color I Put SetConsoleTextAttribute ( h, FOREGROUND_RED …

Member Avatar for Kris_3
0
182
Member Avatar for Saboor880

> I'm not sure why the compiler would work like that unless you have a really outdated/beta version. This is a distinct possibility, actually. The original Bloodshed Dev-C++ hasn't been updated since 2005; for a current development branch, the OP should look to the [Orwell](http://sourceforge.net/projects/orwelldevcpp/) fork.

Member Avatar for Schol-R-LEA
0
172
Member Avatar for rela

Some further questions: * What operating system and toolchain are you writing this for (e.g., Windows and Visual Studio, Linux and GCC, MacOS and xCode. etc.)? * Is this coursework for a class (I assume not, but I figured it is worth asking), a thesis or research project, or a …

Member Avatar for NathanOliver
0
193
Member Avatar for Sinz_1

A few things to note before proceeding: * In modern C++, the headers for the standard library eliminate the `'.h'` extension, and the legacy C headers all begin with the letter 'c'. So the headers should now be `<cstdio>` and `<cstdlib>`. * The `<conio.h>` is not a standard header at …

Member Avatar for Schol-R-LEA
0
228
Member Avatar for maniagod

Aside from the question of whether we will give you code for this outright (we won't), we would need to know what type of computer this is for, what operating system it runs, and what assembler you need to use. Every assembly language is different, and different assemblers for the …

Member Avatar for Hiroshe
0
679
Member Avatar for george.iasthai

The main thing that is happening is that you need to advance the coordinates as you write to them. If you are always writing to (0,0), you'll constantly overwrite what you you had previously put there. I would add that if you do it this way, you'll need to track …

Member Avatar for Schol-R-LEA
0
9K
Member Avatar for nathan.pavlovsky

Unfortunately, yes, it is. [This post](http://forums.devshed.com/programming/514904-simple-calculator-post2001351.html#post2001351) should help explain why. The solution is to compile the source files in such a way that they can be linked into a single program. How you would do this is going to depend on the compiler and linker (or in many cases, the …

Member Avatar for nathan.pavlovsky
0
470
Member Avatar for Ghost0s

I doubt anyone here could encapsulate a whole bachelor's degree program into a single post, or even an extended thread (though mike_2000_17 might be able to manage it :-) ) The best suggestion I can make is to look at Open Courses offered by some universities, most notably [MIT](http://ocw.mit.edu/index.htm). They …

Member Avatar for Taywin
0
259
Member Avatar for nibiruisaplanet

While I would not say you *need* to know C++ to be a successful programmer, you will not regret learning it, if only because it would give you a better idea of what the Java JVM and similar interpreters are actually doing for you. It is indeed a powerful language, …

Member Avatar for melissad
0
300
Member Avatar for mrupload

First off, no one here is going to download a ZIP file off of an unfamiliar site, sight unseen. Even if *you* didn't put a virus in the archive, there are too many ways one could have gotten into it. Please post your code here, using the CODE button, or …

Member Avatar for Schol-R-LEA
0
354
Member Avatar for sami9356

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
245
Member Avatar for dendenny01

There are a number of issues with this code, but the main one is that you are trying to write out an integer with a DOS call that is for writing strings. You need to convert the value of the result to an ASCII string in order to display it …

Member Avatar for DeanMSands3
0
573
Member Avatar for cambalinho

If I am reading the docs right, the POV field represents the hat control, if present. The U, V, and R represent additional axes for the joystick, if the joystick has them (the R does double duty as representing a rudder pedal, if there is one). For example, the U …

Member Avatar for cambalinho
0
138
Member Avatar for yaya1234
Re: help

Could you tell us what system this assembly code is for? Unlike high-level languages, every type of computer has it's own specific assembly language, so we would have to know what it is for before we could answer the question. I know this isn't assembly for x86 (that is to …

Member Avatar for yaya1234
0
147
Member Avatar for Moaid

What exactly happened when you tried to use them? Can you explain what it is you are trying to accomplish, and why? How long (or short) a delay do you need, and what values did you pass to the functions?

Member Avatar for Schol-R-LEA
0
58
Member Avatar for amin_1

Depending on the version of Windows you are using, this most likely isn't going to be possible. Windows Vista and later do not support 16-bit legacy code except through virtualization or emulation. Since the Turbo C compiler is for MS-DOS (the predecessor of Windows), and the second may be for …

Member Avatar for Schol-R-LEA
-1
1K
Member Avatar for MrJUBU

As Hiroshe said, this isn't anywhere near enough information to start helping you. You'll need to not only explain the assignment, but also show us what you have tried to do already to solve it. Do not expect us to hand you a solution out of thin air, either. Daniweb …

Member Avatar for MrJUBU
0
99
Member Avatar for covert

Ah, OK, that's important information we will need in order to give an answer; however, this forum is specific to the C++ language, not FORTRAN, which would be discussed in the 'Legacy Languages' forum. Hopefully, one of the moderators will move this over to that message board sometime soon.

Member Avatar for Schol-R-LEA
0
148
Member Avatar for nhrnjic6

OK, the answer depends on just what it is you need help with, separating your classes, or managing the project. The second would depend on your development environment, but first part is going to be the same in pretty much all cases. First, create a new file for the class …

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

**note:** This was also posted to the [comp.lang.scheme](https://groups.google.com/forum/#!forum/comp.lang.scheme) earlier today. I normally wouldn't cross-post, but after I noticed the extremely low traffic on the newsgroup, I decided to try a more active, if less specialized, forum. As part of a larger project, I am writing a macro that defines a …

Member Avatar for Schol-R-LEA
0
320
Member Avatar for Saranya_2

I would be amazed if anything written in this millenium that wasn't specifically written in Turbo C would be compatible with TC. It is an MS-DOS compiler that is more than 25 years old, and is not compatible with *anything*, including the last three versions of Windows. It would be …

Member Avatar for rubberman
0
115
Member Avatar for Varunkrishna
Member Avatar for Yahia Farghaly

I doubt that MFC would be a wise choice. For better or for worse, it has largely been abandoned by Microsoft in favor of .NET, and while it is unlikely to be phased out entirely, it is not generally used in new applications. Was there a specific reason you were …

Member Avatar for Moschops
0
746
Member Avatar for boxes2

**boxes2:** Please read the [Forum Rules](http://www.daniweb.com/community/rules) and follow the required rules; in particular, be aware that we are not going to do your work for you, and that if you are going to ask for help, you need to demonstrate that you've made a good-faith effort to solve the issue …

Member Avatar for Schol-R-LEA
0
134
Member Avatar for jnneson

While it is hard to give general advice on this matter - different languages appeal to different programmers - as a rule I recommend learning some HTML markup first, before going into an actual programming language. This will give you some sense of the general structure of a program, but …

Member Avatar for AleMonteiro
0
160
Member Avatar for Vandithar

While I have to agree with the others that you would be better off using a newer IDE rather than Turbo C++, I understand that you might not have a choice in the matter. Is this for a particular class that requires Turbo C++, or are you using it for …

Member Avatar for maha harshini
0
407
Member Avatar for Jack_9

A lot of the answer to this is a matter of perspective, to be honest. In the end, all programs come down to machine code, and assembly language is a direct analog to machine code (mostly). However, that's not far different from saying that all matter comes down to electrons, …

Member Avatar for AceStryker
0
207
Member Avatar for silvercats

At the risk of some minor thread necromancy, I would also mention that one of principles of RISC is that all (or almost all) of the instructions be simple enough to implement in hardware in a straight-forward manner, obviating the need for microcode entirely or nearly so. While this isn't …

Member Avatar for Schol-R-LEA
0
426
Member Avatar for jalferez1

OK, while Ciprian 2 says is broadly correct, the post overlooks an important first step: lexical analysis, the process of identifying lexemes (also called tokens) in the input stream. While Ciprian2 mentions tokenizing, it gets handwaved in the post, which isn't really fair; lexing is a fairly involved subject by …

Member Avatar for David W
0
2K
Member Avatar for silvercats

First off, you have to recall that assembly language is not the same as the machine code; rather, it is a human-readable representation of the machine code, which is actually a series of electrical impulses inside the CPU. Assembly language is *almost* a one to one analog to the machine …

Member Avatar for mathematician
0
169
Member Avatar for edogg23

Assuming you are taking the approach you have started with, I would recommend defining a functiont that seeks for the last example of a substring in a string: def findLast(s, target): prev = 0 pos = s.find(target, prev) while pos > -1: prev = pos pos = s.find(target, prev + …

Member Avatar for edogg23
0
376
Member Avatar for Za3mi

Unfortunately, the answer depends on information you haven't given us yet, namely, the operating system you are using (Windows, Linux, MacOS, etc), and if it is Windows, if you are using the older DOS mode or not. The specific assembler also is important, as just how you handle some aspects …

Member Avatar for Za3mi
0
2K
Member Avatar for john123doe

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 EnergeticJet
0
538
Member Avatar for rizwan anjum

In OOP terminology, polymorphism is the ability for sub-classes to extend or even change the behavior they inherit from their parent classes. For example, if you have a class Animal, which has an `abstract` method named `speak()`: public abstract class Animal { public abstract void speak(); } Then you can …

Member Avatar for Loosipher
0
169
Member Avatar for Milton Neal

You should be able to overload the function such that it will use one with a constant function and another with a non-`const` function. First, let's simplify the existing functions a bit and make them more modern: // these two utility functions should be private and inline, // but I'll …

Member Avatar for Milton Neal
0
320
Member Avatar for uday.raj.73345

> what is micro in c programming. I believe the term you are going for is *macro*, not micro. A macro is a piece of code that gets replaced by another piece of code at compile time, before the compilation process proper begins. This is called *macro expansion*, and in …

Member Avatar for Schol-R-LEA
0
99
Member Avatar for lena1990

That sounds like either it got corrupted in the download, or else you are opening the tarball without extracting it. What is the name of the exact file you are opening? The main source file should be in the subdirectory 'src/' and be named 'ekiga.cpp'. If that *is* the file …

Member Avatar for lena1990
0
315

The End.