C/C++ÖеĽṹÌå
??¨°???¨´?¦Ì¨°???¡ê?¡ä?¦ÌY?¨¢11¨°y¨®?¦Ì?¨¤y¡Á¨®?¡ê
¨¤?¨®?¨°y¨®?¡ä?¦ÌY¦Ì?o?¡ä|o¨¹?¨¤¡ê??¨¹¦Ì?D¡ì?¨ºo¨ª?????¨¤2??T??¡ê?¦Ì?¨°y¨®?¦Ì?2¨´¡Á¡Â¡¤?¨º?o¨ª?¦Ì¡ä?¦ÌY??o?¨°??¨´¡ê?????¨®?¨º????¦Ì?¡Â¨¦?¨®?¨°y¨®??¨¦¨°?¡Á?¦Ì?3¨¬D¨°¦Ì?¨°¡Á?¨¢o¨ª¨°¡Á2¨´¡Á¡Â¡ê??¨¹¦Ì?¨®?¨º?¨®¨¨???¨²?¨¢11o¨ª¡ä¨®¦Ì?¨º¡Ào¨°¡ê?¡À¨¹?a¡ä?¦ÌY?¨¢11¡À?¨¢?o¨¹¡ä¨®¦Ì??¦Ì¡ê??¨²¨º??¨²¡ä?¡ê?¨¬¨¢??D¡ì?¨º?¡ê #include <iostream> ¨¦????¨°???¦Ì?¡Â¨¢?¨°¡Á¨®?¨°y¨®????¨¢11¨¬???DD2¨´¡Á¡Â¦Ì?¨®?¨º?¡ê??????¨°????¦Ì???¡À¨¨¨¢???¨¤y3¨¬¡ê???¨°?2?¡¤???1?¨®¨²D¡ì?¨º¦Ì??¨º¨¬a?¡ê //-------------------------------------Àý³Ì1--------------------------------- Àý³Ì2µÄЧÂÊÒªÔ¶¸ß¹ýÀý³Ì1µÄÔÒòÖ÷ÒªÓÐÒÔÏÂÁ½´¦£º µÚÒ»: Àý³Ì1ÖÐµÄ test get_score() µ÷ÓõÄʱºòÔÚÄÚ²¿ÒªÔÚÕ»¿Õ¼ä¿ª±ÙÒ»¸öÃûΪpnµÄ½á¹¹Ìå±äÁ¿£¬³ÌÐòpnµÄʱºòÓÖÔÙ´ÎÔÚÕ»ÄÚ´æ¿Õ¼äÄÚ×Ô¶¯Éú³ÉÁËÒ»¸öÁÙʱ½á¹¹Ìå±äÁ¿temp£¬ÔÚÇ°ÃæµÄ½Ì³ÌÖÐÎÒÃÇÒѾ˵¹ý£¬ËüÊÇÒ»¸öcopy£¬¶øÀý³Ì2Öеģº void get_score(test &pn) ȴûÓÐÕâÒ»¹ý³Ì£¬²»¿ª±ÙÈκÎеÄÄÚ´æ¿Õ¼ä£¬Ò²Ã»ÓÐÈκÎÁÙʱ±äÁ¿µÄÉú³É¡£ µÚ¶þ: Àý³Ì1ÔÚmian()ÖУ¬±ØÐë¶Ô·µ»ØµÄ½á¹¹Ìå±äÁ¿½øÐÐÒ»´Î½á¹¹Ìå±äÁ¿Óë½á¹¹Ìå±äÁ¿Ö±½ÓµÄÏ໥¸³Öµ²Ù×÷¡£
¶øÀý³Ì2ÖÐÓÉÓÚÊÇͨ¹ýÄÚ´æµØÖ·Ö±½Ó²Ù×÷£¬ËùÒÔÍêȫûÓÐÕâÒ»¹ý³Ì£¬Ìá¸ßÁËЧÂÊ¡£
º¯ÊýÒ²ÊÇ¿ÉÒÔ·µ»Ø½á¹¹ÌåÓ¦Óõģ¬Àý×ÓÈçÏ£º #include <iostream> |
ÁèÖڿƼ¼×¨ÒµÌṩ·þÎñÆ÷×âÓᢷþÎñÆ÷Íйܡ¢ÆóÒµÓʾ֡¢ÐéÄâÖ÷»úµÈ·þÎñ£¬¹«Ë¾ÍøÕ¾£ºhttp://www.lingzhong.cn ΪÁ˸ø¹ã´ó¿Í»§Á˽â¸ü¶àµÄ¼¼ÊõÐÅÏ¢£¬±¾¼¼ÊõÎÄÕÂÊÕ¼¯À´Ô´ÓÚÍøÂç,ÁèÖڿƼ¼×ðÖØÎÄÕÂ×÷ÕߵİæȨ£¬Èç¹ûÓÐÉæ¼°ÄãµÄ°æȨÓбØҪɾ³ýÄãµÄÎÄÕ£¬ÇëºÍÎÒÃÇÁªÏµ¡£ÒÔÉÏÐÅÏ¢ÓëÎÄÕÂÕýÎÄÊDz»¿É·Ö¸îµÄÒ»²¿·Ö,Èç¹ûÄúҪתÔر¾ÎÄÕÂ,Çë±£ÁôÒÔÉÏÐÅÏ¢£¬Ð»Ð»! |