- 博客(5)
- 收藏
- 关注
原创 static
static:修饰局部变量 修饰函数1 修饰局部变量表示是一个静态变量 只初始化一次 以后每次调用使用上一次的结果2 修饰全局变量static修饰全局变量 表示变量只能在本文件访问 其他文件即便使用extern声明 也不能使用3 修饰函数 表示此函数只能在本文件使用 不可以被其他的.c文件使用...
2022-04-13 16:40:17
114
原创 内存结构:
#include<stdio.h>int main(){ char *str="hello";//字符串存在常量区 常量区只读 str[2]='E'; printf("%s\n",str);//段错误} #include<stdio.h>#include<stdlib.h>#include<string.h>int main(){ char str[20]="hello";//字符串存在栈空间...
2022-04-13 16:37:54
113
原创 添加了Glide库的依赖 implementation ‘com.github.bumptech.glide:glide:4.9.0‘ 报错
Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)Duplicate class android.support.v4.app.INotificatio
2021-09-08 09:29:44
1490
2
原创 Kotlin-android-extensions
Kotlin 扩展插件添加方法如下build.gradle:app 添加id 'kotlin-android-extensions'build.gradle:porject 添加classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"最后在点击 Sync到项目 File->Sync Proect with Gradle Files...
2021-07-20 10:28:21
376
转载 Android Studio AVD无法启动
记录:在使用Android Studio中的模拟器时,发生无法启动,在命令行启动报错如下G:\Sdk\emulator>.\emulator.exe -avd Pixel_API_29emulator: Android emulator version 30.7.5.0 (build_id 7491168) (CL:N/A)handleCpuAcceleration: feature check for hvfcannot add library vulkan-1.dll: failed
2021-07-15 12:09:47
1615
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人