home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.windows-xp      One of my personal favourites!      146,966 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 146,216 of 146,966   
   marksaguisag@gmail.com to All   
   Re: Test your knowledge of C++.   
   02 Nov 12 06:42:47   
   
   On Monday, January 23, 2006 11:25:59 AM UTC+8, Jeff_Relf wrote:   
   > Hi  All,  Test your knowledge of C++, below.   
   >   
   > #include    
   > int  M [ ] = { 2, 9 },  * P = M + 1 ;   
   > main() {  printf( " %d == M [ %d ] \n", * P --, P - M ); }   
   >   
   > What will it print ?   
      
   can you help me to program this?   
      
   1. Write a c++ program that will print the lyrics of 12 Days of Christmas   
   using if else if statement,   
   single for loop, single do...while loop and 13 print statements. (note: 1 day,   
   2 day, 3 day, 4 day...   
   is accepted)   
   2. Write a c++ program that will print the lyrics of 12 Days of Christmas   
   using switch case   
   statement, single for loop, and 14 print statements. (note: 1 day, 2 day, 3   
   day, 4 day... is   
   accepted)   
   3. Write a c++ program that will print the lyrics of 12 Days of Christmas   
   using if else statement,   
   single for loop and 16 print statements. (note: should be 1st day, 2nd day,   
   3rd day, 4th day...)   
      
   thanks a lot.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca