fix template mark

This commit is contained in:
virusdefender
2017-11-26 13:30:07 +08:00
parent 1bf4973648
commit 324535474e

View File

@@ -1,7 +1,7 @@
_c_lang_config = { _c_lang_config = {
"template": """//PREPEND START "template": """//PREPEND BEGIN
#include <stdio.h> #include <stdio.h>
//PREPEND END //PREPEND END
@@ -12,7 +12,7 @@ int add(int a, int b) {
} }
//TEMPLATE END //TEMPLATE END
//APPEND START //APPEND BEGIN
int main() { int main() {
printf("%d", add(1, 2)); printf("%d", add(1, 2));
return 0; return 0;
@@ -48,12 +48,23 @@ _c_lang_spj_config = {
} }
_cpp_lang_config = { _cpp_lang_config = {
"template": """/*--PREPEND START--*/ "template": """//PREPEND BEGIN
/*--PREPEND END--*/ #include <iostream>
/*--TEMPLATE BEGIN--*/ //PREPEND END
/*--TEMPLATE END--*/
/*--APPEND START--*/ //TEMPLATE BEGIN
/*--APPEND END--*/""", int add(int a, int b) {
// Please fill this blank
return ___________;
}
//TEMPLATE END
//APPEND BEGIN
int main() {
std::cout << add(1, 2);
return 0;
}
//APPEND END""",
"compile": { "compile": {
"src_name": "main.cpp", "src_name": "main.cpp",
"exe_name": "main", "exe_name": "main",