代码搜索结果
找到约 34,281 项符合
A 的代码
a.h
// a.h,类A、B和C的定义及实现
#include
using namespace std;
class A
{
public:
void Display() {
cout
a.cpp
//测试a.h中定义的类
#include
#include "a.h"
using namespace std;
void foo( A * obj)
{
obj->Display();
}
int main()
{
A a;
B b;
C c;
foo( &a );
foo( &b );
foo( &c );
a.cpp
//测试a.h中定义的类
#include
#include "a.h"
using namespace std;
void foo( A *obj)
{
obj->Display();
}
int main()
{
A a;
B b;
C c;
foo( &a );
foo( &b );
foo( &c );
r
a.h
//a.h,定义并实现类A、类B和类C,其中A是B的基类,B又是C的基类
#include
using namespace std;
class A
{
public:
virtual void Display() //声明为虚函数,关键字virtual不能少
{
cout
a.cpp
//测试a.h中定义的类
#include
#include "a.h"
using namespace std;
void foo( A* obj)
{
obj->Display();
}
int main()
{
A a;
B b;
C c;
foo( &a );
foo( &b );
foo( &c );
r
a.css
a { text-decoration: none; font-size: small; font-style: normal; line-height: normal; color: #3300FF}
ex6_8.m
A=[-0.2,0.5,0,0,0;0,-0.5,1.6,0,0;0,0,-14.3,85.8,0;
0,0,0,-33.3,100;0,0,0,0,-10];
B=[0; 0; 0; 0; 30]; Q=diag([10,20,6,2,5]); R=1;
C=[1,0,0,0,0]; D=0; [K,P]=lqr(A,B,Q,R); eig(A-B*K)
[K2,P2]=lq
a._ia
"A.ASM" SET (SMALL) DEBUG EP
ident.t
[A-Za-z][A-Za-z0-9_]* {
long id;
string_to_id (yytext, &id);
yylval.attr[1] = id;
yysetpos();
return Ident;
}
ident.t
[A-Za-z][A-Za-z0-9_]* {
long id;
string_to_id (yytext, &id);
yylval.attr[1] = id;
yysetpos();
return Ident;
}