首页 > TAG信息列表 > readString

Android:使用Parcelable接口在跳转Activity时传递数据以及错误信息 Parcel: unable to marshal value 的解决

Parcelable是Android系统中特有的接口,它不像Serializable接口那样是Java语言自带的。Intent也使用Parcelable方式来传递对象的数据,不过它不同于Serializable方式将对象进行序列化,而是通过将一个完整的对象进行分解,而分解后的每一部分都是Intent所支持的传递数据类型。 传递对

95_Go基础_1_63 bufio

1 package main 2 3 import ( 4 "bufio" 5 "fmt" 6 "os" 7 ) 8 9 func main() { 10 /* 11 bufio:高效io读写 12 buffer缓存 13 io:input/output 14 15 将io包下的Reader,Write对象进行包

查找字符串

#include <string.h> #include <stdio.h> #define MAXS 30 void ReadString( char s[] ) {gets(s);} int main() { char s[MAXS], t[MAXS], *pos; ReadString(s); ReadString(t); pos = search(s, t); if ( pos != NULL ) printf(

Android实现Parcelable 直接intent传参

protected DBean(Parcel in) { id = in.readString(); cid = in.readString(); name = in.readString(); status = in.readString(); url = in.readString(); money = in.readString(); } public static final Creator<DBean> CREATOR = new C