mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-04-08 21:20:40 +08:00
support bazel complie this project and format code.
This commit is contained in:
6
basic_content/extern/extern_c++/add.cpp
vendored
6
basic_content/extern/extern_c++/add.cpp
vendored
@@ -1,9 +1,9 @@
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
extern "C" {
|
||||
#include "add.h"
|
||||
#include "add.h"
|
||||
}
|
||||
int main() {
|
||||
add(2,3);
|
||||
return 0;
|
||||
std::cout << add(2, 3) << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user