4,439 Posted Topics
Re: Do you already have code to define your struct? | |
I cannot trace when it started, but for some time now, I recieve every mail from DaniWeb two times. | |
![]() | Re: If you added `char name[16]` no padding would be needed either. |
Re: What is iInput meant to be? Name it for what it stands, perhaps it is number of guesses, number of throws. I don't know. If it is number of tries then call it **Ntries** or even better **numberOfTries** After a few months when you look again at your program you … | |
![]() | Re: You had a float. you let the compiler believe it is a char (CAST). Then, you print out a char with a float format specifier. It is still a char, not a float. |
![]() | Re: Moschops is correct. When i = 0, ptr[i] will point to 'H' and `*ptr` will point to 'H' When i = 1, ptr[i] will point to 'e' and `*ptr` will point to 'H' etc. ![]() |
Re: On line 9 you set a string equal to a real. | |
Re: > I am interested to do in biomedical and bio informatics Looks a great thesis topic to me. Go for it! | |
Re: Perhaps [this article](http://msdn.microsoft.com/en-us/library/system.windows.resourcedictionary(v=vs.110).aspx) can help. | |
Re: You could also use a [DateTimePicker](http://msdn.microsoft.com/en-us/library/system.windows.forms.datetimepicker(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1) or watch [this video](http://www.youtube.com/watch?v=03-GIEOBmeE) | |
Re: Hi coca99, welcome at Daniweb! The loop tests the bits in temp by ANDing with 0x01 on line 32. If this gives 0x01 than bit i of DrvGPIO is set, else it is cleared. The next bit of temp will be tested after a right shift by 1 on line … | |
Re: Don't know what your intensions are with source1, but it will be lost after FamBestandDataGridView_CellClick finishes on line 16. | |
Re: Here is [how to open excel file](http://vb.net-informations.com/excel-2007/vb.net_excel_2007_open_file.htm) Does line 6 work? | |
Re: May this also be lines or a line in the middle of a song? | |
Re: Use one Label and concatenate your digit strings like so: `MyLabel.Text = "one" + vbCr + "five" +vbCr +"two"` | |
Re: The form has a CancelButton property, so you could do something like: `MyForm.CancelButton = MyCancelButton` | |
Re: Hi genecasaminiano, welcome to Daniweb. Read about the [if-statement](http://www.cprogramming.com/tutorial/lesson2.html) To get you started, do something like: if (sales < 19999) { commission = 4; } else if ( //. . . your turn Success! | |
Re: Hi, welcome here. Could you please be more specific in what exactly goes wrong? Looking at line 19 I see that the variable `sender` will be not known. And the switch part must have an integral or string type expression and sender is an object. | |
Re: Hi Akwin Lopez, welcome here. Please start a new thread to ask your question. Don't use a thread that is already 4 years old. | |
Re: You could get the stop time in a [Form Closing event](http://msdn.microsoft.com/en-us/library/system.windows.forms.form.closing(v=vs.110).aspx). That is if you are using a Forms application, but I'm only guessing, you did not mention. | |
Re: I would write lines 3 and 4 like: if(!testFile.eof()) { testFile.getline(buffer, strlen(buffer)); } | |
Re: Works with me if ts1 and ts2 are DateTimes. | |
Re: "Best" doesn't exist. But I would find [this](http://tryobjectivec.codeschool.com/) a good starting point. | |
Re: Private or protected in OOP has nothing to do with security and hiding secret data. Read [this](http://en.wikipedia.org/wiki/Object-oriented_programming) thoroughly. | |
Re: Hi islam 2, welcome here. You first have to do a `DataGridView1.Rows.Add();` | |
Re: Read [this](http://tutorial.math.lamar.edu/Classes/CalcII/TaylorSeries.aspx). Use a loop and translate the formulas you want in Python code. | |
Re: This is what I did in C#, the code should be easy to follow. // ****************************************************************** // Return the discriminant b*b-4*a*c // ****************************************************************** public double Discriminant() { return cB * cB - 4 * cA * cC; } // ****************************************************************** // Solve the equation and fill the roots struct with … | |
Re: Hi BOTHEILLONE, welcome at DaniWeb! Think you have to send your code again. Click on **Code** above the message typing area and paste your code there. | |
Re: This works: namespace WindowsFormsApplication11 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { listBox1.Items.Add(textBox1.Text); } } }  | |
Re: The string class overloads the + operator to do string concatenation. You seldom have to use operator overloading yourself. You could use it, if you had for example written a date class or complex number class, to add two dates or complex numbers together. | |
Re: Perhaps you could try [C++Builder](http://en.wikipedia.org/wiki/C%2B%2BBuilder) | |
Re: Now is a property of he DateTime structure, so use: `Dim today As DateTime = DateTime.Now` | |
Re: For compilers have a look [here](http://www.dreamincode.net/forums/topic/20933-list-of-free-c-and-c-compilers-and-ides/) | |
Re: How would you do it with paper and pencil? You would note 3 coefficients A,B en C you would put these numbers into a formula and work it out. Same with computer: Write code to input 3 numbers A, B and C. Write the calculation formula and output the calculated … | |
Re: Hi ganesh, welcome at DaniWeb. Would [this](http://www.tutorialspoint.com/unix_sockets/socket_server_example.htm) help? | |
I have some data in a table, but instead of using something like `string[,] myTable = new string[3, 2];` I wanted to use List, because my table can grow or shrink and I cannot do that easily with arrays. So I got something like `List<List<string>> myTable = new List<List<double>>(3)(2);` But … | |
Re: Take a paper and a pencil. Draw your square with '+' or whatever chars. Done? Now use the **cout** instruction to let the computer do the exact same thing. Success! | |
Re: If your VB program opens Excel it will be the front application. If your VB program starts the loop, you should be able to see the animation. | |
Re: I think [this article](http://social.msdn.microsoft.com/Forums/windows/en-US/63ddb457-f769-44db-87cc-9e88e74929e8/how-to-host-different-controls-in-the-same-column-in-datagridview-control?forum=winformsdesigner) may help you. | |
Re: Hi PrashantB, welcome at DaniWeb. This might help: [Click Here](http://msdn.microsoft.com/en-us/library/system.windows.forms.checkstate(v=vs.110).aspx) | |
Re: Hello Andrew! Welcome! I program as a "hobby" in C# in VS and I find it a plus I don't have to do all the basic stuff myself. If I need a button, I just drag it on my screen and sometimes just add a few lines of code to … | |
Re: > it isn't working Probably obvious for you, not for us. Please explain EXACTLY what is not working. (error messages, program behavior etc.) To ovecome the overhead of the `pow((-1),i)` expression on line 32, I usually use something like: `int sign = -1;` before the while loop. And A[j] = … | |
Re: Hi Marc 2 welcom here! I don't know what the best computer language is. But have a look on this site under **Software Development** or **Web Development** for languages where most members here talk about. To find out what the most popular laguages are, have a look at [this site.](http://langpop.com/) … | |
Re: Hi Tessa, welcome to DaniWeb! You are doing integer division with sum/N, so example: if sum = 3, N = 2, average will be 1.0 and not 1,5 as it should. For multiplication use the *= operator Be aware of overflow | |
The End.