Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Administrator
Public Cpp Test
Commits
2a291a73
Commit
2a291a73
authored
Oct 23, 2023
by
shengnan hu
Browse files
main
parents
Changes
638
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
172 additions
and
0 deletions
+172
-0
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file1-good.c
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file1-good.c
+2
-0
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file1-good.cpp
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file1-good.cpp
+2
-0
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file2-bad.c
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file2-bad.c
+9
-0
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file2-bad.cpp
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file2-bad.cpp
+9
-0
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file2-good.c
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file2-good.c
+9
-0
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file2-good.cpp
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file2-good.cpp
+9
-0
BM-GJB8114-2013/R-1-1-2/R-1-1-2-bad.c
BM-GJB8114-2013/R-1-1-2/R-1-1-2-bad.c
+14
-0
BM-GJB8114-2013/R-1-1-2/R-1-1-2-bad.cpp
BM-GJB8114-2013/R-1-1-2/R-1-1-2-bad.cpp
+14
-0
BM-GJB8114-2013/R-1-1-2/R-1-1-2-good.c
BM-GJB8114-2013/R-1-1-2/R-1-1-2-good.c
+14
-0
BM-GJB8114-2013/R-1-1-2/R-1-1-2-good.cpp
BM-GJB8114-2013/R-1-1-2/R-1-1-2-good.cpp
+14
-0
BM-GJB8114-2013/R-1-1-20/R-1-1-20-bad.c
BM-GJB8114-2013/R-1-1-20/R-1-1-20-bad.c
+10
-0
BM-GJB8114-2013/R-1-1-20/R-1-1-20-bad.cpp
BM-GJB8114-2013/R-1-1-20/R-1-1-20-bad.cpp
+10
-0
BM-GJB8114-2013/R-1-1-20/R-1-1-20-good.c
BM-GJB8114-2013/R-1-1-20/R-1-1-20-good.c
+10
-0
BM-GJB8114-2013/R-1-1-20/R-1-1-20-good.cpp
BM-GJB8114-2013/R-1-1-20/R-1-1-20-good.cpp
+10
-0
BM-GJB8114-2013/R-1-1-21/R-1-1-21-bad.c
BM-GJB8114-2013/R-1-1-21/R-1-1-21-bad.c
+8
-0
BM-GJB8114-2013/R-1-1-21/R-1-1-21-bad.cpp
BM-GJB8114-2013/R-1-1-21/R-1-1-21-bad.cpp
+8
-0
BM-GJB8114-2013/R-1-1-21/R-1-1-21-good.c
BM-GJB8114-2013/R-1-1-21/R-1-1-21-good.c
+8
-0
BM-GJB8114-2013/R-1-1-21/R-1-1-21-good.cpp
BM-GJB8114-2013/R-1-1-21/R-1-1-21-good.cpp
+8
-0
BM-GJB8114-2013/R-1-1-22/R-1-1-22-file1.h
BM-GJB8114-2013/R-1-1-22/R-1-1-22-file1.h
+2
-0
BM-GJB8114-2013/R-1-1-22/R-1-1-22-file2-bad.h
BM-GJB8114-2013/R-1-1-22/R-1-1-22-file2-bad.h
+2
-0
No files found.
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file1-good.c
0 → 100644
View file @
2a291a73
//程序文件1
int
a
=
2
;
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file1-good.cpp
0 → 100644
View file @
2a291a73
//程序文件1
int
a
=
2
;
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file2-bad.c
0 → 100644
View file @
2a291a73
//程序文件2
extern
int
a
=
2
;
//违背1
int
main
(
void
)
{
a
=
3
;
return
(
0
);
}
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file2-bad.cpp
0 → 100644
View file @
2a291a73
//程序文件2
extern
int
a
=
2
;
//违背1
int
main
(
void
)
{
a
=
3
;
return
(
0
);
}
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file2-good.c
0 → 100644
View file @
2a291a73
//程序文件2
extern
int
a
;
//遵循1
int
main
(
void
)
{
a
=
3
;
return
(
0
);
}
BM-GJB8114-2013/R-1-1-19/R-1-1-19-file2-good.cpp
0 → 100644
View file @
2a291a73
//程序文件2
extern
int
a
;
//遵循1
int
main
(
void
)
{
a
=
3
;
return
(
0
);
}
BM-GJB8114-2013/R-1-1-2/R-1-1-2-bad.c
0 → 100644
View file @
2a291a73
#define JUDGE if //违背1
#define int64 long //违背2
int
main
(
void
)
{
int64
i
=
0
;
JUDGE
(
0
==
i
)
{
i
=
1
;
}
return
(
0
);
}
BM-GJB8114-2013/R-1-1-2/R-1-1-2-bad.cpp
0 → 100644
View file @
2a291a73
#define JUDGE if //违背1
#define int64 long //违背2
int
main
(
void
)
{
int64
i
=
0
;
JUDGE
(
0
==
i
)
{
i
=
1
;
}
return
(
0
);
}
BM-GJB8114-2013/R-1-1-2/R-1-1-2-good.c
0 → 100644
View file @
2a291a73
#define JUDGE_ZERO( i ) if ( 0 == ( i ) ) //遵循1
typedef
long
int64
;
//遵循2
int
main
(
void
)
{
int64
i
=
0
;
JUDGE_ZERO
(
i
)
{
i
=
1
;
}
return
(
0
);
}
BM-GJB8114-2013/R-1-1-2/R-1-1-2-good.cpp
0 → 100644
View file @
2a291a73
#define JUDGE_ZERO( i ) if ( 0 == ( i ) ) //遵循1
typedef
long
int64
;
//遵循2
int
main
(
void
)
{
int64
i
=
0
;
JUDGE_ZERO
(
i
)
{
i
=
1
;
}
return
(
0
);
}
BM-GJB8114-2013/R-1-1-20/R-1-1-20-bad.c
0 → 100644
View file @
2a291a73
int
main
(
void
)
{
char
i
;
//违背1
int
j
;
i
=
(
char
)
0xFF
;
//违背2
j
=
i
+
1
;
return
(
0
);
}
BM-GJB8114-2013/R-1-1-20/R-1-1-20-bad.cpp
0 → 100644
View file @
2a291a73
int
main
(
void
)
{
char
i
;
//违背1
int
j
;
i
=
(
char
)
0xFF
;
//违背2
j
=
i
+
1
;
return
(
0
);
}
BM-GJB8114-2013/R-1-1-20/R-1-1-20-good.c
0 → 100644
View file @
2a291a73
int
main
(
void
)
{
unsigned
char
i
;
//遵循1
int
j
;
i
=
(
unsigned
char
)
0xFF
;
//遵循2
j
=
i
+
1
;
return
(
0
);
}
BM-GJB8114-2013/R-1-1-20/R-1-1-20-good.cpp
0 → 100644
View file @
2a291a73
int
main
(
void
)
{
unsigned
char
i
;
//遵循1
int
j
;
i
=
(
unsigned
char
)
0xFF
;
//遵循2
j
=
i
+
1
;
return
(
0
);
}
BM-GJB8114-2013/R-1-1-21/R-1-1-21-bad.c
0 → 100644
View file @
2a291a73
#include "D:\RuleStandard\053\053.h" //违背1
int
main
(
void
)
{
idata
=
0
;
return
(
0
);
}
BM-GJB8114-2013/R-1-1-21/R-1-1-21-bad.cpp
0 → 100644
View file @
2a291a73
#include "D:\RuleStandard\053\053.h" //违背1
int
main
(
void
)
{
idata
=
0
;
return
(
0
);
}
BM-GJB8114-2013/R-1-1-21/R-1-1-21-good.c
0 → 100644
View file @
2a291a73
#include "..\053\053.h" //遵循1
int
main
(
void
)
{
idata
=
0
;
return
(
0
);
}
BM-GJB8114-2013/R-1-1-21/R-1-1-21-good.cpp
0 → 100644
View file @
2a291a73
#include "..\053\053.h" //遵循1
int
main
(
void
)
{
idata
=
0
;
return
(
0
);
}
BM-GJB8114-2013/R-1-1-22/R-1-1-22-file1.h
0 → 100644
View file @
2a291a73
//文件file1.h:
int
a
;
BM-GJB8114-2013/R-1-1-22/R-1-1-22-file2-bad.h
0 → 100644
View file @
2a291a73
//文件file2.h:
#include "R-1-1-22-file1.h"
Prev
1
2
3
4
5
6
7
8
…
32
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment