1,857 Posted Topics

Member Avatar for lendeaton

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 …

Member Avatar for tinstaafl
0
406
Member Avatar for Giselle_1

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.

Member Avatar for tinstaafl
0
113
Member Avatar for Giselle_1

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.

Member Avatar for tinstaafl
0
347
Member Avatar for Violet_82

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

Member Avatar for Violet_82
0
3K
Member Avatar for TIffany_2

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 …

Member Avatar for tinstaafl
0
481
Member Avatar for Tim_22

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 …

Member Avatar for tinstaafl
0
615
Member Avatar for himanshucary

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

Member Avatar for tinstaafl
0
151
Member Avatar for DrakeDemon

Most sites I access use 2-factor authentication, all without me putting in my password. Seems to me it makes this redundant.

Member Avatar for DrakeDemon
1
534
Member Avatar for Chua_1

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.

Member Avatar for JamesCherrill
0
204
Member Avatar for extr3mex

I find if you use a good modern IDE(Visual Studio, Visual Code, NetBeans, etc.), debugging is automatic and very easy to use

Member Avatar for Max_14
0
704
Member Avatar for swathi sajja

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.

Member Avatar for André_15
0
3K
Member Avatar for Hisham_3

Instead of expecting someone to pour over almost 500 lines of code, how about showing where your counter is being used.

Member Avatar for Hisham_3
0
806
Member Avatar for adsanimenerd

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 …

Member Avatar for tinstaafl
0
168
Member Avatar for Binisha

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.

Member Avatar for tinstaafl
0
90
Member Avatar for tinstaafl

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 …

Member Avatar for holisticgroup19
3
4K
Member Avatar for Tim_8

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.

Member Avatar for tinstaafl
0
154
Member Avatar for Reverend Jim

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 …

Member Avatar for Mark@SF
4
79K
Member Avatar for faustf

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.

Member Avatar for tinstaafl
0
1K
Member Avatar for codiene bryant

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 …

Member Avatar for tinstaafl
0
283
Member Avatar for Xozz

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

Member Avatar for DGPickett
0
269
Member Avatar for Xozz

A free Google account includes 5GB of space, that you can use through Google Drive. It will even integrate with a Windows Desktop.

Member Avatar for Yrth
0
318
Member Avatar for GrimDemeanor

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 …

Member Avatar for tinstaafl
0
222
Member Avatar for SoftBa

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.

Member Avatar for Minimalist
0
952
Member Avatar for AlexHy

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() } };

Member Avatar for tinstaafl
0
230
Member Avatar for Sappie

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.

Member Avatar for tinstaafl
0
331
Member Avatar for Gabriela_2

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 …

Member Avatar for Ju57man
0
2K
Member Avatar for Vange

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 …

Member Avatar for tinstaafl
0
1K
Member Avatar for Adm666

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.

Member Avatar for tinstaafl
0
480
Member Avatar for AbdullAh_39

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 …

Member Avatar for tinstaafl
0
300
Member Avatar for Paul.Esson

Have you tried this [blog](https://colorlib.com/wp/free-svg-editor-tools/)?

Member Avatar for tinstaafl
0
915
Member Avatar for Nick_31

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 …

Member Avatar for tinstaafl
0
205
Member Avatar for xxText

Here's a good [tutorial](http://csharp.net-informations.com/excel/csharp-excel-tutorial.htm) with information that will help you to do that.

Member Avatar for tinstaafl
0
175
Member Avatar for photo123

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 …

Member Avatar for pritaeas
0
289
Member Avatar for Naveed_786

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 …

Member Avatar for tinstaafl
0
762
Member Avatar for smgctn

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 …

Member Avatar for tinstaafl
0
215
Member Avatar for piyush gandhi
Member Avatar for tinstaafl
1
332
Member Avatar for ahmed_101
Member Avatar for Dani
1
1K
Member Avatar for NKR13

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 …

Member Avatar for tinstaafl
0
352
Member Avatar for Petrus_1

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 …

Member Avatar for tinstaafl
0
412
Member Avatar for Tân_3

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 …

Member Avatar for tinstaafl
0
223
Member Avatar for Leomar_1

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.

Member Avatar for DGPickett
0
284
Member Avatar for misstj555

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 …

Member Avatar for DGPickett
0
1K
Member Avatar for pevin

Without any code to go by, it's pretty difficult to guide you to a solution.

Member Avatar for tinstaafl
0
229
Member Avatar for pixma

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.

Member Avatar for Aldrin_1
0
6K
Member Avatar for John_165

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

Member Avatar for Anninflow
0
3K
Member Avatar for Aina_1

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.

Member Avatar for tinstaafl
1
1K
Member Avatar for zachattack05

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)

Member Avatar for tinstaafl
0
4K
Member Avatar for newbie26

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.

Member Avatar for rproffitt
0
3K
Member Avatar for Dani

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.

Member Avatar for happygeek
2
6K
Member Avatar for PM312

How are you adding the control to your form? When I drag and drop this control onto a form I get 5 columns.

Member Avatar for xrjf
0
4K

The End.