find mistake
2 posters
Page 1 of 1
find mistake
- Code:
#include <conio.h>
using namespace std;
void OS_Solaris_print()
{
cout<<"Solaris - Sun Microsystems\n";
}
void OS_Windows_print()
{
cout<<"Windows - Microsoft\n";
}
void OS_HP-UX_print()
{
cout<<"HP-UX - Hewlett Packard\n";
}
int main()
{
int num;
cout<<"Enter the number (1-3):\n";
cin>>num;
switch(num)
{
case 1:
OS_Solaris_print();
break;
case 2:
OS_Windows_print();
break;
case 3:
OS_HP-UX_print();
break;
default:
printf("Hmm! only 1-3 :-)\n");
break;
}
getch();
return 0;
}
There is a silly mistake.. can you find it..?
Similar topics
» find the mistake
» Who can find out the error in this program???
» Find out best server for you to download repo applications
» Find your computer's Gender : Male or Female?
» Need help to find a solution of write protected problem of pendrive.
» Who can find out the error in this program???
» Find out best server for you to download repo applications
» Find your computer's Gender : Male or Female?
» Need help to find a solution of write protected problem of pendrive.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford