| ²é¿´: 410 | »Ø¸´: 4 | |||
| µ±Ç°Ö÷ÌâÒѾ´æµµ¡£ | |||
| µ±Ç°Ö»ÏÔʾÂú×ãÖ¸¶¨Ìõ¼þµÄ»ØÌû£¬µã»÷ÕâÀï²é¿´±¾»°ÌâµÄËùÓлØÌû | |||
soarmeÒø³æ (³õÈëÎÄ̳)
|
[½»Á÷]
¡¾ÇóÖú¡¿ÎªÊ²Ã´²»ÄÜʹÓÃ˽ÓгÉÔ±¡¾ÒÑÍê½á¡¿
|
||
|
¸ßÊÖÃǰïÎÒ¿´ÏÂÏÂÃæÕâ¸ö¼òµ¥µÄ³ÌÐò£º Í·Îļþnew.h³ÌÐò: #ifndef _NEW_H_ #define _NEW_H_ #include using namespace std; class CStudent { private: string strName; int chinese; int math; int English; public: CStudent(string a,int b,int c,int d); friend ostream& operator<<(ostream& out,CStudent S); ~CStudent(){} }; #endif; È»ºóÊÇÀàµÄʵÏÖ³ÌÐò£¬ÀïÃæÓõ½ÁËÒ»¸öÊä³öÁ÷µÄÖØÔØ£º #include #include"new.h" #include using namespace std; CStudent:: CStudent(string a,int b,int c,int d) { strName=a; chinese=b; math=c; English=d; } ostream& operator<<(ostream& out,CStudent S) { cout<<"("< } ×îºóÊÇÖ÷³ÌÐò£º #include #include"new.h" #include using namespace std; int main() { CStudent student1("Hector",78,88,98); cout< return 0; } µ«½á¹û³ö´íÏÔʾÊDz»ÄÜ·ÃÎÊÀàµÄ˽ÓбäÁ¿£º student.cpp C:\Program Files\Microsoft Visual Studio\MyProjects\s1\student.cpp(14) : error C2248: 'strName' : cannot access private member declared in class 'CStudent' c:\program files\microsoft visual studio\myprojects\s1\new.h(8) : see declaration of 'strName' C:\Program Files\Microsoft Visual Studio\MyProjects\s1\student.cpp(14) : error C2248: 'chinese' : cannot access private member declared in class 'CStudent' c:\program files\microsoft visual studio\myprojects\s1\new.h(9) : see declaration of 'chinese' C:\Program Files\Microsoft Visual Studio\MyProjects\s1\student.cpp(14) : error C2248: 'math' : cannot access private member declared in class 'CStudent' c:\program files\microsoft visual studio\myprojects\s1\new.h(10) : see declaration of 'math' C:\Program Files\Microsoft Visual Studio\MyProjects\s1\student.cpp(14) : error C2248: 'English' : cannot access private member declared in class 'CStudent' c:\program files\microsoft visual studio\myprojects\s1\new.h(11) : see declaration of 'English' µ±ÎÒ°ÑÀඨÒåÖеÄȨÏÞ¸ÄΪPublicºó¾Í¿ÉÒÔÁË£¬ÕâÊÇΪʲô°¡£¿ÄǸöÊä³öÁ÷º¯ÊýÎÒÒѾ¶¨ÒåΪÓÑÔªº¯ÊýÁ˰¡£¿ ÊÕ²Ø ·ÖÏí ÆÀ·Ö Sample Text ±¾Ìû¹Ø¼ü´Ê£ºint operator std math string [ Last edited by ÓàÔó³É on 2010-1-27 at 22:33 ] |
» ²ÂÄãϲ»¶
11408Èí¼þ¹¤³ÌÇóµ÷¼Á
ÒѾÓÐ3È˻ظ´
Ò»Ö¾Ô¸211 ³õÊÔ270·Ö Çóµ÷¼Á
ÒѾÓÐ8È˻ظ´
300Çóµ÷¼Á£¬²ÄÁÏ¿ÆÑ§Ó¢Ò»Êý¶þ
ÒѾÓÐ6È˻ظ´
ѧ˶274Çóµ÷¼Á
ÒѾÓÐ9È˻ظ´
±¾¿ÆË«·Ç²ÄÁÏ£¬¿ç¿¼Ò»Ö¾Ô¸»ªµç085801µçÆø£¬283Çóµ÷¼Á£¬ÈκÎרҵ¶¼¿ÉÒÔ
ÒѾÓÐ7È˻ظ´
¸÷λÀÏʦºÃ£¬ÎÒµÄһ־ԸΪ±±¾©¿Æ¼¼´óѧ085601²ÄÁÏר˶
ÒѾÓÐ3È˻ظ´
317·Ö Ò»Ö¾Ô¸ÄÏÀí¹¤²ÄÁϹ¤³Ì ±¾¿Æºþ¹¤´ó Çóµ÷¼Á
ÒѾÓÐ7È˻ظ´
081200-11408-276ѧ˶Çóµ÷¼Á
ÒѾÓÐ5È˻ظ´
316Çóµ÷¼Á
ÒѾÓÐ7È˻ظ´
322Çóµ÷¼Á
ÒѾÓÐ7È˻ظ´

breezeluo
½ð³æ (СÓÐÃûÆø)
- Ó¦Öú: 1 (Ó×¶ùÔ°)
- ½ð±Ò: 1144.4
- Ìû×Ó: 159
- ÔÚÏß: 31.2Сʱ
- ³æºÅ: 914733
- ×¢²á: 2009-11-27
- ÐÔ±ð: GG
- רҵ: ÊýÀíͳ¼Æ
¡ï ¡ï
Сľ³æ(½ð±Ò+0.5):¸ø¸öºì°ü£¬Ð»Ð»»ØÌû½»Á÷
ÓàÔó³É(½ð±Ò+1,VIP+0):лл²ÎÓëÓ¦Öú£¬»¶Ó³£À´³ÌÐòÈí¼þ°æ£¡ 12-5 13:16
Сľ³æ(½ð±Ò+0.5):¸ø¸öºì°ü£¬Ð»Ð»»ØÌû½»Á÷
ÓàÔó³É(½ð±Ò+1,VIP+0):лл²ÎÓëÓ¦Öú£¬»¶Ó³£À´³ÌÐòÈí¼þ°æ£¡ 12-5 13:16
| ´ó¸ÅÊDZàÒëÆ÷µÄÎÊÌâ°É£¡ |

4Â¥2009-12-05 00:57:55
magic7004
½ð³æ (Ö°Òµ×÷¼Ò)
- ³ÌÐòÇ¿Ìû: 2
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 444
- ºì»¨: 4
- Ìû×Ó: 3278
- ÔÚÏß: 156.2Сʱ
- ³æºÅ: 482895
- ×¢²á: 2007-12-26
- ÐÔ±ð: GG
- רҵ: »¯Ñ§¹¤³Ì
¡ï ¡ï
Сľ³æ(½ð±Ò+0.5):¸ø¸öºì°ü£¬Ð»Ð»»ØÌû½»Á÷
jjdg(½ð±Ò+1,VIP+0):¸Ðл½»Á÷¾Ñ飡 12-4 12:39
Сľ³æ(½ð±Ò+0.5):¸ø¸öºì°ü£¬Ð»Ð»»ØÌû½»Á÷
jjdg(½ð±Ò+1,VIP+0):¸Ðл½»Á÷¾Ñ飡 12-4 12:39
|
§סÓõÄÊÇVC6°É£¿ Ã²ËÆÕâ¸öÊÇVC6µÄBug£¬½¨ÒéÂ§×¡ÖØ×°Ó¢ÎİæVC++£¬È»ºó´òSP6²¹¶¡£¬ÓпÉÄÜÄܽâ¾ö¡£ ps£ºÎÒµÄVC6Ò²Óöµ½¹ýÕâ¸öÎÊÌâ¡£²»¹ýÏÖÔÚÓÃVC++ 2005¾ÍOKµÄ¡£ |

2Â¥2009-12-04 11:24:02
soarme
Òø³æ (³õÈëÎÄ̳)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 250.5
- Ìû×Ó: 31
- ÔÚÏß: 2.4Сʱ
- ³æºÅ: 817820
- ×¢²á: 2009-07-29
- ÐÔ±ð: GG
- רҵ: ¿ØÖÆÀíÂÛÓë·½·¨
²¨²»¶¯(½ð±Ò+0,VIP+0):Èç¹û½â¾öÁ˵ϰ£¬Ç뼰ʱ·´À¡£¡Óн±Àø£¬Ð»Ð»£¡ 12-10 02:17
| Ŷ£¬Êǰ¡£¬Ð£ÄÚµÄ×îа汾¾ÍÏÂÀ´ÓÃÁË£¬»¹ÓÐһЩÆäËûĪÃûµÄ´íÎ󣬻»ÆäËûµÄ°æ±¾ÊÔÏ¡£¡£¡£¡£ |

3Â¥2009-12-04 18:52:59
soarme
Òø³æ (³õÈëÎÄ̳)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 250.5
- Ìû×Ó: 31
- ÔÚÏß: 2.4Сʱ
- ³æºÅ: 817820
- ×¢²á: 2009-07-29
- ÐÔ±ð: GG
- רҵ: ¿ØÖÆÀíÂÛÓë·½·¨
¡ï
²¨²»¶¯(½ð±Ò+1,VIP+0):¸Ðл·´À¡£¬½±ÀøÒ»Ï¡£ 12-11 20:19
²¨²»¶¯(½ð±Ò+1,VIP+0):¸Ðл·´À¡£¬½±ÀøÒ»Ï¡£ 12-11 20:19
| ¶÷£¬»»Á˸߼¶Ò»µãµÄ±àÒëÆ÷ºó¿ÉÒÔÁË¡£vc6.0»¹ÊÇ´æÔÚһЩÎÊÌâµÄ¡£ |

5Â¥2009-12-11 19:34:36














»Ø¸´´ËÂ¥