Compare commits
3 Commits
a2d1364b09
...
2025-examp
| Author | SHA1 | Date | |
|---|---|---|---|
|
64b5cb88ae
|
|||
|
|
dd4d499ae4 | ||
| e7ac62ab1b |
@@ -1,7 +1,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "foo.h"
|
|
||||||
|
|
||||||
int foo() {
|
int foo() {
|
||||||
printf("I am foo\n");
|
printf("I am foo\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,8 @@
|
|||||||
#include "myprint.h"
|
#include <stdio.h>
|
||||||
|
#include "foo.h"
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
foo();
|
||||||
|
|
||||||
myprint();
|
return 0;
|
||||||
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
#include "myprint.h"
|
|
||||||
|
|
||||||
int myprint() {
|
|
||||||
|
|
||||||
int a = 10, b = 20;
|
|
||||||
|
|
||||||
printf("a = %d, b = %d\n", a, b);
|
|
||||||
printf("a = %d, b = %d\n", b, a);
|
|
||||||
printf("%d%d\n", a, b);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
#ifndef MYPRINT_H
|
|
||||||
#define MYPRINT_H
|
|
||||||
|
|
||||||
int myprint();
|
|
||||||
|
|
||||||
#endif
|
|
||||||
Reference in New Issue
Block a user