1,359 Posted Topics

Member Avatar for Prudence_1

I believe this would be more readable as: # class description SemiDiode +ForwardV {get; set; }: Double +ReverseV (get; set; }: Double +BreakdownV {get, set; }: Double +SemiDiode() # default c'tor +SemiDiode(forwardV: Double, reverseV: Double, breakdownV: Double) +ToString(): String # class description LaserLED -wavelength: Int32 -color: String +Wavelength {get; set; …

Member Avatar for Schol-R-LEA
0
999
Member Avatar for Lovely Ann

Why yes, yes I can. However, this sounds an awful lot like a homework assignment or, more likely, a test question.

Member Avatar for Dani
0
38
Member Avatar for DUNCAN_4

It seems like a reasonably straightforward homework assignment. What are you stuck on?

Member Avatar for Schol-R-LEA
0
106
Member Avatar for joalanemakaka

Even if we were willing to help you get caught cheating by providing you the code for this in a public, easily searched forum, you haven't told us nearly enough about the specifics of the assignment. Which version of VB are we talking about (since you tagged both VB.net and …

Member Avatar for Schol-R-LEA
0
67
Member Avatar for Juliana_2

As a side note: if you have any choice in the matter, *never* use `void main()` in C, or especially in C++. Always use `int main(int argc, char argv[])`, or at least `int main()`. The `void main()` form is a non-standard extension specific to some older, non-standard C compilers, most …

Member Avatar for Schol-R-LEA
0
124
Member Avatar for Vandu_1

Dumping an assignment to a post without at least saying that is what you are doing isn't the most polite way to start a conversation, especially if you don't show any of your own effort to solve the problem. It also isn't the safest approach, since plenty of professors regularly …

Member Avatar for Schol-R-LEA
1
55
Member Avatar for teju_2

Dumping an assignment to a post without at least saying that is what you are doing isn't the most polite way to start a conversation, especially if you don't show any of your own effort to solve the problem. It also isn't the safest approach, since plenty of professors regularly …

Member Avatar for Schol-R-LEA
0
54
Member Avatar for biityy34

If you don't mind me asking, why did you need to translate this particular piece of code? Keep in mind that, if this is an assignment, we can only give advice, not do the problem for you. Just to make sure we're all on the same page, the code section …

Member Avatar for biityy34
0
209
Member Avatar for angxlx

Try declaring a `boolean` variable initialized to `true`, and use that instead of `true` in the `while()` condition. Then, at the end of the loop, add a call to `reader.NextChar()`, then use a comparison against `'y'` to set the `boolean`'s value.

Member Avatar for JamesCherrill
0
106
Member Avatar for Ahmed_191

1. Please format your code by indenting each line by four characters. 2. What is your question?

Member Avatar for Schol-R-LEA
0
35
Member Avatar for ______-----

This is basically a variation on Conway's Game of Life, which is a pretty well-known cellular automata ruleset and a common student problem. As RProffitt said, the post as it is isn't formatted in a way which help us to help you. So, what have you tried so far?

Member Avatar for Belal_3
1
897
Member Avatar for nalb4242

ASP.NET code runs on the server, and is never sent to the browser. You can't see the code because it is not part of the web page itself - rather, it is the code which generates the web page's HTML and Javascript code before it is even sent to the …

Member Avatar for Schol-R-LEA
0
74
Member Avatar for Puvaan

Could you clarify what you are trying to do? The title sounds as if yoiu are trying to convert from C++ to C, and were specfically asking how to use the standard C I/O functions... except you are using both `puts()` and `printf()` already, which are exactly the functions you'd …

Member Avatar for Schol-R-LEA
0
80
Member Avatar for banmohammed

Dumping an assignment to a post without at least saying that is what you are doing isn't the most polite way to start a conversation, especially if you don't show any of your own effort to solve the problem. It also isn't the safest approach, since plenty of professors regularly …

Member Avatar for Schol-R-LEA
0
37
Member Avatar for Anshumaan

Dumping an assignment to a post without at least saying that is what you are doing isn't the most polite way to start a conversation, especially if you don't show any of your own effort to solve the problem. It also isn't the safest approach, since plenty of professors regularly …

Member Avatar for Schol-R-LEA
-1
123
Member Avatar for dado.d

In my experience, most LGBT+ groups are local to a specific city or region, and are usually formed around private/hidden FB groups and/or Discord channels. Most of the more national and global groups are formed around web forums (or, in the distant past of the 1990s, Usenet groups), and generally …

Member Avatar for Dani
0
116
Member Avatar for Shikigami

This problem most likely is from some textbook, unless I am misreading things, as [shows up on CourseHero](https://www.coursehero.com/file/84055549/JustoJoshuaAldrich-MachineProblem002docx/) under [two different courses](https://www.coursehero.com/file/91710667/Programming-Laboratory-Activitiesdocx/) by separate professors.

Member Avatar for Schol-R-LEA
1
140
Member Avatar for RH_589

Could you post the JavaScript/AJAX code that goes together with this? PHP code runs entirely server-side, and thus can only affect the browser-side rendering on a refresh. Any AJAX code has to run browser side, which effectively means JavaScript (or a language which translates into either JavaScript or WebAssembly). It …

Member Avatar for Schol-R-LEA
0
62
Member Avatar for Iris_3

Are there any other contraints on the assignment (which I am presuming is for a compiler course, since it is basically a parsing problem)? Are you allowed to use a lexical analyzer generator (e.g., flex) and/or a parser generator (e.g., bison)? Are there any requirements for the method used? Note …

Member Avatar for Schol-R-LEA
0
76
Member Avatar for r4ds

In JavaScript, the operator `==` tests for object identity, i.e., that they are the same object. This is the same as value equality for primitives such as integers and floats, but for objects such as strings, it only tests if they are the same object, not if they have the …

Member Avatar for r4ds
0
92
Member Avatar for pratikmishra22@yahoo.com

And what makes you think a single answer is going to be possible, or that it would even be relevant in a *development* forum? Is your intention to try to clone it or something?

Member Avatar for ElenaCora
6
5K
Member Avatar for Poppic

How well do you know C? How well do you know MIPS assembly? In order to understand how to convert from one language to another, you would need to understand, at least to some degree, both languages in question. As for the two functions, they are *not* the same, and …

Member Avatar for rproffitt
0
6K
Member Avatar for Aaron_17

I think you've misunderstood how message boards work. Just posting a link tells us nothing about what problems you are having, and no one - ***no one*** - here is going to be daft enough to follow a blind link like that, anyway. I should add that it is also …

Member Avatar for Abdulgafa80
0
3K
Member Avatar for praneeth_gunda

**suraiyaparveen**: You won't get it, for two reasons. First, no such program exists - those are all things that need to be done manually, not programs to be written. Second, even if it were feasible to do those things programmatically, *we wouldn't give it to you* without some evidence that …

Member Avatar for yesim
1
27K
Member Avatar for Harshali_1

[This rather old post of mine](https://www.daniweb.com/posts/jump/2052054) discusses the use of recursion in general terms; the discussion following it in that thread might prove of value as well. While it is presented *vis a vis* C++, it applies to Python just as well, IMAO.

Member Avatar for sritaa
0
477
Member Avatar for overwraith

The question is very muddled, as it seems to be mixing unrelated topics - the technologies for developing a coupon system (whatever you mean by *that*, as it isn't entirely clear if you are talking about transferrable discounts or something else; also, note the spelling of 'coupon'), the legal requirements …

Member Avatar for Schol-R-LEA
0
3K
Member Avatar for vegaseat

Actually, there already exists a [steganographic plugin for GIMP](http://registry.gimp.org/node/25988), which you can probbly use off the shelf for your purposes. The source should be viewable if you want to go over it or make changes to it.

Member Avatar for JamesCherrill
5
10K
Member Avatar for Hazardous_Byte

I would strongly recommend not responding to threads that have been dead for over two years, especially when the answer you're giving is unquestionably incorrect. Why is your answer wrong? Well, first off, it does not address the matter of *loading* the compiled code into memory, and more importantly, of …

Member Avatar for rakesh_15
0
2K
Member Avatar for Jack_9

Actually, you've misunderstood what the term '[SQL injection](http://en.wikipedia.org/wiki/SQL_injection)' means, and fortunately for you, your script doesn't involve any. All your code does is open a connection to a MySQL database server and create a cursor, the basic steps interacting with a database. SQL injection is a (bad) way of building …

Member Avatar for phoenix079
0
8K
Member Avatar for kkjaykamau

While I am not a mod, and thus have no formal standing here, I would like to point you toward the [Daniweb Forum Rules](https://www.daniweb.com/welcome/rules), specifically this one: * **Do not** hijack old forum threads by posting a new question as a reply to an old one I suspect that this …

Member Avatar for Schol-R-LEA
0
3K
Member Avatar for jigar_2

*Before trying to understand what you need help with, I want to make a comment about the code itself. I will try to address your question - to the extent that you asked one at all - in a follow-up post, but I wanted to get this out of the …

Member Avatar for Schol-R-LEA
0
284
Member Avatar for Vinod_16

The question doesn't make much sense to me. What is it you are trying to install, and why does it require you to use VB6, of all things? Also, if this has anything to do with the other post, regarding Android apps... well, you are very much in the weeds …

Member Avatar for LesF
0
558
Member Avatar for Sajid_10

That modification would be a a good deal more than 'a little bit'. You seem to have misunderstood what this forum is for: it's for people who are trying to solve a programming problem *themselves*, and need a bit of help. In other words, it is about programmer helping each …

Member Avatar for JamesCherrill
0
536
Member Avatar for Tom_33

This problem is most often given under the name "[Fizzbuzz](https://en.wikipedia.org/wiki/Fizz_buzz)", being based on an old children's math game of that name, but as Rev Jim said, it is a problem that a lot of professors use as a check on how well students understand the material, as well as being …

Member Avatar for Reverend Jim
1
636
Member Avatar for asit_1

To the best of my knowledge, the API key has always been required, but that's beside the point. The reason it doesn't work in PHP pages is because there is no such thing as a 'PHP page'. There are PHP scripts, but the pages themselves aren't PHP, they are script-generated …

Member Avatar for Schol-R-LEA
0
367
Member Avatar for zzmrzz

You say, > I have been programming C# for some time, and >i recently learned about constructors and objects Unless 'some time' is 'under an hour', these two statements are contradictory. If you are new to C# programming, either learning it on your own or as a student in a …

Member Avatar for Lucaci Andrew
1
530
Member Avatar for Markuss_1

Has your course covered either `while` loops, or `for` loops, yet? It would be very unusual for a class to cover `repeat`...`until` without covering those first. For a quick thumbnail sketch: `while` is pre-conditional indefinite loop, that is to say, is repeats based on a conditional test that is first …

Member Avatar for Schol-R-LEA
0
392
Member Avatar for Andrew_46

I am assuming this a class assignment, or some sort of training exercise, since, as @rproffitt said, for any sort of work project the logical solution would be to compile the C code. Now, both for ethical reasons and due to DaniWeb TOS, we cannot just give you the code. …

Member Avatar for Schol-R-LEA
0
4K
Member Avatar for Zack_9

Before proceeding, it should be mentioned that the header file `"stdafx.h"` is specific to the Windows Visual C++ compiler. Given that the professor has stated that the submitted code will be compiled using GCC under Linux, the inclusion of that header will be a showstopper for you - and one …

Member Avatar for Schol-R-LEA
0
874
Member Avatar for Mar. Na.

OK, let's start off by pointing you towards the [Daniweb Forum Posting Rules](https://www.daniweb.com/welcome/rules) before proceeding, as you just broke several of them. >* **Do** ensure that all posts contain relevant content and substance and are not simply vehicles for external links >* **Do not** post the same question multiple times …

Member Avatar for Mar. Na.
-3
342
Member Avatar for Zack_9

While I can't say much without more detail about the rest of your code, I am pretty sure that, as you seem to suspect, you have either missed or misunderstood part of the assignment. I may be wrong, but based on the description of the problem, it appears that the …

Member Avatar for Schol-R-LEA
0
377
Member Avatar for Densino

Please do not reanimate old threads, even if you are asking a question similar to the existing one. If you have a new question, start a new thread. I recommend reading the forum [Posting Rules](https://www.daniweb.com/welcome/rules), [Terms of Service](https://www.daniweb.com/welcome/tos) and [Advice on Asking Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question) before proceeding here. Specifically those pertaining to …

Member Avatar for Schol-R-LEA
0
6K
Member Avatar for Joel_10

**@Kes166** Correct me if I am wrong, but I am pretty sure that in Standard C++, array declarations must use a compile-time constant for the array size. I know that the **g++** compiler will allow C99 style dynamic arrays by default, but it isn't standard C++ (unless it was added …

Member Avatar for Joel_10
0
404
Member Avatar for iamsibi

First off, please do not resurrect old threads this way; if you have a new question, start a new thread. It is quite horrifying to find that this thread has been restarted at least three times in the previous eight years, even before you did it, which is absolutely ludicrous. …

Member Avatar for Schol-R-LEA
0
8K
Member Avatar for Marina_4

The OP might want to also consider that C and C# are not the same language, and that C++, Objective C, and Objective C++ are yet other different languages from those and each other, as well. Any answer we give will greatly depend on knowing what language the assignment is …

Member Avatar for Schol-R-LEA
0
328
Member Avatar for Jose_17

**@Jose_17**: You might want to consider whether your professor really wants you to do that or not, in something that is clearly meant as a lesson on how to write assembly code. You might also want to consider whether they are going to be watching fora like this one to …

Member Avatar for Schol-R-LEA
0
331
Member Avatar for kes166

My first question is, how does this improve over the mail merge functionality that nearly every SMTP mail reader has had since the 1980s? Outlook has been able to do this out of the box since it came out - heck, Outlook Express could do it, for that matter, back …

Member Avatar for kes166
0
1K
Member Avatar for Basel_1

Before making any suggestions, I would like to ask if your course of study (whether personal or formal) has gotten to functions and how to write them yet. This would be a big factor in how you approach thsis matter.

Member Avatar for Reverend Jim
0
21K
Member Avatar for sajeev_1

OK... first off, if you don't mind me asking, why did you settle on VB 6.0 and MS Access? Is there a specific need for that particular (20 year old, no longer supported) version of Visual Basic, or any reason why you couldn't use either the built-in Access VBA (depending …

Member Avatar for Schol-R-LEA
0
447
Member Avatar for mnstrgrvyrd

Just to be clear for anyone reading this later, the example code in the original post is from the [NASM online documentation](http://www.nasm.us/xdoc/2.13.03/html/nasmdoc4.html#section-4.2.3). I am afraid that it really wouldn't be of any help here. The `%substr` directive is for working with substrings of strings defined at assembly time, being for …

Member Avatar for Schol-R-LEA
0
1K

The End.