I am a 60 year old woman with no computer skills. I put it under this heading because it was using C++ to hack peoples computers. I was typing fast so I could list everything I was seeing before they found out and blocked it again. I looked up white space so I guess that was an insult on my post being not grammatically correct.Instead of being a jerk you could have used your"jerk space" to tell me where I should have posted it.
at first I apologize for my weak English!
I use a shared library generated by MATLAB 2012b in VC++ 2012.
In my shared libray I have a function that takes two arguments and calculates normxcorr2 between them and return maximum calculated value:
function max = Normed_CC(template, image)
Now I want to send two variables of type cv::Mat from my vc++ program to it.
My problem is when I convert cv::Mat to mxArray and then send these new objects to "Normed_CC", normxcorr2 in Matlab side arise an exception with this theme:
"template at least must have two item".
sorry I don't remember exactly now because I'm not in work now and don't have access to my code...!
please help me to resolve my issue.
thanks in advance.
i'm a beginner and want to learn but i have problem !!
"error c2679 binary '<< ' no operator found which takes a right-hand operand of type "
when i used "cin"
my code is a simple as i said i'm beginner
using namespace std ;
int main ()
int age,weight ;
float bmi , height ;
string name , z ;
cout<<"Enter your name "<<endl ;
="" cin="">>name>>endl ;
cout<<"Enter your age "<<endl ;
="" cin="">>age>>endl ;
cout<<"Enter Your Weight "<<endl ;
="" cin="">>weight>>endl ;
// for height
cout<<"Enter your Height In Meters"<<endl ;
="" cin="">>height>>endl ;
z= "You Are Underweight" ;
else if ((bmi>18.5) && (bmi<24.9))
z= "You Are Normalweight" ;
else if ((bmi>24.9) && (bmi<29.9))
z= "You Are Overweight" ;
else z= "obesity " ;
cout<<"Your BMI "<<"is "<
So VS 2015 has arrived and I'd like to retarget my /clr projects to build against .NET 4.6. The project Properties page shows ".NET Target Framework Version" => "v4.5.2". But this field is non-editable (Configuration Properties > General, Project Defaults, .NET Target Framework)
I updated the SDK targeting quite easily to target the Windows 10 SDK by selecting "10.0.10240.0" in the Target Platform Version combo. Why no similar combobox for .NET targeting? grr.
I feel like I'm missing something simple but MS has never really made it simple for us C++/CLI devs.
I think must resort to hand-editing the .vcxproj files directly? Surely not.
The Add Reference dialog isn't much help either but it does confirm that I'm targeting 4.5.2.
Have you upgraded your projects yet? Is there an easy way to switch them to targeting 4.6?
PS. The 'help' is worthless in the properties dialog. It takes me to a "Cannot find requested topic..." page. Help Viewer content and linking has really gotten worse in 2015 in my experience so far.
What does "mkdir" have to do with C++ managed or otherwise?
You can lead a developer to CodeProject, but you can't make them think.
The Theory of Gravity was invented for the sole purpose of distracting you from investigating the scientific fact that the Earth sucks.
gives you an array with all elements set to zero. You now just need to add the code to set the various other items as required.
bool* pBool = boolArray + 10; // skip first 10 elements
for (int i = 0; i <10; ++i) // loop round each set of 12 elements, i.e. 10 times
// use the pBool pointer to set random values into the 12 elements
pBool += 12; // point to the next set, and repeat
Last Visit: 31-Dec-99 19:00 Last Update: 17-Jan-22 20:43