Search
 
SCRIPT & CODE EXAMPLE
 

CPP

prompt user for bool statement C++

#include <iostream>

using namespace std;

int main()
{
    bool aSmile, bSmile;
    cout << "a smiling ?" << endl;
    cin >> aSmile;
    cout << "b smiling ?" << endl;
    cin >> bSmile;
    if (aSmile && bSmile == true)
        cout << "problem";
    else
        cout << "no problem";
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: c++ optimize big int array 
Cpp :: C++ Detect when user presses arrow key 
Cpp :: nand in cpp 
Cpp :: convert string to double arduino 
Cpp :: 0-1 knapsack problem implementation of code input array 
Cpp :: sfml thread multi argument function 
Cpp :: how to open file without override c++ 
Cpp :: find substring after character 
Cpp :: C++ Display a text 5 times 
Cpp :: https://www.cplusplus.com/doc/tutorial/pointers/ 
Cpp :: pimpl c++ 
Cpp :: c++ terinary operator 
Cpp :: find with hash set 
Cpp :: cout two dimension array c++ 
Cpp :: find node from pos linkedlist c++ 
Cpp :: passing array to the function c++ 
Cpp :: transform c++ 
Cpp :: Corong_ExerciseNo3(1) 
Cpp :: enqueue function with linked list implementation in c++ 
Cpp :: c++ cash card 
Cpp :: 28+152+28+38+114 
Cpp :: Passing a string to a function 
Cpp :: find the mminimum of the vector and its position in c++ 
Cpp :: Reading package lists... Done Building dependency tree Reading state information... Done mysql-server is already the newest version (5.7.36-0ubuntu0.18.04.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 
Cpp :: c++ to c converter online 
Cpp :: Studying Alphabet codechef solution in c++ 
Cpp :: asio broadcast permission 
Cpp :: 10011101 
Cpp :: Arduino Access Point ESP8266 
Cpp :: pca compact trick 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =