2023-2024-1 20231418 《计算机基础与程序设计》第9周学习总结

发布时间 2023-11-26 18:27:16作者: 谭晓鸣

2023-2024-1 20231418 《计算机基础与程序设计》第9周学习总结

作业信息

这个作业属于哪个课程https://edu.cnblogs.com/campus/besti/2022-2023-1-CFAP
这个作业要求在哪里 https://edu.cnblogs.com/campus/besti/2023-2024-1-CFAP/homework/13005
这个作业的目标 《计算机科学概论》第10、11章 《C语言程序设计》第8章
作业正文   https://www.cnblogs.com/20231418txm/p/17857665.html

本周学习内容:

进行了一次实验,编写了一个管理学生成绩的系统

学习了指针函数,指针数组的相关知识

学习了malloc函数的相关知识

学习了字符的相关知识,字符与数组,字符与指针

实现自己的strlen函数:

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>

int Mystrlen(char str[])
{
int a,b=0;
for(a=0;;a++)
{
if(str[a]=='\0')
{
return b;
}
b++;
}
}
int main()
{
int Mystrlen(char str[]);
int n,n1,n2;
char a[100],ch;
printf("Enter a string:");
gets(a);
n=Mystrlen(a);
printf("The length of the string is:%d\n", n);
return 0;
}

基于ai的学习