|
I thought it was just to confuse people with small brains (me).
|
|
|
|
|
Nope, you are simply drunk because of English team success.
|
|
|
|
|
What success, they lost 2:1 to South Africa. They need someone like this guy[^] to lead and inspire.
|
|
|
|
|
OMG, Rugby!
|
|
|
|
|
Hello community,first post here and hoping I can get some help here to modify some C++ code.
So as the title said I would link some guidance to modify the source code for the dll compare plugin for Notepad++
Currently with the plugin as it is, comparing string gives the following result:
<oops cannot="" load="" picture!="">
Not very helpful to me as I do not where there the change is exactly.
What I would like it to do is something more like this:
<oops cannot="" load="" picture!="">
The source code for the plugin can be found here:
https://sourceforge.net/projects/npp-compare/
I had a look at the code in Visual Studio 2012 but I'm at a loss as to where to start making change... creating dlls is completely new to me! Any help would be much appreciated! (for starters how to load is picture to illustrate my intent )
|
|
|
|
|
|
Hello,
I need to create some control on title bar of title bar but thought it better to remove title bar and create our own custom title bar.
Please suggest how to create own title bar which could move the windows and add other options as well.
|
|
|
|
|
|
|
The most basic thing to do for your need is to handle the WM_NCHITTEST[^] message.
The LPARAM parameter gives you the mouse coordinates on your window and then you figure out if it is over your customized title bar and return HTCAPTION from the message handler.
You may also want to check when to return HTCLOSE , HTMAXBUTTON , HTMINBUTTON , HTSYSMENU etc.
«_Superman_»
I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) (October 2009 - September 2013) Polymorphism in C
|
|
|
|
|
I have recently been teaching myself C++, is it possible to go down the machine learning and artificial intelligence route effectively using this language? Or is C++ only good for game development in 2018 and onwards?
If that's the case what is a good language to go down the machine learning and artificial intelligence route?
|
|
|
|
|
As far as I know most of the ML libraries are available in R, Python, Spark etc. not sure if C++ is the correct route for ML.
|
|
|
|
|
|
C++ has been used (and is being used) for everything from low-level system APIs to ML. About the only thing I have not seen C++ used for is writing the kernel of an O/S (probably because it requires too much runtime library support).
Regarding Machine Learning libraries, what counts is not whether the library is written in C++, but whether it has an interface ("bindings") that is callable from C++. AFAIK, most low-level libraries (Android's NNAPI, Apple's Core ML, etc.) all have C++ bindings.
Many higher-level libraries (e.g. TensorFlow) call the lower-level libraries, and not all of these higher-level libraries have C++ bindings. Perhaps that is the cause of your confusion.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Miles UE wrote: Or is C++ only good for game development in 2018 and onwards
LOL no.
You can do whatever you want with C++.
The effort depends on what you want to do.
If there are C++ Machine Learning SDK, then you are ready to use them.
If there are no ML SDK, then you will need to develop them yourself; it is what people have been doing with other language, it didn't just sprouted out of the ground.
I'd rather be phishing!
|
|
|
|
|
There are a few rule-based programming languages that were developed with artificial intelligence in mind, specifically expert systems, starting with Lisp and Prolog. But, other than that, any general purpose language is suitable.
C++ is a specifically good choice for applications that involve heavy computing, and that is certainly an ostentatious property of most ML algorithms.
There's one particular problem you should watch out for however: memory management. Unlike many newer languages, C++ requires you to manage your memory yourself, and this is a constant source of problems, specifically in complex programs that require a lot of memory - and this definitely includes ML. You should therefore learn about the use of smart pointers and always use those, rather than raw pointers. The sooner you get used to using them, the better: it will save you a ton of headaches in the long run!
As an introduction, check the descriptions and articles on C++ sites (e. g. Dynamic memory management - cppreference.com[^]) , or you could find some articles right here, e. g. C++11 Smart Pointers[^]
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
|
|
|
|
|
hi
how add event handler for CTreectrl * m_treectrl;
m_treectrl->creat(......);
m_treectrl->insertitem(....);
|
|
|
|
|
|
There are some great articles here on CodeProject - Tree Controls[^]
Be sure to pick the ones written in C++.
«_Superman_»
I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) (October 2009 - September 2013) Polymorphism in C
|
|
|
|
|
#import <somedll.dll> no_namespace
Whats is the meaning of the above line?
Thanks,
|
|
|
|
|
|
It was always a good practice to first search for the answer in the documentation, which is in that case (Microsoft) just MSDN!
if not found or not understood - then welcome to this or/and many other Forums with the extended info what exactly was not understood:
#import Directive (C++) | Microsoft Docs
modified 28-Jun-18 14:57pm.
|
|
|
|
|
This is a COM (Component Object Model) thing.
Basically the COM runtime takes type library information embedded in the COM DLL and creates headers and helper methods including some exception handling so that client C++ programs can call into the DLL.
«_Superman_»
I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) (October 2009 - September 2013) Polymorphism in C
|
|
|
|
|
AnyOne Please Guide Me on my This Error <
"Stack around the variable 'Student' was corrupted."
I Receives it when I copy Members of Structure "StudentInfo" into Structure "FailStudents"
using
list[i].FullName = Student[i].FullName ;
list[i].RollNo = Student[i].RollNo;
Here list is Structure Variable of Structure "FailStudents" and Student is Structure Variable of Structure "StudentInfo"
#include<iostream>
#include<string>
using namespace std;
const int No_Of_Students = 5;
void main()
{
struct StudentInfo
{
int RollNo;
string FullName;
int marks[2];
};
StudentInfo Student[No_Of_Students];
struct FailStudents
{
int RollNo;
string FullName;
int marks[2];
};
FailStudents list[No_Of_Students];
int NoOfFailStudents = 0;
for (int i = 0; i < No_Of_Students; i++)
{
cout << "Enter Student NO " << i + 1 << \" FullName : \t";
cin >> Student[i].FullName;
cout << "Enter Student NO " << i + 1 << " Roll Number : \t";
cin >> Student[i].RollNo;
int failSubjects = 0;
for (int k = 0; k <= 2; k++) {
cout << "Enter Student NO " << i + 1 << " Subject " << k + 1 << " Marks : \t";
cin >> Student[i].marks[k];
if ((Student[i].marks[k]) < 40)
{
failSubjects++;
}
}
if (failSubjects > 1)
{
NoOfFailStudents++;
list[i].FullName = Student[i].FullName;
list[i].RollNo = Student[i].RollNo;
cout << "Student Name "<< list[i].FullName << "is fail"<< endl;
cout << "Having Rol Number " << list[i].RollNo << endl;
}
cout << "\n \n ";
}
system("pause");
}
|
|
|
|
|
You have declared marks as a 2 element array, but your loop runs 3 times.
for (int k = 0; k <= 2; k++) { cout << "Enter Student NO " << i + 1 << " Subject " << k + 1 << " Marks : \t";
cin >> Student[i].marks[k];
if ((Student[i].marks[k]) < 40)
{
failSubjects++;
}
}
It should be:
for (int k = 0; k < 2; k++) {
|
|
|
|