广告
- 408 达内教育紧跟IT 热点 吧吧惊喜官
- 达内教育是一家覆盖IT及互联网职业赋能、产教融合、校企合作等多个领域的综合性教育集团! 成立于2002年9月,业务领域包括高端培训业务、高级人才业务和青少培训业务,主要提供IT及互联网行业的...
- 34826 吧友已经关注,只等你加入
-
大家又有新的发言,点击刷新
-
大家又有新的发言,点击刷新
-
-
24
-
14
-
12
-
0我是中专生,自学单片机,用得是51,后期肯定转32的,C语言也是半懂不懂,还要不要深入学习C语言。基本上就是#while#书看得多,代码打得很少。
-
1
-
6
-
2
-
6如题,提前感谢大佬们
-
4
-
3
-
4
-
1
-
1
-
3
-
3
-
0求大佬帮忙看看这题,我也不知道还有哪种情况,下面是代码 #include <stdio.h> #include <string.h> #include <ctype.h> void getNext(char *t, int *next) { int i = 0, j = -1; next[lbk]0[rbk] = -1; while (t[lbk]i[rbk]) { if (j == -1 || t[lbk]i[rbk] == t[lbk]j[rbk]) { i++; j++; if (t[lbk]i[rbk] != t[lbk]j[rbk]) { next[lbk]i[rbk] = j; } else { next[lbk]i[rbk] = next[lbk]j[rbk]; } } else { j = next[lbk]j[rbk]; } } } int match(char *s, char *t, int *next, int *positions) { int count = 0; int sLen = strlen(s); int tLen = strlen(t); if (tLen == 0) { for (int i = 0
-
0
-
7
-
2
-
12从文件读的内容存不到链表里 int main() { setlocale(LC_ALL, ".UTF-8"); // 设置本地化环境为UTF-8 struct stu* head = NULL; FILE* fp; wchar_t character; // 打开宽字符文本文件以读取模式 if (_wfopen_s(&fp, L"D:\\student system\\student score.txt", L"r, ccs=UTF-8") != 0) { // 使用UTF-8编码打开文件 perror("Error opening txt file"); return 1; } head = build(); // 逐个读取宽字符文本文件内容 while ((character = fgetwc(fp)) != WEOF){ wprintf(L"%lc", character); // 输出读取的内容 } // 关闭
-
28
-
15
-
8
-
18
-
16
-
1
-
0c=200-4*b-6*a c=100-b-a c是要输出的值 然后a,b的值也知道,如何让c同时满足这两个式子啊
-
2
-
11
-
0
-
19
-
1
-
3
-
8学C语言买电脑,16g内存够用吗?
-
0
-
3
-
2
-
1
-
3
-
0
-
2大一刚学c语言,问一下有没有哪里的课比较适合新手应付考试的,现在慌得一批
-
7一个简单的快速排序 #include <iostream> using namespace std; void quicksort(int a[],int L,int R); void quicksort(int a[],int L,int R) { if(L>=R) { return;//别忘了结束递归 } int mark=(R+L)/2; //找出中间那一项的元素 int pivot=a[mark]; int r=R,l=L; a[mark]=a[l]; while(r>l) { while(r>l&&a[r]>=pivot) { r--; } if(r>l) { a[l]=a[r]; } while(r>l&&a[l]<=pivot) { l++; } if(r>l) { a[r]=a[l]; } if(r<=l) { a[l]=pivot; } } quicksort(a,L,r); quicksort(a,r+1,R); } int main() { int n; cin>>n; int a[n+1]; for(int i=1; i<n+1; i++)
-
0