#include <iostream>
#include <string>
using namespace std;
class Student
{
public:
void get_value()
{cin>>num>>name>>sex;}
void display()
{
cout < <"num:" < <num < <endl;
cout < <"name:" < <name < <endl;
cout < <"sex:" < <sex < <endl;
}
private:
int num;
string name;
char sex;
};
class Student1:public Student
{
public:
void display_1(int &age,string &addr)
{
cout < <" age:" < <age < <endl;
cout < <"address:" < <addr < <endl;
}
int age;
string addr;
};
int main()
{
Student1 stud;
stud.get_value();
stud.display();
stud.display_1(10,"haha");
return 0;
}
ÓÃVS2005±àÒë ±¨Õâ¸ö´íÎóStudent1::display_1¡±: ²»Äܽ«²ÎÊý 1 ´Ó¡°int¡±×ª»»Îª¡°int &¡±
ÇëÎÊ Èç¹ûÎÒ·ÇÒªstud.display_1(10,"haha");
void display_1(int &age,string &addr)
ÒªÔõôд£¿
ÄãÒª°ÑÒýÓÃÈ¥µô£¬Ð´³Édisplay_1(int, string );
±àÒëͨ¹ýÁË µ«ÊÇÖµ¸Ð¾õ»¹ÊÇû´«¹ýÈ¥°¡
4 str m
Ïà¹ØÎÊ´ð£º
µØµãÔÚÉîÛÚÄÏɽ
¡¡¡¡×öCÈí¼þ¡£ÊÔÓÃ2K£¬²»ÖªµÀתÕý¸ø¹«Ë¾Ì¸¶àÉÙºÏÊʰ¡£¿
¡¡¡¡ÁíÍ⣬±¾ÈËС±¾£¬Ó¢ÓïÁù¼¶£¬ÊÔÓÃÈý¸öÔ±íÏÖµÃÒ²ËãÖÐÉÏˮƽ¡£µ«ÊÇÏÖÔÚ»¹²»ÄÜ×öÏîÄ¿¡£ÁíÍâ±ÏҵѧУûÓÐÃûÆø¡£
¡¡¡¡×ªÕý¸ø¹«Ë¾Ì¸¶àÉ ......
ÎÊһϣº
#include <stdio.h>
int main()
{
char x, y, z;
int i;
int a[16];
for(i=0; i<=16; i++)
{
a[i] = 0;
......
×î½üͻȻÏë×Ô¼ºÀ´ÊµÏÖÒ»¸öÎå×ÓÆå³ÌÐò,µ«²»ÖªµÀÔõô¿ªÊ¼,×Ô¼ºÒ²Ã»Ñ§»Í¼Ðκ¯Êý,ÄÜÔÚ¿ØÖÆÌ¨ÏÂÖ±½ÓдÂð>>>?????
¿ØÖÆÌ¨£¿±ÈͼÐνçÃæ¸üÂé·³¡£
http://search.download.csdn.net/search/%E4%BA%94%E5%AD%90% ......
'\108'×÷Ϊ×Ö·û³£Á¿¶Ô²»¶Ô£¿
תÒå×Ö·û'\ddd'±íʾ3λ8½øÖÆËù´ú±íµÄ×Ö·û¡£ µ«ÊÇ108²»ÊÇÕýÈ·µÄ8½øÖƱíʾ·½·¨£¬Òò´ËÓ¦¸ÃÊÇ´íÎóµÄ¡£
µ«ÊÇchar a='\108'; Ϊʲô±àÒë²»³ö´íÄØ£¿
\108 û³¬¹ý ......
//C ½Ó¿Ú
extern "C"
{
TESSDLL_API int __cdecl GetTessText(const char *imagefile, char *text);
}
//ÎÒÔÚC#ÖÐÉùÃ÷
//µ÷ÓÃC DLL Öеĺ¯Êý
[DllImport("OCRapi.dll&quo ......