While loops only continue running WHILE BOTH conditions are true, not until they become true. If you want the program to stop once both conditions are true just use a negation.
!(programsdone<5 && result<50)
More Related Contents:
- How to call C++ function from C?
- Installing OpenCV 2.4.3 in Visual C++ 2010 Express [closed]
- Visual C++ equivalent of GCC’s __attribute__ ((__packed__))
- Can’t pass temporary object as reference
- MSVC++ variadic macro expansion
- What’s a very easy C++ profiler (VC++)?
- C++ Static member method call on class instance
- Visual Studio 2012 __cplusplus and C++ 11
- Difference in performance between MSVC and GCC for highly optimized matrix multplication code
- StdAfx + Header file – Order of inclusion in MFC application
- How do I read from a version resource in Visual C++
- Printing values of all fields in a C++ structure
- How to get a color palette from an image using OpenCV [closed]
- How do I compile for Windows XP with Visual Studio 2012?
- Why do I get _CrtIsValidHeapPointer(block) and/or is_block_type_valid(header->_block_use) assertions?
- How to use WinDbg to analyze the crash dump for VC++ application?
- Variadic Template in VS 2012 (Visual C++ November 2012 CTP)
- Fatal error: “No Target Architecture” in Visual Studio
- Strange ambiguous call to overloaded function error
- How to find out cl.exe’s built-in macros
- Problems with running EXE file built with Visual Studio on another computer
- Why are the return values of these doubles -1.#IND?
- How to increment an iterator by 2?
- How do I temporarily disable a macro expansion in C/C++?
- How can I see the output of the Visual C++ preprocessor? [duplicate]
- How to erase & delete pointers to objects stored in a vector?
- Measuring exception handling overhead in C++
- Explicit Return Type of Lambda
- __attribute__((format(printf, 1, 2))) for MSVC?
- How do I find the current directory?