4,439 Posted Topics
Re: What have you done, besides posting your homework assignment?Show your code to us and pinpoint the errors you have.We will be more than happy to help. | |
Re: Consider using YouTube [example here](https://www.youtube.com/watch?v=LFFPbBe7aAs) | |
Re: If the pattern AA, "BB" (CC) [DD] stays the same, you could extract the strings AA BB CC and DD, by reading char by char and detecting when you are at a comma etc. | |
Re: Had this once while posting a bulleted list from MS Word. Removed the bullets and it was OK. Well...my layout was gone of course . . . | |
Re: You probably missed a curly brace somewhere. This is not that hard to happen in about 400 lines of poorly indented code. It is of utmost(at least that is what I think) importance to structure your code well by chopping it into smaller chunks if possible. E.g. put your many … | |
Re: @ vegaseat: `My only problem with C# is the exessive verbosity, too much typing.` I do it this way, because my quotes don't seem to work. Why is too much typing such a problem? If you write something like `y = x;` you probably have to add some comments to … | |
Re: Of course! And while you're at it, post the value of BIG. We still haven't the faintest idea how big, **BIG** is. | |
Re: Well, let me say idunno. But I guess if you use just `A[10]` a smart compiler, allocates the memory for you. This would be OK for a small array and in teaching textbooks it is easy to explain. If you, as a programmer want to stay in full control, you … | |
Re: Could you please elaborate on your problem with lambdas? | |
Re: I'm not that much of a religious person, but somewhere in Matthew is a phrase:"*Seek and thou shalt find...*" From your question I can only infer you have totally no interest in CS. Convince me of the contrary and come up with a subject yourself! | |
Re: What have you done, besides posting your homework assignment? Show your code to us and pinpoint the errors you have. We will be more than happy to help. | |
Re: If you know how to draw a circle, then you must know its coordinates. Hence, use these coordinates to test a certain condition. | |
Re: Hi sunshine102030, welcome! :o) Instaed of float on lines 5 and 6, use double. | |
Re: We normally don't deliver source code. I personally don't even understand what you mean by "circle detection" | |
Re: I guess it is not your intention to "parse" an "expression". So I suggest to use two textboxes. One for num1, the other for num2. Next use an operator button(+,-,. . .) and using the suggestion by Moschops to update your label text. | |
Re: Read(input) all the numbers into an array. Process the array. | |
Re: FYI, VS has a ColorDialog in the toolbox, ready to drag into your design. If you want to do it programmaticaly, there's the [ColorDialog class](https://msdn.microsoft.com/en-us/library/system.windows.forms.colordialog%28v=vs.110%29.aspx). | |
Re: Help you with what? You seem to be able to work with the designer in VS,and? | |
Re: I should use 3 boolean flags and set them to false. After one is used set to true. `LiveLine1_Used = false;..... if (LiveLine1_Used)....` etc. | |
Re: Hi Don For a colleague still at work I was happy to do a somewhat similar job as yours. I used an extra dialogwindow with a label with as text a notice which file was being processed. This dialog also had a [progressbar control](http://www.tutorialspoint.com/vb.net/vb.net_progress_bar.htm). Maybe this is something you might … | |
Re: What have you done, besides posting your homework assignment? Show your code to us and pinpoint the errors you have. We will be more than happy to help. ![]() | |
Re: OP probably too busy copying code from somewhere else? | |
Re: What have you done, besides posting your homework assignment? Show your code to us and pinpoint the errors you have. We will be more than happy to help. | |
Re: What have you done, besides posting your homework assignment? Show your code to us and pinpoint the errors you have. We will be more than happy to help. | |
Re: @Ene Uran: that's easy, all the countries that see a commercial benefit in it. | |
Re: I assume your values are separated by commas? Did you ever try to google "How to read CSV file in C"? | |
Re: OK, you have an error and it seems in a way related to a form. Could you please also specify WHAT error? If I told you I have a car, would you know what car I have? | |
Re: What have you done, besides posting your homework assignment? Show that to us and pinpoint the errors you have. We will be more than happy to help. | |
Re: Hi Lorraine 1, welcome here. :) `I have 3 buttons: btn1, btn2, btn3. I want each button to show the respective lines in the text file.` Could you please explain what you exactly mean? | |
I have strings representing an angle, of the format ddd°mm'ss''. I want to get to the three constituents: degrees, minutes and seconds. I first chopped off the seconds like this: `angleString = “ddd°mm'ss''”;` `string str = angleString.Substring(0, angleString.Length - 2);` Then I tried to do this, to get to the … | |
Re: As you are preventing any other numbers then covered by your cases, a default is not needed here. In fact it would never ever be executed. If you are not sure about which case can come up, it is best to use a default. | |
Re: Have a look at the [TimeSpan structure](https://msdn.microsoft.com/en-us/library/system.timespan%28v=vs.110%29.aspx) | |
Re: The year zero does not exist! [See here](http://en.wikipedia.org/wiki/0_%28year%29). The number zero, has we now use it had to be invented. People in those days couldn't cope with "nothingness". | |
Re: From [this site](http://www.thefreecountry.com/compilers/cpp.shtml) you can download a lot. | |
Re: Hi, Cameron 2, welcome. :) Use Format: ' Returns "5,459.40". TestStr = Format(5459.4, "##,##0.00") Taken from the example at the end of [this webpage](https://msdn.microsoft.com/en-us/library/microsoft.visualbasic.strings.format%28v=vs.110%29.aspx) | |
Re: `i am getting a wrong output` This sentence tells us nothing, tell us WHAT output you have and how it is different from what you expected. THAT would provide us possibly more info to help solve your question. | |
Re: My first idea would be to derive your own class from TextBox and override th mouseclick event. In it determine wher in your textbox you did click and act accordingly. | |
Re: You could place the code from the example in the form load event and leave out th console.WriteLines. | |
Re: Maybe [this example](https://msdn.microsoft.com/en-us/library/system.io.ports.serialport.datareceived%28v=vs.110%29.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1) will get you on the way. Success. :) | |
Re: Hi sdtechi welcome at Daniweb. :) Line 10 and line 13 show starting brackets {. Where are the ending brackets } ? | |
Re: I noticed on lines 1 untill 12 that there is one curly brace too much. Probably in other places too. Look carefully at your indentation. It is not a subject to be overlooked. | |
Re: Hi felix, welcome. It is always handy to study the formulas behind line and circle intersection, before beginning to program this. [See this example](https://www.youtube.com/watch?v=OuAhkinZVsU). It is just a matter now of inputting some values in your program. Plug them in some formulas and outputting the results. Success! | |
Re: Your function evaluates to 1 for x >= 1 and to < 1 for x < 1. So the behaviour is completely normal. Try out and make a table of values between -10 < x < 10. | |
Re: What's the use in discussing obsoleteness? | |
Re: We don't do homework. We'll help you when you're stuck, but you'll need to show some effort first. If you are stuck, post up what code you have done and explain the problem you're having. | |
Re: We don't do homework. We'll help you when you're stuck but you'll need to show some effort first. If you are stuck, post up what code you have done and explain the problem you're having. |
The End.