小小虫977
小小虫977
关注数: 1
粉丝数: 1
发帖数: 110
关注贴吧数: 11
出出出,9成新 刚入手MX4,出这个黑色4S,像女朋友一样对待,一直包着膜,最好是杭州的啊
关于混淆代码的问题 要发布apk了,所以就混淆代码。混淆之后发现运行起来里面没有内容。用了类似于下拉刷新的框架。在输出调试信息里面总是报com.mypackage.MyWebView.loadUrl() unknown resource.。我知道这是把这个类混淆的缘故,但是不知道怎么改
SDKmanager求助 模拟器操作慢都老掉牙的事情了,网上说可以用X86那个,我机用了。可是我发现我的SDKmanger里面比别人少了好多东西。x86下载下来也用cmd检测安装成功了,虚拟机就是不出。求解决啊
SDKmanager求助 模拟器操作慢都老掉牙的事情了,网上说可以用X86那个,我机用了。可是我发现我的SDKmanger里面比别人少了好多东西。x86下载下来也用cmd检测安装成功了,虚拟机就是不出。求解决啊
闲来无事请分享一下学习旅程 已经学习了两年的java加android,感觉自己还是没怎么走上正轨,android还只会那些基层,。基础自我感觉很差,因为喜欢,所以不想就这样下去。现在视频也看,书也看,但是间间断断没有方向,很苦恼。我现在已经从零开始学java,想以此提高android的学习速度,想让有经验的各位指导一下大致方向,只看视频或者只看书真的是头疼欲裂,所以特别需要指导一下。仁者见仁智者见智呀大神们!
求分享安卓学习经验 已经学习了两年的java加android,感觉自己还是没怎么走上正轨,android还只会那些基层,。基础自我感觉很差,因为喜欢,所以不想就这样下去。现在视频也看,书也看,但是间间断断没有方向,很苦恼。我现在已经从零开始学java,想以此提高android的学习速度,想让有经验的各位指导一下大致方向,只看视频或者只看书真的是头疼欲裂,所以特别需要指导一下。仁者见仁智者见智呀大神们!
关于dialog的问题 代码如下,很简单。想知道dialog里面为什么点击效果没有的话就会出现文件名字。比如说文件名字叫MyIntent,点击一下会自动显示MyIntent。
UC浏览器电脑版火爆公测!疯抢快感邀请码 这个活动很给力,小伙伴们不要错过哦!
◤技术贴 ◥【】→『13-07-19』新手安卓学习lgame绘制helloworld 我照搬源码,eclipse是最新版,没有软件问题,包也导入了,就是在手机上运行的时候仅仅闪屏一下,屏幕横屏一下瞬间就没了,求助求助,谢谢您!
新手学习LGAME绘制helloworld求助 我照搬源码,eclipse是最新版,没有软件问题,包也导入了,就是在手机上运行的时候仅仅闪屏一下,屏幕横屏一下瞬间就没了,求助求助,谢谢您!
安卓新手求助LGAME,怎么才能绘制helloworld 我照搬源码,eclipse是最新版,没有软件问题,包也导入了,就是在手机上运行的时候仅仅闪屏一下,屏幕横屏一下瞬间就没了,求助求助,谢谢您!
!!!!跪求联系方式:文法系老师赵蕾 !!!!跪求联系方式:文法系老师赵蕾,, 谢谢,,谢谢!!!!
5233刷机精简版求固件,V51.1.002 邮箱
[email protected]
,好人一生平安
怎样让它不断循环,直到输入0结束,大神求助 #include<stdio.h> #include<stdlib.h> #include<string.h> #include<ctype.h> #define N 200 #define M 20 static int sum=0; int main() { void checkword(char* p1,char* word); void getsentence(char* p1,FILE* p2,char* word); char str1[N],str2[M],filename[M]; FILE* fp; printf("Please enter the file'name:\n"); scanf("%s",filename);*/ fp=fopen(filename,"r"); if((fp=fopen(filename,"rb"))==NULL)//打开个2进制文件,只读 { printf("cannot open the file\n"); exit(0); } do { printf("Please input the word which you want to search:\n(Press 0 to the end):\n"); scanf("%s",str2); if(str2[0]=='0') break; sum=0; checkword(char* p1,char* word); getsentence(str1,fp,str2); printf("The word has been appeared %d times in total.\n",sum); }while(1); fclose(fp); system("pause"); return 0; } void checkword(char* p1,char* word){ char temp[M]; int i=0,j,count=0; while(p1[i]!='\0') { j=0; while(isalpha(p1[i])) { temp[j]=p1[i]; i++; j++; } temp[j]='\0'; if(strcmp(temp,word)==0) count++; while(!isalpha(p1[i])&&p1[i]!='\0') { i++; } } if(count!=0) { printf("%s\n",p1); sum += count; } } void getsentence(char* p1,FILE* p2,char* word){ int i; char ch; ch=fgetc(p2); while(ch!=EOF){ i=0; while(ch!='.'&&ch!=';'&&ch!=EOF){ p1[i]=ch; i++; ch=fgetc(p2); } if(ch=='.'||ch==';'){ p1[i]=ch; p1[i+1]='\0'; checkword(p1,word); ch=fgetc(p2); } } }
VC环境中运行,查找文件中特定单词数目,为什么显示0 #include <stdio.h> #include<stdlib.h> #include <iostream>//标示符各种可见范围 using namespace std;//std内定义的所有标示符有效 const int MAXM = 30,KIND = 26;//指针 int m; /* struct node { char* s; int prefix; bool isword; node* next[KIND]; node() { s = NULL; prefix = 0; isword = false; memset(next,0,sizeof(next)); } }*root; */ void insert(node *root,char *s) { node *p = root; for (int i = 0;s[i];i++) { int x = s[i] - 'a'; p->s = s+i; if (p->next[x] == NULL) p->next[x] = new node; p = p->next[x]; p->prefix++; } p->isword = true; } bool del(node *root,char *s) { node *p = root; for (int i = 0;s[i];i++) { int x = s[i] - 'a'; if (p->next[x] == NULL) return false; p = p->next[x]; } if (p->isword) p->isword = false; else return false; return true; } bool search(node *root,char* s) { node* p = root; for (int i = 0;s[i];i++) { int x = s[i]-'a'; if (p->next[x] == NULL) return false; p = p->next[x]; } return p->isword; } int count(node *root,char *s)//统计后缀 { node *p = root; for (int i = 0;s[i];i++) { int x = s[i] - 'a'; if (p->next[x] == NULL) return 0; p = p->next[x]; } return p->prefix; } int main() { FILE *fp; printf("Please enter the file'name:\n"); char filename[20]; scanf("%s",filename);//输入文件位置和名 if((fp=fopen(filename,"rb"))==NULL)//打开文件 {printf("Cannot open this file\n"); exit(0); } printf("enter the word you want to find :\n"); m = 0; root = new node; char s[MAXM]; while (gets(s)) { if (strcmp(s,"") == 0) break; insert(root,s); } while (gets(s)) printf("%d\n",count(root,s)); fclose(fp); }
C语言要在指定文件中查找特定单词数目,为什么单词数目显示是0 #include <stdio.h> #include<stdlib.h> #include <iostream> using namespace std; const int MAXM = 30,KIND = 26; int m; struct node { char* s; int prefix; bool isword; node* next[KIND]; node() { s = NULL; prefix = 0; isword = false; memset(next,0,sizeof(next)); } }*root; void insert(node *root,char *s) { node *p = root; for (int i = 0;s[i];i++) { int x = s[i] - 'a'; p->s = s+i; if (p->next[x] == NULL) p->next[x] = new node; p = p->next[x]; p->prefix++; } p->isword = true; } bool del(node *root,char *s) { node *p = root; for (int i = 0;s[i];i++) { int x = s[i] - 'a'; if (p->next[x] == NULL) return false; p = p->next[x]; } if (p->isword) p->isword = false; else return false; return true; } bool search(node *root,char* s) { node* p = root; for (int i = 0;s[i];i++) { int x = s[i]-'a'; if (p->next[x] == NULL) return false; p = p->next[x]; } return p->isword; } int count(node *root,char *s) { node *p = root; for (int i = 0;s[i];i++) { int x = s[i] - 'a'; if (p->next[x] == NULL) return 0; p = p->next[x]; } return p->prefix; } int main() { FILE *fp; printf("Please enter the file'name:\n"); char filename[20]; scanf("%s",filename); if((fp=fopen(filename,"rb"))==NULL) {printf("Cannot open this file\n"); exit(0); } printf("enter the word you want to find :\n"); m = 0; root = new node; char s[MAXM]; while (gets(s)) { if (strcmp(s,"") == 0) break; insert(root,s); } while (gets(s)) printf("%d\n",count(root,s)); fclose(fp); }
C语言为什么导入文件之后,输入查找的单词,全部显示为0 #include <stdio.h> #include<stdlib.h> #include <iostream> using namespace std; const int MAXM = 30,KIND = 26; int m; struct node { char* s; int prefix; bool isword; node* next[KIND]; node() { s = NULL; prefix = 0; isword = false; memset(next,0,sizeof(next)); } }*root; void insert(node *root,char *s) { node *p = root; for (int i = 0;s[i];i++) { int x = s[i] - 'a'; p->s = s+i; if (p->next[x] == NULL) p->next[x] = new node; p = p->next[x]; p->prefix++; } p->isword = true; } bool del(node *root,char *s) { node *p = root; for (int i = 0;s[i];i++) { int x = s[i] - 'a'; if (p->next[x] == NULL) return false; p = p->next[x]; } if (p->isword) p->isword = false; else return false; return true; } bool search(node *root,char* s) { node* p = root; for (int i = 0;s[i];i++) { int x = s[i]-'a'; if (p->next[x] == NULL) return false; p = p->next[x]; } return p->isword; } int count(node *root,char *s) { node *p = root; for (int i = 0;s[i];i++) { int x = s[i] - 'a'; if (p->next[x] == NULL) return 0; p = p->next[x]; } return p->prefix; } int main() { FILE *fp; printf("Please enter the file'name:\n"); char filename[20]; scanf("%s",filename); if((fp=fopen(filename,"rb"))==NULL) {printf("Cannot open this file\n"); exit(0); } printf("enter the word you want to find :\n"); m = 0; root = new node; char s[MAXM]; while (gets(s)) { if (strcmp(s,"") == 0) break; insert(root,s); } while (gets(s)) printf("%d\n",count(root,s)); fclose(fp); }
1
下一页