mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-01-11 14:30:32 +01:00
add C example
This commit is contained in:
5
gradle/01-hello-task/build.gradle
Normal file
5
gradle/01-hello-task/build.gradle
Normal file
@@ -0,0 +1,5 @@
|
||||
task hello {
|
||||
description = "Say Hello :-)"
|
||||
println "Hello FI MUNI!"
|
||||
}
|
||||
|
||||
7
gradle/03-executable/build.gradle
Normal file
7
gradle/03-executable/build.gradle
Normal file
@@ -0,0 +1,7 @@
|
||||
apply plugin: 'c'
|
||||
|
||||
executables {
|
||||
main {
|
||||
}
|
||||
}
|
||||
|
||||
6
gradle/03-executable/src/main/c/hello.c
Normal file
6
gradle/03-executable/src/main/c/hello.c
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char** argv){
|
||||
printf("Hello FI MUNI!\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user