183 Posted Topics

Member Avatar for bLuEmEzzy

`DISTINCT` is doing its job properly. Distinct looks at all fields and eliminates ones that are completely duplicated. In your set, for example, field 1 equals 0001 in three records. Most of the fields are the same, but the last two fields are different, so `DISTINCT` considers them different records. …

Member Avatar for daniellemacey
0
371
Member Avatar for SAMMY12345

The kernel is the core of the operating system. In Linux and other Unix and Unix-like operating systems, it is the program that manages all the resources of the computer. In other words, it is the part of the operating system that everything else relys on. It manages all the …

Member Avatar for turboscrew
-2
289
Member Avatar for Bhavesh Nariya

Is there a question to this, or are you wanting to just post a code snippet? As I read it, your code to actually do the swap will not work. You will need to assign to both `a` and `b` to perform a swap, but you just assign to `a` …

Member Avatar for Oddytech
-3
2K
Member Avatar for JohnMcPherson

I see that you included the data validation I recommended last time. Good. The editor you used to create the file does not appear to be the problem because your data file looks reasonable for the situation. Why are you reading the string starting at the second character with `sscanf(&str[1], …

Member Avatar for Nutster
0
297
Member Avatar for ~s.o.s~

Here are some ideas that I like to use when teaching programming. 1. Create a program that prints out the number distinct 5-card hards in poker, starting with Royal Flush going down to High Card. Output should include the number of distinct hands and the percentage of the total of …

Member Avatar for gyno
22
7K
Member Avatar for RH7MES

We do not write your code for you; you have to do that. What this forum is for is to help you when you get stuck. Post the code you have pointing out where it stopped behaving properly and we will give you some advice. There are lots of examples …

Member Avatar for JOSheaIV
0
217
Member Avatar for vikingGamer

Guessing the middle of the range to make things faster. Using a random number in the range just adds extra complexity and extra guesses. Is your number 50? L Is your number 25? H Is your number 37? L Is your number 31? L Is your number 34? Y

Member Avatar for Nutster
0
876
Member Avatar for Cole_1

What type of computer do you have? Laptop or desktop or something else? If the LED turns on and stays on, then it may be a power indicator or the hard drive activity indicator and these are normal. If they flash while booting (but not really quickly; that is just …

Member Avatar for Nutster
0
238
Member Avatar for ddanbe

Another thing `const` does is allow the compiler to perform some extra optimizations, which means that the program can potentially run faster and use less memory. But yeah, as the others have said, using const everywhere makes you think when the compiler complains, "Do I really need to change this …

Member Avatar for ipswitch
0
440
Member Avatar for CORKINSCS

Look at the Sheets collection to find the Sheet object for the page. `Worksheets("Expenses").Range("D2").Value = ActiveSheet.Range("C21").Value` This is untested, so might need some tweaking.

Member Avatar for Nutster
0
189
Member Avatar for shanenin
Member Avatar for Nutster
0
1K
Member Avatar for altjen

It all depends on what you are trying to do. So what are you trying to get done that OpenCV should help you with? Are you having a specific problem doing something using the OpenCV library?

Member Avatar for altjen
0
95
Member Avatar for daystarsam

Given a series of points and costs to move between points, create a program to determine the lowest cost (and other possible criteria) to move between all points without repetition. Not all points need to connect to all points. This is famous style of problem in computer science optimization. Good …

Member Avatar for Schol-R-LEA
-2
135
Member Avatar for jamesjohnson25

As I understand the specification, each turn a player is supposed to add a letter either to the beginning or to the end of the previous word. You are not checking to see if this is a valid English word, but if the players made valid moves. Did a player …

Member Avatar for Nutster
0
118
Member Avatar for JohnMcPherson

There are some issues with `fscanf()` regarding how it handles bad data if you aren't using it carefully enough. `fscanf()` returns the number of fields it was able to read and assign to variables. It is important to always check this return value and make sure it is what you …

Member Avatar for Nutster
0
801
Member Avatar for kumanutiw

In the comments, you state on line 8 that the brick sizes are in millimeters. Because you are multiplying by 1000, it looks like the wall lengths are in metres, but that should be in comments somewhere. I would recommend that if you need to consider other units of measure, …

Member Avatar for David W
0
499
Member Avatar for Papa_Don

Visual Basic has two types of decision structures: If-Then and Select Case. If-Then is used when you have a general condition or multiple conditions to test to determine if code should be executed. The Select statement is for comparing a variable or calculation against a series of values, without recalculating …

Member Avatar for Reverend Jim
0
2K
Member Avatar for Sohail_4

If you do not unregister your hotkey before shutting down your program, you can cause a Big Blue Screen of Death. I did that a few times when I started working with HotKeys years ago.

Member Avatar for Nutster
0
186
Member Avatar for Christian_4

Another way of handling this is with a Select block: Select Case MsgBox("Are you sure you want to Logout?", vbYesNo, "Confirmation") Case vbYes frmAuthenticaion.Show Unload Me Case vbNo Exit Sub End Select Using a Select block gives you more flexibility for when you are using an option that gives more …

Member Avatar for Nutster
0
509
Member Avatar for Manikanta Sharma

What sort of things have you already done? What steps do you take to do this manually, if you are doing it already? What software are you using already to generate the ticket?

Member Avatar for Nutster
0
470
Member Avatar for themathprof

What worked for me: I created a form with 2 pictures and a command button. I loaded an image in Picture2 during design-time and left Picture1 empty. I then used this VB6 function to copy the image when I clicked the command button that I called cmdCopy. Sub cmdCopy_Click() Set …

Member Avatar for Santanu.Das
0
2K
Member Avatar for daniel1977

In line 51, you declare the prototype for a function, but I think you actually do not need lines 51 and 52. They look like they are getting in the way, so remove those two lines and see what happens.

Member Avatar for NathanOliver
0
205
Member Avatar for jonathan.paul.7543

You will need a table with your bookings. Room_Number, Customer, Booking_Start, Booking_End. Primary key is Room_Number + Booking_Start. Unique key is Room_Number + Booking_End. Foreign keys are Room_Number (to table Rooms), Customer (to table Customers). To check if a room has already been booked for a new booking do a …

Member Avatar for David_50
0
1K
Member Avatar for ms95

The first thing you do in `main` is pass the uninitialized pointer `num` to `free_allocated()`. This is probably a mistake, especially considering what `free_allocated()` does. I realize this is a much smaller issue than the other things mentioned, but it can cause things to blow up just as well.

Member Avatar for ms95
0
344
Member Avatar for Shamar_1

If you want to add this question to the C++ FAQ, please read that thread and then add it to that thread in an appropriate manner.

Member Avatar for rubberman
-1
247
Member Avatar for kent.johnstone_1

You are mixing your types. Let's do this in two steps. enum mem_types { SRAM, FRAM, EEPROM, FLASH }; enum mem_types volatile *MEM_TYPE = NULL; An enum is a list of constants, so there is no need for the `const`; in fact, it gets in the way. You then specify …

Member Avatar for Nutster
0
242
Member Avatar for SkateX

The add and multiply member functions return their results, so you need to store that result to be able to use it later. They do not modify the original object. Also, rather than using the void constructor, try using the 2-argument constructor. So starting on line 18: System.out.println("Sum:"); x = …

Member Avatar for Nutster
0
540
Member Avatar for TObannion

The problem is on line 14 of the CharStack driver program. You are assigning integers to char. You might want to change that line to store actual chars instead. The integers were being interpretted as ASCII character codes. Try `char A=65; cout << A <<endl;` to this in action. Every …

Member Avatar for NathanOliver
0
329
Member Avatar for lewashby

When you *declare* a pointer, you use the `type *name` convention to say, make a pointer of this type called name. After that, the compiler knows that *name* is a pointer, so you don't have to keep reminding it that *name* is a pointer by adding a splat (`*`). In …

Member Avatar for mike_2000_17
0
428
Member Avatar for ivylyn

Just looking at software applications and software applications still gives a huge amount of possible topics. What kind of thing are you interested in exploring? Once you have your *topic* well-defined, the title should be easy to define.

Member Avatar for Nutster
0
133

The End.