ignore files on class

This commit is contained in:
juan 2021-10-11 15:18:22 +08:00
parent 5bbb717897
commit c23073d96c
No known key found for this signature in database
GPG key ID: 5C1E5093C74F1DC7
4 changed files with 0 additions and 78 deletions

View file

@ -1,38 +0,0 @@
/*****************************************
*
*
*
*
*
*
*
*
*
* microphone
*
*
*
* scanf
* printf
*
*
*
*
*
*
*
*
* ****************************************/
#include <stdio.h>
int main() {
char greating[20];
char name[20];
scanf("%s", greating);
printf("你叫什么名字?\n");
scanf("%s", name);
printf("你好,%s\n", name);
return 0;
}

View file

@ -1,10 +0,0 @@
#include <stdio.h>
int main (void)
{
int a, b;
scanf("%d %d",&a, &b);
printf("%d", a * b);
return 0;
}

View file

@ -1,10 +0,0 @@
#include <stdio.h>
#include <string.h>
int main(void) {
// initialize pointer variables
int i = 1;
int *p1 = &i;
printf("%i", *p1);
return 0;
}

View file

@ -1,20 +0,0 @@
/*+-+-+-+-+-+ +-+-+-+-+-+*/
/*|h|e|l|l|o| |w|o|r|l|d|*/
/*+-+-+-+-+-+ +-+-+-+-+-+*/
#include <stdio.h>
int main(void) {
// ask for a string
char greeting[20];
scanf("hello %s", greeting);
// output strings
printf("hello world\n");
printf("This is a string %s\n", greeting);
printf("this is a float %+5.2f\n", 3.14);
printf("this is a float %+5.2f\n", -3.14);
printf("this is a decimal %+d\n", 3);
return 0;
}