Tuesday, July 28, 2009

C++ really need your help!?

thanks again for helping me.


What is printed by the following program?





#include%26lt;iostream%26gt;


using namespace std;








int main()





{





cout %26lt;%26lt; "$$$" %26lt;%26lt; '\t' %26lt;%26lt; "%26amp;%26amp;%26amp;" %26lt;%26lt; '\n';





cout %26lt;%26lt; endl %26lt;%26lt; endl %26lt;%26lt; endl;





cout %26lt;%26lt;'$'%26lt;%26lt;" * " %26lt;%26lt; '\n';





cout %26lt;%26lt;'a'%26lt;%26lt;'t';


cout %26lt;%26lt;"good-bye!";





return 0;


}

C++ really need your help!?
$$$............... %26amp;%26amp;%26amp;











$ *


atgood-bye!





(dots actually the tab space)
Reply:Im not familiar with C++ at all but I would say





the $$$ then mabey a space then the %26amp;%26amp;%26amp;





the \n is basically %26lt;br%26gt; in HTML





the endl, not sure on





looks like just a bunch of junk, nothing important.


No comments:

Post a Comment