4,439 Posted Topics

Member Avatar for MICHELE_1
Member Avatar for Agata_1

Your for statement should look something like this: for (int loopCounter = 0; loopCounter < numberOfYears; loopCounter++) { //code for calculation here }

Member Avatar for rubberman
0
1K
Member Avatar for Nazneen_1

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"

Member Avatar for ddanbe
0
657
Member Avatar for Branislav_1

it breaks What exactly happens? Do you get error codes? Is smoke coming out of your computer? Etc. Tell us please.

Member Avatar for Branislav_1
0
580
Member Avatar for Dorcas_1

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.

Member Avatar for ddanbe
0
196
Member Avatar for Rehana_1

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.

Member Avatar for ddanbe
0
185
Member Avatar for _1_14
Member Avatar for ddanbe
0
372
Member Avatar for Alana_1

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).

Member Avatar for Reverend Jim
0
217
Member Avatar for Jan_8

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.

Member Avatar for Reverend Jim
0
163
Member Avatar for Valentine_1

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.

Member Avatar for Reverend Jim
0
585
Member Avatar for ddanbe

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.

Member Avatar for ddanbe
0
885
Member Avatar for abhranil

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?

Member Avatar for Dave_15
0
310
Member Avatar for Dani
Member Avatar for Matthew_17
4
388
Member Avatar for can-mohan

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.

Member Avatar for JamesCherrill
0
484
Member Avatar for _1_14

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.

Member Avatar for ddanbe
0
334
Member Avatar for tinstaafl

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.

Member Avatar for Dani
0
509
Member Avatar for Zaynebou
Member Avatar for ddanbe
0
373
Member Avatar for Siberian
Member Avatar for shalu_1
Re: c++

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. :)

Member Avatar for ddanbe
-1
380
Member Avatar for Keyur_2
Member Avatar for Siberian

Shoudn't it rather be something like this: for (i = 0; i < 5; i++) { //code to be repeated 5 times }

Member Avatar for Siberian
0
136
Member Avatar for Siva_13

@Simba Zuva: GOOGLE!!! Example : http://www.cprogramming.com/tutorial/c/lesson1.html

Member Avatar for ddanbe
0
284
Member Avatar for nadiam

You could also work with `DGV.Rows(r).Cells(c).Value ` in some loops. Remember to cast the `Value` to the proper type.

Member Avatar for nadiam
0
616
Member Avatar for Brian_22

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 …

Member Avatar for rubberman
0
541
Member Avatar for nadiam
Member Avatar for vegaseat
Member Avatar for rahimrazak

It is often a bad idea to start with the interface. Concentrate on the functions you want your your application to perform.

Member Avatar for Reverend Jim
0
188
Member Avatar for Ramaah

Do you think we are all stupid slaves serving ,you the KING, with all his howework wishes?

Member Avatar for Aeonix
-5
632
Member Avatar for 绍禹
Member Avatar for PulsarScript

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`.

Member Avatar for PulsarScript
0
2K
Member Avatar for faza_1
Member Avatar for sidyusuf

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)

Member Avatar for ddanbe
0
831
Member Avatar for Reverend Jim

@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 …

Member Avatar for AssertNull
0
403
Member Avatar for Lucas_10

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 …

Member Avatar for ddanbe
0
1K
Member Avatar for Sashika_1
Member Avatar for Alex_59

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 …

Member Avatar for ddanbe
0
317
Member Avatar for Gabriela_2
Member Avatar for ddanbe
0
671
Member Avatar for Maurice_4

I don't directly see what is so custum about the **mapped SAN**S node. Could you explain a bit more?

Member Avatar for Maurice_4
0
802
Member Avatar for Mr.M
Member Avatar for AssertNull
0
663
Member Avatar for paul_46

This smells like (not teen spirit) sets! Have a look on sets and Python and I guess your problems will be solved. Success!

Member Avatar for rproffitt
0
293
Member Avatar for noorullah06
Member Avatar for tinstaafl
0
4K
Member Avatar for ddanbe

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

Member Avatar for diafol
1
135
Member Avatar for savedlema
Member Avatar for savedlema
0
391
Member Avatar for Reo_1

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.

Member Avatar for Reo_1
1
322
Member Avatar for John_133

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 ---" …

Member Avatar for ddanbe
0
279
Member Avatar for Bryan_5

Why not something like this: enum Animal{ Rat, Cow }; static const char * AnimalStrs[] = { "Rat", "Cow" }; const char * GetAnimalStr( int enumVal ) { return AnimalStrs[enumVal]; }

Member Avatar for tinstaafl
0
299
Member Avatar for abdullah_11

What do you mean by random? Or do you have trouble with the button event click handler?

Member Avatar for Santanu.Das
0
423
Member Avatar for Garry_1

You declare `PCB` as an Image. You cannot loop through an image that way, as you do in the following lines with PCB(i)

Member Avatar for Reverend Jim
0
831
Member Avatar for TheGuy831
Member Avatar for jonymanolo

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.

Member Avatar for Paul_45
0
1K

The End.