4,439 Posted Topics

Member Avatar for ddanbe

What would happen if we cut a flower and it would scream like hell of the pain it feels? What would happen if we catch a fish on a line and it would squeal like a pig?

Member Avatar for Hiroshe
1
126
Member Avatar for YakuzaJevin

Out of the input number n, a string s is constructed out of the string "IVXLCDM", using the Mid function. I have not tested if this is correctly done. Try it out!

Member Avatar for ddanbe
0
261
Member Avatar for iConqueror
Member Avatar for ddanbe

My math professor in the past explained it this way: Consider yourself a 2D creature(some sort of pancake). If placed in a circle, you can't escape in a 2D world. But in a 3D world this is simple. You could just jump up and disappear and reappear before all your …

Member Avatar for mattster
0
766
Member Avatar for sanjeev_3
Member Avatar for ddanbe

I know this may seem a bit like nitpicking, but would it make any difference to use public int foo() { if (myInt == 1) return 2; if (myInt == 2) return 1; return 0; } or public int bar() { if (myInt == 1) return 2; else if (myInt …

Member Avatar for JOSheaIV
0
144
Member Avatar for PerplexedB

What comes up in my mind is that it is perhaps better to fire an event for every stage of your process instead of one event handling them all.

Member Avatar for ddanbe
0
148
Member Avatar for exoruel

@Sinz_1 : Did you read [the rules](http://www.daniweb.com/community/rules)? You may provide homework help, not give the whole solution! Besides try to use the Code option above a post to give a decent format if you post any code in the future. You seem to be a nice guy/girl, so I will …

Member Avatar for exoruel
0
202
Member Avatar for Ravi_15

Try to solve previous olympiad questions. They surely can be found, together with answers, somewhere on the [web](https://www.google.be/search?sourceid=navclient&aq=&oq=math+ol&hl=nl&ie=UTF-8&rlz=1T4ADRA_nlBE391BE391&q=math+olympiad+questions&gs_l=hp..1.0l5.0.0.0.6487...........0.oU6imBcv9Mc).

Member Avatar for llaspina
0
144
Member Avatar for Sinz_1

> something went wrong That's not very helpful for anyone out here trying to help you. Could you please be a little more specific?

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

The C-language is even older and still very "popular" today! Pascal was initialy devised as a tool to learn programming.

Member Avatar for Jack_10
0
221
Member Avatar for Kris_3

Perhaps a switch -- case statement will do the trick here. case "Yes" do this case "No" do that case something else: handle default

Member Avatar for Kris_3
0
134
Member Avatar for rfresh

A splitContainer is one unit with a Size property. Work with the SplitterDistanc property to manipulate each panel size.

Member Avatar for rfresh
0
6K
Member Avatar for flebber

bestArray is indeed a System.int32[]. So this is printed out by Console.WriteLine. Use a for-loop and the Length property of bestArray to print out all the integers in the array.

Member Avatar for ddanbe
0
280
Member Avatar for iConqueror

Instead of using `double Base = 15;` on line 7 in your Main, use a method from the InputWrapper class. Example: change line 7 with `double Base InputWrapper.getDouble("What is base of triangle?");` Do the same sort of thing on line 8. Success!

Member Avatar for iConqueror
0
146
Member Avatar for cd88

What about using [DateTime](http://msdn.microsoft.com/en-us/library/system.datetime.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1) instead of your own class?

Member Avatar for cd88
0
392
Member Avatar for tena.venmathy

Hi Tena, welcome here at DaniWeb! :) Please show us what you already did, even if it is totally wrong and you are stuck. Nobody here is going to help you by just posting an assignment. Please read [the rules](http://www.daniweb.com/community/rules).

Member Avatar for David W
-1
240
Member Avatar for jameslyle2

Perhaps [this article](http://www.cplusplus.com/forum/articles/6046/) explains it better than I can say it.

Member Avatar for Gonbe
0
232
Member Avatar for somyms
Member Avatar for Traevel
0
173
Member Avatar for PM312
Member Avatar for Roisin

Remove the first line. txtEnglish.Text is already a string you don't have to convert it. This is a little console application i came up with using your modified code. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { …

Member Avatar for rubberman
0
2K
Member Avatar for sunnyshahrukh

cin and cout allow access to standard input(mostly the keyboard) and standard output(mostly the console screen) Use the other functions for other file manipulations.

Member Avatar for NathanOliver
0
83
Member Avatar for ogsirus

Have a look at [this snippet](http://www.daniweb.com/software-development/csharp/code/451281/simple-linReae-graph-charting) to start with. And also [this](http://msdn.microsoft.com/en-us/library/dd489237(v=vs.110).aspx).

Member Avatar for ddanbe
0
195
Member Avatar for MasterHacker110

For simple robotics projects, the microcontrollers of Atmel or Microchip are often used. They both can be programmed in C, but also in their own brand of assembly language.

Member Avatar for MasterHacker110
0
618
Member Avatar for ujjwale

[This one](http://en.wikipedia.org/wiki/Brainfuck) contains the fewest possible instructions. I did not invent the name.

Member Avatar for bCubed
0
318
Member Avatar for lodhasanket4

What language and tables are you using? Although some members out here have IMHO reached the stage of mild divinity, perhaps they can. But I still cannot look over your shoulder. So if you want an answer to your question please explain your problem in as much detail as you …

Member Avatar for rubberman
0
76
Member Avatar for jnneson

I guess you wil find no teachers here. But rather a lot of persons who are very willing to help you out if during your software development cycle you encounter some problems. What is your goal? What do you know already?

Member Avatar for AleMonteiro
0
160
Member Avatar for Gurleen_Kaur

[This site](http://csharp.net-informations.com/excel/csharp-excel-tutorial.htm) was of great help to me when I had a somewhat similar problem.

Member Avatar for du_1
0
321
Member Avatar for PM312

Did you try `DgvInvoiceDetails.Item(0, N).Value = xlsheet.Cells(N, 1).Value;` ? Also have a look at [this](http://vb.net-informations.com/excel-2007/vb.net_excel_2007_open_file.htm)

Member Avatar for PM312
0
286
Member Avatar for iConqueror

You should get line 6 out of your People class. People never is a List. You can have a List of People. For good design, just put in your People class what is characteristic for People. To write to a file, just iterate (with foreach)over your People list like I …

Member Avatar for tinstaafl
0
327
Member Avatar for iConqueror

Have a look [here](http://www.dotnetperls.com/enum) and [here](http://www.dotnetperls.com/enum-array).

Member Avatar for ddanbe
0
149
Member Avatar for rana ranjit

`str[n]= getche() ` will get a character from the keyboard and echos it to the screen. It then puts an integer into str on position(starting at zero) n. A check is done to see if that integer, returned by getche() is not equal with '\r'. If succes n is incremented …

Member Avatar for Daisy_1
0
84
Member Avatar for Rubina_2
Member Avatar for iConqueror

`person.myList.ToString()` Here myList is an object of type ArrayList. The ToString of it will print out what it knows, namely : System.Collections.ArrayList Will try to rearrange your code, will let you know.

Member Avatar for ddanbe
0
2K
Member Avatar for mahrukhbalouch

Perhaps you should include a format string as first argument to printf. Something like printf("%s\n", . . .

Member Avatar for ddanbe
0
84
Member Avatar for ddanbe

It comes in handy of course that you can dynamically adjust the size of a List or Dictionary. But this time I want to use a Dictionary with sizes from 1 to 8. When I have e.g. size 3, it will stay that way. On the net I found a …

Member Avatar for ddanbe
0
188
Member Avatar for narmadhahearty

[This article](http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html) explains it all.

Member Avatar for jnneson
0
122
Member Avatar for iConqueror

These are some differences between the two: •Arrays are strongly typed. •ArrayLists are not strongly typed. •Elements in Arrays have to be of same data type (int, string, double, char, bool…). •Elements in an ArrayList can have a combination of combined data types or a single data type. Note: If …

Member Avatar for tinstaafl
0
186
Member Avatar for javed.iqbal.3979

It's a little button in the toolbar of the solution explorer window.

Member Avatar for ddanbe
0
138
Member Avatar for hhm_pro992

Many examples on the web. Just google. [Example](http://vb.net-informations.com/datagridview/vb.net_datagridview_printing.htm).

Member Avatar for ddanbe
0
1K
Member Avatar for Dani

Get better soon Dani! Had to let cut a piece out of my right ear, due to some serious but not lethal skin cancer. Could not sleep on it for 3 weeks. Although it was localy sedated during the operation, I can still hear the cutting and carving! Think of …

Member Avatar for <M/>
0
367
Member Avatar for javed.iqbal.3979

What do you mean by not correct could you give an example? Could you post the layout of your form? and an extra, what happens if you click the '.' button twice?

Member Avatar for ddanbe
0
283
Member Avatar for happygeek
Re: 1.11

I thought mm is the official SI abreviation for millimeter.

Member Avatar for Hiroshe
0
240
Member Avatar for iConqueror

Some 5 years(already!) I posted [this snippet](http://www.daniweb.com/software-development/csharp/code/217194/data-encryption-in-c) about encryption.

Member Avatar for Hiroshe
0
300
Member Avatar for muhammadse03503

Have a look at the functions isdigit, isalpha, isalnum etc. Perhaps work out an IsNumber function with those.

Member Avatar for L7Sqr
0
123
Member Avatar for manishbhandari

Think you will need an array of 3 chars to start with. What have you got for yourself so far?

Member Avatar for ddanbe
0
69
Member Avatar for iConqueror

No, an array is defined for one type. But you could do the following: [StructLayout(LayoutKind.Explicit)] unsafe struct StringInt { [FieldOffset(0)] public fixed char name[30]; [FieldOffset(0)] public int MyInt; //[FieldOffset(21)] etc. //possible other types } Do not forget to add: `using System.Runtime.InteropServices;` Now you could make an array of StingInts. This …

Member Avatar for ddanbe
0
111
Member Avatar for Djmann1013

In your first code remove `using System.Timers;` System.Timers contains a Timer to be used in a multithreaded environment. Just use the Forms Timer in your case. Hope it helps.

Member Avatar for ddanbe
0
3K
Member Avatar for iConqueror

The preferred method is ReadLine instead of Read. ReadLine returns a string, so you have to do a conversion to integer. Use the [TryParse method](http://msdn.microsoft.com/en-us/library/f02979c7(v=vs.110).aspx) for that.

Member Avatar for iConqueror
0
175
Member Avatar for iConqueror

1. An array is fixed, to a list you can add and remove objects at will. I would typicaly use an array to describe the suits of a card game for instance. 2. You can store the same type of object in an array or list. 3. A list can …

Member Avatar for tinstaafl
0
199

The End.