4,439 Posted Topics
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? | |
Re: 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! | |
| |
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 … | |
Re: Could you elaborate on that? Do you mean a WPF app? | |
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 … | |
Re: 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. | |
Re: @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 … | |
Re: 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). | |
Re: > something went wrong That's not very helpful for anyone out here trying to help you. Could you please be a little more specific? | |
Re: The C-language is even older and still very "popular" today! Pascal was initialy devised as a tool to learn programming. | |
Re: Perhaps a switch -- case statement will do the trick here. case "Yes" do this case "No" do that case something else: handle default | |
Re: A splitContainer is one unit with a Size property. Work with the SplitterDistanc property to manipulate each panel size. | |
Re: 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. | |
Re: 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! | |
Re: 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? | |
Re: 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). | |
Re: Perhaps [this article](http://www.cplusplus.com/forum/articles/6046/) explains it better than I can say it. | |
Re: Google for a plethora of ANN tutorials, examples etc. | |
Re: 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) { … | |
Re: 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. | |
Re: 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). | |
Re: 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. | |
Re: [This one](http://en.wikipedia.org/wiki/Brainfuck) contains the fewest possible instructions. I did not invent the name. | |
Re: 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 … | |
Re: 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? | |
Re: [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. | |
Re: 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) | |
Re: 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 … | |
Re: Have a look [here](http://www.dotnetperls.com/enum) and [here](http://www.dotnetperls.com/enum-array). | |
Re: `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 … | |
Re: `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. | |
Re: Perhaps you should include a format string as first argument to printf. Something like printf("%s\n", . . . | |
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 … | |
Re: [This article](http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html) explains it all. | |
Re: 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 … | |
Re: It's a little button in the toolbar of the solution explorer window. | |
Re: Many examples on the web. Just google. [Example](http://vb.net-informations.com/datagridview/vb.net_datagridview_printing.htm). | |
Re: 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 … | |
Re: 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? | |
Re: Some 5 years(already!) I posted [this snippet](http://www.daniweb.com/software-development/csharp/code/217194/data-encryption-in-c) about encryption. | |
Re: Have a look at the functions isdigit, isalpha, isalnum etc. Perhaps work out an IsNumber function with those. | |
Re: Think you will need an array of 3 chars to start with. What have you got for yourself so far? | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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 … |
The End.