Hello Anastasiia123,
Perhaps you ought write a book called C++ worst practices.
My "best" practices include enabling all warnings and treating them as errors.
Four people tried to get me fired for that. I was creating errors in their code. . .
Let us embrace the worst, it is for the best.
[snip - rant about success oriented programming]
Cheers,...
User Profile
Collapse
-
Hello Ashik,
These sorts of problems stink. Conversion of outdated formats (e.g. your VS2017) are not always clean.
My general approach is to create a new project and introduce the elements incrementally.
When it fails, you will have a much reduced problem to resolve.
Good Luck!
--OralloyLeave a comment:
-
Problem With Comparison Operator <=> in G++
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
Code:g++-12
-
FPGA Question
Hello Folks,
I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA.
My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++ language.
Are any of you able to point me at a working example for the OrangeCrab boards? I have one available, so a working example is something I can insert my work into.
Searching the 'net... -
Oralloy replied to I was sent this code and can't figure out why I keep getting "Incomplete Data type Errorin CPresumably you were able to sort this out.
Will you take a moment to show the rest of us what the solution was?Leave a comment:
-
Lady WeaknessForCats ,
Thank you for getting back to me. I appreciate your deep and thoughtful response. If I was rude, please accept my apologies as that was not my intent.
I had looked at some of those types of articles, and couldn't decide if it was going to give me useful information, or if it would provide a false (or useless) statistic for what I am trying to measure. Also, I was trying to avoid reinvention of...Leave a comment:
-
Oralloy replied to Server Error in '/dataBasee' Application. Format of the initialization string does noin ASP .NETSo what I'm reading is that you don't have a database correctly configured.
If you don't have a connection, asking an empty Connection object for its connection string is kind of silly.
Or, perhaps you've got a variable name mismatch between _Conn and _con?
You could use an ODBC connect string in your code, likeCode:String a = "Driver={SQL Server};Server=myServerAddress;Database=myDataBase;Uid=myUsername;
Leave a comment:
-
mercus,
You will have to use an adaptive algorithm that finds disjoint sets. The algorithm is recursive...
Algorithmically , I would try the following:
Code:Create three sets - non-sampled points, water, and islands. non-sampled points and water are sets of raw data. islands is a set of sets, each entry will be an island. Find-Water For each point in non-sampled, if elevation is
Leave a comment:
-
scy277,
No. Not really. There are always ways of spoofing the system inputs.
Put another way, how would your presence at the time the staff were entered into the database allowed you confidence that all staff members were correctly logged?
Security systems are based on trust. Do you trust the people who recorded the data, or no?
On the other hand, if you want to validate against other...Leave a comment:
-
Oralloy replied to Based on from date and todate selection i need to export the database value to excelin C SharpI suggest that you run an SQL query from within Excel, if you can. Then the logic will be simpler.Leave a comment:
-
Iterative Algorithm
In this, I agree with ADezii - you will never be able to match all patterns for names correctly, but you can solve for all of your data.
I've done this before, and it took quite a few pattern matches to get through a large (ca. 100,000 records) database. I did not fully check every result, but my method left me with high confidence. I started by formulating a solution and testing it. Then, I would...Leave a comment:
-
weaknessforcats ,
You are the recognised expert, so I will try to explain in an intelligible way....
I am working on an embedded system running Linux that has both a hard-disk and flash memory. The flash memory is accessed as a hard disk using the JFFS2 file-system. In addition on hard-disk fail, the system will restart and use the flash in place of the hard-drive, but with a reduced level of writes.
The...Leave a comment:
-
burolla,
My apologies, I haven't received notification messages correctly, and I lost track of this conversation.
There is a cross-tab query available in access.
Unfortunately I'm not in a position to write one for you right now.
Try looking up the SQL keyword "TRANSFORM" .
This is an implemnetation of a Pivot query.
Luck,
OralloyLeave a comment:
-
Shawn29316,
Does PhilOfWalton's example get you off of the ground?
OralloyLeave a comment:
-
Shijo,
Use tablespaces.
ref: PostgreSQL Documentation 9.5: CREATE TABLESPACE
Cheers!
OralloyLeave a comment:
-
Data Bulk in Database Write
Folks,
Pardon my question here, but I am trying to get a handle on I/O levels when writing to a SQLite database.
My requirement is to limit the amount of write to a JFFS file-system, so that we do not suffer catestrophic failure before end of system life.
Two models are held available - keep the database in memory and copy to flash periodically, or just keep the database on the flash.
... -
Shawn29316,
Is there any reason that you need to execute an update query?
What prevents you from building the required view of your database, and then use that as the basis of your report?
Alternately, as a view is just a (sometimes updatable) query, you can just build your query as a stored query and base the report on that.
Or, am I missing something obvious?
Cheers,
...Leave a comment:
-
Look-Up On Google
Recardo de Mila,
Give a query to google: VBA read MAC address; there are some interesting answers.
This looks promising (a rewrite of several examples):
Code:''--local computer is "." Let Computer = "." ''--get queryable system object (win management service?) Set WinMgmts = GetObject("winmgmts:{impersonationLevel=impersonate}!\\"
Leave a comment:
-
Hey blitz,
Are you trying to use a real clock value, from your system, or are you just faking it with the three nested loops?
Kind Regards,
OralloyLeave a comment:
-
Use a Regular Expression (RegEx)
Good Morning Ackon,
Try pattern matching and taking off the last part. Most languages allow capture of parenthetic sub-expressions.
Code:Complete regular expression: ".*/([^/]*)" Captured component is: "([^/]*)"
OralloyLeave a comment:
No activity results to display
Show More
Leave a comment: