hi i wanna convert this program to c++ but i dont know how to do that i need tha
ID: 3635610 • Letter: H
Question
hi i wanna convert this program to c++ but i dont know how to do that i need that this program runs an error message that depend on an integer parameter./*this function prints an error message that depends on an integer parameter.
void error_message(int error_flag)
{
/*print the message. */
switch (error_flag)
{
case 1:
printf("error identified in the distance data. ");
break;
case 2:
printf("error identified in the veocity data. ");
break;
case 3:
printf("error identified in the acceleration data. ");
break;
default:
printf(unidentified error ocurred. );
break;
}
/* void return. */
return;
}
Explanation / Answer
this should help you in future-http://sourceforge.net/projects/ctocpp/ a c to c++ converter.comes handy..very useful thank you.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.