1,857 Posted Topics
Re: One good getting started resource is [Get started with Visual Studio](https://visualstudio.microsoft.com/vs/getting-started/). This page has videos for beginners as well as links to more specific tutorials. One of the first things you'll have to decide, is which language(s) you'll be focused on first. At present there are about 5 different ones … | |
Re: Your code doesn't allow for any of the correct values except 180. If you want values inside that range you have to think about excluding the ones outside that range. something like this, `while (mark < 0 || mark > 180)`, wil allow all the marks from 0 to 180. | |
Re: Your code doesn't allow for any of the correct values except 180. If you want values inside that range you have to think about excluding the ones outside that range. something like this, `while (mark < 0 || mark > 180)`, wil allow all the marks from 0 to 180. | |
Re: It seems to me that with a bit of refactoring you can solve your problem and simplify things quite a bit. First I would recommend making your menu choices `char` instead of `int`. The standard input from an ASCII keyboard will fit into a String. This eliminates the `try` block, … | |
Re: It looks to me that you should really be learning about debugging. Especially with c++. Most compilers stop reporting at the first error and in your code, your compiler will report a lot of errors. Especially with `using namespace std;` commented out. While it's good to see you trying to … | |
Re: What I've noticed in your code, is basically exactly as the error message you get. You're using variables before you've given them values. The first one is a little tricky. You're accessing `menuArray` to print out `MenuItems`, but you haven't given any of the members of `MenuItems` any values. In … | |
Re: `c1` and `c2` are variable not controls. You can't look up their names in the control collection. I would suggest you research using `Reflection`. | |
Re: Most sites I access use 2-factor authentication, all without me putting in my password. Seems to me it makes this redundant. | |
Re: I would suggest you explain a little more about what you're specifically trying to do. Frankly, there's quite a bit in your code that's hard find reasons for. I strongly suspect that you may need a major refactoring. Never fear though, we can help you. | |
Re: I find if you use a good modern IDE(Visual Studio, Visual Code, NetBeans, etc.), debugging is automatic and very easy to use | |
Re: hmmmm, not sure what you're after. if your looking to call vlc istelf and pass the playlist, this is a simple shellexecute using the windows api, look at my answer in this [post](http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/443916/how-to-open-a-file-in-vb6-using-app.path). It has a very nice sample in doing just that. | |
Re: Instead of expecting someone to pour over almost 500 lines of code, how about showing where your counter is being used. | |
Re: It appears to me that you have the wrong idea about what a `copy constructor` is supposed to be doing. The present `LinkedList` should be constructed by copying the values in the passed `LinkedList`. In this instance `head` should start off as a new `ListNode` and the loop should iterate … | |
![]() | Re: It's hard to see how to help you without seeing the code you've got, including what you've tried for your save function. |
There are times when you need to make sure your counter starts at an odd or even number. Even is pretty simple - `counter = counter + modulus(counter)`. If counter is even it stays, if it's odd it gets incremented by 1. Odd is a bit more complicated - `counter … | |
Re: 1) I think what you're looking for is a [`LinkLabel`](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.linklabel?view=netframework-4.8) 2) I think you need to re-think how you're getting the phone numbers entered. You should validate the numbers at the source. | |
Re: Nice code. I'd like to point out a couple of things though: The code converting the progressbar value to a percentage string can be simplified by using integer division and interpolated string syntax: Dim percent = ((Value - Minimum) * 100) \ (Maximum - Minimum) s = $"{percent}%" In the … | |
Re: Does `strarr` have the proper elements? Does `ReadZombieTxt` return the proper string? What does `Zombie.txt` look like? Answer these questions and it'll be easier to get help. | |
Re: It's hard to say for sure where the problem is since the code you submitted won't compile. However, one place to start is in the declaration for `inputFile`. In `accountInfo` you declare it as `ifstream` but in `deposit` and `withdraw` you declare it as `fstream`. On a side note, any … | |
Re: Something else to consider. You've declared `FieldName` as 15 strings with the longest at 14 characters. In reality you have 14 strings with the longest at 15 characters. Simply reversing the limits of the array would have fixed the problem. Or, better yet use a simple string array `string FieldName[14]` | |
Re: A free Google account includes 5GB of space, that you can use through Google Drive. It will even integrate with a Windows Desktop. | |
Re: I would suggest that you need something to represent a product. In this case a struct would do, but, I think a class would be better. Either way, this allows you to store `Product` objects in a `vector<Product>`. Getting a summary with totals is simply a matter of looping through … | |
Re: Another way to go is to make form2 a dialog form. This will make it modal and since it remains part of form1, form1 will still be on top but inaccessible while form2 is active. | |
Re: You can use the `new` constructor of `Dictionary<string,List<string>>` to pass in the required elements: List<string> test = new List<string>() { "key1", "value_x1", "value_x2"}; ; Dictionary<string, List<string>> test2 = new Dictionary<string, List<string>> { {test[0], test.Skip(1).ToList() } }; | |
Re: The answer to your original problem is fairly simple. The comparator that you pass to `sort` must promote weak ordering. By comparing using `<=` you're promotiong strong ordering and this makes the compiler fail. Removing the `=` fixes it. | |
Re: A couple of things: When you're programming in c++ it is much easier to use `string` instead of `char*`. When you're joining strings(concatenating), since strings are immutable, a stringstream(<sstream>) is very handy. Otherwise, each time you join 2 strings you end up making a brand new string. As for the … | |
Re: For your immediate problem, the `login` function searches through the text file to verify the login credentials. You should be able to adapt this algorithm for the ` search` function. Some points to consider: Get out of the habit of using `using namespace std;`. If you create a function that … | |
Re: To my mind asking for a long string with various parts from the user is asking for trouble. I would suggest asking for each element and parse it as it is entered. | |
Re: Other things to consider, c++ isn't designed to create GUI's. You'll either have to interface with the OS's API directly or through a library. Also, you have to consider how portable you want your code to be. If you Google for tutorials on this I'm sure you can find some … | |
Re: Have you tried this [blog](https://colorlib.com/wp/free-svg-editor-tools/)? | |
Re: Here's something to look at. I'm not sure if it fixes your problem, but it appears to be a bug. If the DynamicArray is initializedf with the empty constructor, `m_capacity` is set to 0. If a value is then appended, the capacity will remain at 0. I would suggest using … | |
Re: Here's a good [tutorial](http://csharp.net-informations.com/excel/csharp-excel-tutorial.htm) with information that will help you to do that. | |
![]() | Re: Also expecting a user to properly type the date in the correct format is going to create a lot of heartache for you. I would suggest the `DateTimePicker` control available in the default toolbox in a Windows form project. Now not only will the date be in the correct format … |
Re: Here's your code formatted: Sub email_send() On Error Resume Next Dim mail As New MailMessage() Dim SmtpServer As New SmtpClient SmtpServer.Credentials = New Net.NetworkCredential("abc@gmail.com", "mypassword") SmtpServer.Port = 587 SmtpServer.Host = "smtp.gmail.com" SmtpServer.EnableSsl = True mail.To.Add("abc@gmail.com") mail.From = New MailAddress("abc@gmail.com") mail.Subject = "Subject" mail.Body = "Body" SmtpServer.Send(mail) End Sub To answer … | |
Re: Here's a quick rundown of a solution for you. * Assign the random number to a variable. * Check if the number is even or odd * If it is even increment a counter and print the `e` and the number * If not print the number * After the … | |
Re: Just a point of interest this also seems to work on windows 10 | |
Re: Have you seen this [blog post](https://medium.com/@baerree/angular-7-import-json-14f8bba534af)? | |
Re: Your formatting problem is in here: for (int Row = 1; Row<board.GetLength(0); Row++) { Console.Write(String.Format("\t{0}", " " + " " + "|")); if (Row == 8) { Console.WriteLine(); } if (board[Row, Column] == White_piece) { Console.Write(White_piece); } if (board[Row, Column] == Black_piece) { Console.Write(Black_piece); } } You're writing the space … | |
Re: First off, your code is already reading(`cin`) and writing(`cout`). Also you're getting into bad habits using `goto`. I have yet to see any code where using the `goto` structure is absolutely necessary. I would suggest following some tutorials on OOP(Object Oriented Programming). Once you get your code cleaned up to … | |
Re: This is not a site where people are going to drop everything and do your homework for you, no matter how man different posts you submit. That being said here is a link to a [tutorial on GUI programming](https://www.guru99.com/java-swing-gui.html), that can get you started. On a side note, if one … | |
Re: I'm afraid we'll need a lot more info. Like the rest of the hashtable class. What collision handling scheme you want to follow. You're goals in writing this class. | |
Re: I understand your desire to try and code a GUI from scratch as it were. However one of the reasons IDE's with drag-n-drop interfaces were created, is because programmers found that a hugely disproportionate amount of time was spent on the GUI rather than the logic of the program. Basically … | |
Re: Without any code to go by, it's pretty difficult to guide you to a solution. | |
Re: Not learning the rules and following them, doesn't show any respect either. Ang hindi pag-aaral ng mga patakaran at pagsunod sa mga ito, ay hindi nagpapakita ng anumang paggalang. | |
Re: One method I've had a lot of success with. Start with your IDE. Make sure the code you want to copy is properly formatted. Copy the code. Make sure you have an empty line between where the code will be pasted and the last text you typed. Paste the code. … | |
Re: Another suggestion: Hardcoding all your exceptions to disply only one message, doesn't allow you to see if an exception you don't expect is being raised. I would suggest displaying `ex.Message` instead of literal text. | |
Re: The error is because the to return values of the Ternary operator don't match. This can be fixed by casting the `DateTime.Parse` to `DateTime?`: ReturnValue.ArrivalDate = string.IsNullOrWhiteSpace(Screenings.ArrivalDate) ? null : (DateTime?)DateTime.Parse(Screenings.ArrivalDate) | |
Re: I think you need the barcode font(s) for the specific type(s) of barcode(s) you'll be using. Plus you'll probably have to communicate directly with the printer. On the Sato website is programming information for several models. | |
Re: One thing that can lead to frustration for the users, there doesn't seem to be any way to filter search results to specific tags and/or age of the posts. | |
Re: How are you adding the control to your form? When I drag and drop this control onto a form I get 5 columns. |
The End.