4,439 Posted Topics
Re: Greetings from Belgium Michele and welcome to DaniWeb! :) | |
Re: Your for statement should look something like this: for (int loopCounter = 0; loopCounter < numberOfYears; loopCounter++) { //code for calculation here } | |
Re: You telling us "it does not work" does not help us much in trying to solve your problem. Please be more specific and verbose about WHAT "does not work" | |
Re: it breaks What exactly happens? Do you get error codes? Is smoke coming out of your computer? Etc. Tell us please. | |
Re: What I can decipher from your question is (I'm just guessing) To multiply 3 number you to do something like `multiplication = Val(text1.text) * Val(text2.text) * Val(text3.text)` So you will need an extra textbox. | |
Re: A much better plan is to drop 1 $ (or whatever money amount) in a piggy bank every day. After a year you will have won 365 $! All lottery games are designed in such a way, a player always will loose. | |
Re: I guess [this article](http://net-informations.com/q/faq/memory.html) can put you on the way. | |
Re: Every PictureBox has an Image property. [See here](https://msdn.microsoft.com/en-us/library/system.windows.forms.picturebox.image(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-2). | |
Re: Guess [this article](https://msdn.microsoft.com/en-us/library/07wt70x2(v=vs.110).aspx) would be a good starting point to get your files and directories. | |
Re: Hi Valentine, welcome at DaniWeb. Did you read the rules before posting? You must first show us what you already got, then we will help. We don't do your homework. | |
Short snippet in C# to do this classic trick, I could not find one on the web. Little, (even none!) error checking is done here. | |
Re: Why did you try to study a computer language like python? You want to solve problems right? Can't you think of any problem yourself you can solve using python? | |
Re: As I understand it, you have to write a manipulate function that uses a select case. Depending on the case seletion, you have to write some extra funtions that manipulate the input string accordingly. | |
Re: A textbox displays text, it cannot display a boolean array. At the most it will interpret that array as text, which will look like rubbish. To display pictures, use a picturebox. | |
Re: Posted a link with minus signs in this thread: https://www.daniweb.com/programming/software-development/threads/506841/help-with-sum-of-even-or-odds-array It got broken. Strangly enough the above thread url also contains minus signs. | |
Re: Are you trying to map the whole world in one matrix? 2000000000x2000000000 = 4x10^18. | |
| |
Re: The greek text says(thanks to google translate) **appologies accepted** Now lets all drink some ouzo and throw the empty glasses over our back while dancing the sirtaki. :) | |
| |
Re: Shoudn't it rather be something like this: for (i = 0; i < 5; i++) { //code to be repeated 5 times } | |
Re: @Simba Zuva: GOOGLE!!! Example : http://www.cprogramming.com/tutorial/c/lesson1.html | |
Re: You could also work with `DGV.Rows(r).Cells(c).Value ` in some loops. Remember to cast the `Value` to the proper type. | |
Re: Don't see much problems in your code. I just should remove the writeLines on lines 19 and 31 out of their the foreach loops. Unless it is your intention to follow the progress of the calculation. Pay a bit more attention to userinput. What would happen if the user typed … | |
Re: Line 17 and 18 instead of Rows(0), should that not be Rows(i)? | |
Re: Tried this out. Beginning to like Python more and more! | |
Re: It is often a bad idea to start with the interface. Concentrate on the functions you want your your application to perform. | |
Re: Do you think we are all stupid slaves serving ,you the KING, with all his howework wishes? | |
Re: I pasted your question in GOOGLE, got more than 50 000 000 results. | |
Re: According to your `InvoiceManager` class, the `ProcessInvoice` method accepts a parameter of type `Invoice` and returns a boolean. `invoice1.Amount` on line 21 in the code above is of type `int`. | |
Re: VB6, is this what your teacher wants you to use? | |
Re: I don't like to annoy my users with messages saying: "He, stupid! Only digits allowed here!" When I wanted only real numbers entered in a textbox I use [this snippet](https://www.daniweb.com/programming/software-development/code/217265/capturing-numeric-input-in-a-textbox) | |
Re: @AssertNull: Good old Paint can come to the rescue here. Took a PrintScreen, pasted it in Paint, Zoomed in twice and used the pipette to suck up the color of the quotation mark at the beinning of a quote. I got an RGB value of 51,51,51 (0,0,0 would be completely … | |
Re: I kinda love Python, until I came across that 2.7 - 3.0 thing. Started in 3.0 and learning. But most of the examples on the net are still in 2.7. This often caused error messages when using 3.0, I found it somewhat of a drawback. Never had those issues with … | |
Re: You got to implement a Click event for the MenuItem clicked. | |
Re: Hope you are getting better soon and I'm glad to notice your brain is still functioning at 100% ! It's a pity, but you will find nobody over here to wade to the whole of your project code to find your error. Better is to post the relevant code, perhaps … | |
Re: How about comparing two hex strings with the == operator? | |
Re: I don't directly see what is so custum about the **mapped SAN**S node. Could you explain a bit more? | |
Re: To change the read/write position in a file use the lseek function. There is a XOR operator : ^ | |
Re: This smells like (not teen spirit) sets! Have a look on sets and Python and I guess your problems will be solved. Success! | |
Re: How much are you willing to pay for my time to solve your homework? | |
Sad year ( ha , for a lot off things) but today one of my favorite songwriters died at the age of 82. He has so many great songs that I'm not able to choose one, but let's try https://www.youtube.com/watch?v=Tkk6phMBkOs ![]() | |
Re: How are your data structured, in a DataGridView an array, a file, something else? | |
Re: What is an error? I haven't the faintest idea. So how do you hope we can help you, if you don't give us anymore clues? WHAT error, line number in the code, code etc. | |
Re: Nice try he he. :) We would love to see how you would show some effort by at least writing some code and telling us what problems you have. Don't tell me you can't write an "Hello world" program in C++. It would at least solve your "--- Task1 ---" … | |
Re: Why not something like this: enum Animal{ Rat, Cow }; static const char * AnimalStrs[] = { "Rat", "Cow" }; const char * GetAnimalStr( int enumVal ) { return AnimalStrs[enumVal]; } | |
Re: What do you mean by random? Or do you have trouble with the button event click handler? | |
Re: You declare `PCB` as an Image. You cannot loop through an image that way, as you do in the following lines with PCB(i) | |
Re: Could I ask you what is 'custom' about your DGV scrollbar? | |
Re: You could also search in the direction of ASCII art. Assign some fotos to ascii chars and get started. Looking forward, what you come up with. |
The End.