5 Commits

Author SHA1 Message Date
7038e7ff5d Merge branch 'master' into a1012112796-patch-1 2020-12-30 20:10:57 +08:00
b4130d5cab 更新 'README.org' 2020-12-22 22:08:31 +08:00
2503225ce1 添加 'README.org' 2020-12-22 22:06:01 +08:00
7389f8cbcd 添加 'add.c' 2020-06-04 17:50:50 +08:00
1a83f2ed5d init pr (#1)
Add adder

Add main.c

Signed-off-by: a1012112796 <1012112796@qq.com>

Reviewed-on: https://www.zhao1012112796.top:3000/testg/test_repo/pulls/1
2020-05-16 14:48:55 +08:00
6 changed files with 58 additions and 15 deletions

18
.drone.yml Normal file
View File

@@ -0,0 +1,18 @@
---
kind: pipeline
type: docker
name: build_linux_test
trigger:
event:
- pull_request
- push
steps:
- name: build_test
image: gcc
commands:
- echo "start test"
- gcc main.c -o test
- ./test

View File

@@ -1,8 +0,0 @@
-----
name: "test"
about: "This template is for testing!"
title: "[TEST] "
labels:
- bug
-----
This is the template!

View File

@@ -1,9 +1,3 @@
# test_repo # test_repo
test repo test repo
$$F=ma$$
aaa ddd
aaaaa

12
README.org Normal file
View File

@@ -0,0 +1,12 @@
without latex delimiters the =_{i=1}= in =\sum_{i=1}^n a_n= is interpreted as subscript.
we support =\(...\)=, =\[...\]=, =$$...$$= and =\begin{$env}...\end{$env}= as latex fragment delimiters.
- \sum_{i=1}^n a_n (without latex delimiter)
- \(\sum_{i=1}^n a_n\)
- \[\sum_{i=1}^n a_n\]
- $$\sum_{i=1}^n a_n$$
- \begin{xyz}\sum_{i=1}^n a_n\end{xyz}
- \begin{xyz}
\sum_{i=1}^n a_n
\end{xyz}
- $2 + 2$, $3 - 3$

4
add.c Normal file
View File

@@ -0,0 +1,4 @@
int add(int a, int b)
{
return a + b;
}

23
main.c Normal file
View File

@@ -0,0 +1,23 @@
#include <stdio.h>
int add(int a, int b);
int main(int argc, char** argv)
{
int i;
printf("hello word!\n");
if (argc > 1)
{
for(i = 0; i < argc; i++)
{
printf("argv[%2d] = %s\n",i,argv[i]);
}
}
printf("add 1 + 2 = %d \n", add(1,2));
return 0;
}
int add(int a, int b)
{
return a + b;
}