代码搜索:msc 开发教程
找到约 10,000 项符合「msc 开发教程」的源代码
代码结果 10,000
www.eeworm.com/read/229812/4742270
c msc06.c
/* should give only one error */
struct S {
protected:
int s;
};
struct T : virtual S {
int t;
void foo();
};
struct R : virtual S {
int r;
void foo();
};
struct Q : R
www.eeworm.com/read/229812/4742272
c msc04.c
// is broken for everything else under the sun
struct S {
int s;
operator S *();
int & operator ->* ( int S::* );
};
void foo( S x, int S::* q )
{
(x->*q) = 1; /* shou
www.eeworm.com/read/229812/4742273
c msc15.c
struct S {
operator int ();
operator double ();
int s;
};
int (S::* p)() = &(S::operator int);
double (S::* q)() = &(S::operator double);
void foo( S *z )
{
(z->*p)();
www.eeworm.com/read/229812/4742279
c msc14.c
/*
This program reveals a fundamental flaw with the MS C7 ctor-disp method
as described in the Microsoft Object Model document. The Object Model
can be fixed by describing the resoluti
www.eeworm.com/read/229812/4742291
c msc05.c
// MSC and JPI are broken
struct S {
typedef int Z;
class Z friend;
};
Z *p;
www.eeworm.com/read/229812/4742297
c msc19.c
// mis-parses constructor for B as a bit-field
class A
{
public:
A(){}
void B(){}
};
class B: public A
{
public:
B():A(){}
};
class C: public B
{
public:
C():B(){}
}
www.eeworm.com/read/229812/4742300
c msc01.c
extern void f1();
extern int f2();
void foo()
{
0 ? f1() : f2() ; // one void, one int
}
/*
error : Value of type void is not allowed
all compilers except Borland 2.0 and MS 7.0 c
www.eeworm.com/read/229812/4742302
c msc12.c
typedef double T;
int a,b,c[10];
void expr( void )
{
(int) a, (T)(int) b, c[ sizeof(T) ];
}
void decl( void )
{
int a, T( int b ), c[ sizeof(T) ];
}
void expr_decl( void )
{
www.eeworm.com/read/229812/4742305
c msc16.c
/* MetaWare gets this right; Borland and MS doesn't */
struct VV {
int v;
};
struct MM : private virtual VV {
VV::v;
};
struct BB : private MM, private virtual VV {
VV::v;
};
www.eeworm.com/read/229812/4742328
c msc11.c
/* ignored by most compilers */
typedef enum X { A, B, C };