Why is my program going into both an if statement AND its corresponding else statement?
问题 In part of my program, I have the code: if(cameraName == L"AVT Prosilica GT2750") { mCamera = new camera_avtcam_ex_t(); } else if(cameraName == L"QImaging Retiga 2000R\\4000R") { mCamera = new camera_qcam_ex_t(); } When I have set up my program so that cameraName defaults to L"AVT Prosilica GT2750" (and my debugger will show this to be its value), it goes into the if statement and runs mCamera = new camera_avtcam_ex_t(); , but then when I step to the next executed line my debugger skips