上一页 1 2 3 4 5 6 7 ··· 25 下一页
摘要: 动态内存分配 谭浩强第五版,p284 全局变量分配在内存静态存储区内 局部变量分配在内存动态存储区内(称为栈) c语言还可在内存申请动态存储区(称为堆) 使用malloc(size_t size) , realloc(void* arr , size_t size ) , free( void* a 阅读全文
posted @ 2022-07-08 23:05 remix_alone 阅读(88) 评论(0) 推荐(0)
摘要: 必要函数 1. printf("",arg1,...) 作用:输出语言 2. scanf("",&arg1, &arg2,....) 参数: &arg1:arg1所在的内存地址 返回值:无 作用:输入语句,将输入赋值改变量。 3.void* malloc( size_t size ) size: 内 阅读全文
posted @ 2022-06-14 10:05 remix_alone 阅读(98) 评论(0) 推荐(0)
摘要: 数据类型:基本数据类型,枚举类型,空类型,派生类型 1.基本数据类型:整数类型和浮点类型 整数类型 short: 2byte,-2*15 ~ 2^15-1 int : 4byte,-2^31 ~ 2^31-1 long : 4byte,-2^31 ~ 2^31-1 long long : 8byte 阅读全文
posted @ 2022-06-13 11:58 remix_alone 阅读(64) 评论(0) 推荐(0)
摘要: 项目编辑规则 1.一个项目只有一个main方法,main方法必须是int返回值 2.库函数导入要#include<xxx> #include<stdio.h>:导入标准io模块,printf(""),scanf("") 阅读全文
posted @ 2022-06-13 11:37 remix_alone 阅读(13) 评论(0) 推荐(0)
摘要: Microsoft Visual Studio Community 2022 1. 创建项目 2. 保存和运行 阅读全文
posted @ 2022-06-13 11:33 remix_alone 阅读(292) 评论(0) 推荐(0)
摘要: 区别 LinearLayout:控制整体组件如何排列 RelativeLayout:控制单个组件如何排列 阅读全文
posted @ 2022-05-07 10:13 remix_alone 阅读(52) 评论(0) 推荐(0)
摘要: LinearLayout下 margin:外边扩大距离,外边为原。 padding:内边扩大距离,内边为原。 穿边要负margin 被遮挡调整ViewGroup大小,让内部居中 如:1. textView对齐左边时,marginLeft="20dp" <LinearLayout xmlns:andr 阅读全文
posted @ 2022-05-07 10:10 remix_alone 阅读(127) 评论(0) 推荐(0)
摘要: Fragment受FragmentManger控制。 通过FragmentManger获取FragmentTransaction。ft.replace(containerView,fragment)替换fragment 使用 fragmentTransaction = supportFragment 阅读全文
posted @ 2022-04-30 00:49 remix_alone 阅读(38) 评论(0) 推荐(0)
摘要: TabLayout TabLayout提供了一个水平布局用于展示tabs,继承自HorizontalScrollView。一般与Viewpager结合使用实现页面和标签联动的效果。 属性: app:tabMode: scrollable:可滑动 app:tabSelectedTextColor 颜色 阅读全文
posted @ 2022-04-30 00:46 remix_alone 阅读(50) 评论(0) 推荐(0)
摘要: 项目基本准备: 包:model,ui(activity,fragment,adapter),base,utils,persenter,view 主题:theme中设置NOACTIONBAR去除标题 color.xml:设置颜色 Material新组件:BottomNavigationView Fra 阅读全文
posted @ 2022-04-29 02:37 remix_alone 阅读(59) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 25 下一页