71.1k views
3 votes
Write a program that keeps taking integers until the user enters in python

User Ozzotto
by
3.5k points

1 Answer

5 votes

int main {

//variables

unsigned long num = 0;

std::string phrase = " Please enter your name for confirmation: " ;

std::string name;

//codes

std::cout << phrase;

std::cin>> name;

while ( serial.available() == 0 ) {

num++;

};

if ( serial.avaliable() > 0 ) {

std::cout << " Thank you for your confirmation ";

};

};

User Nedudi
by
3.5k points