穿的是地址!void red(int n,int m,char *a1){ char *p;int i;p=&a1[m-1];for( i=0;i<m;i++,p++){printf("%c",*p);} }
void Rev(int Data,const int &len)这一行,这和你的声明void Rev(int Data[],const int &len)是不同的。我想你的本燃孝意应该是void Rev(int Data[],const int &len)这也就解释了在main中正确的原因,因为在main中定义的int Data[len];是正确伏段手的电压(U):电压是使电路中形成电流的原因,电源是...
In function 'int main()': Line 52: error: invalid types 'char[int]' for array subscript compilation terminated due to -Wfatal-errors. Any ideas? Jun 5, 2013 at 2:02am vlad from moscow(6539) You defined heshecaps as a single character. So you may not use the subscript operator with...
Hello, I have this code that gives me the error from the title: This is problem statement: Given a string of "s" consisting of two words separated by space (first
[Error] invalid types 'char[int]' for array subscript #include <stdio.h> #include <stdlib.h> int main() { char a[20]; char out[9]; int i,m,n; FILE *fp; printf("请输入20个单词:\n"); gets(a); if((fp=fopen("e:\\1.txt","w"))==NULL) { printf("文件打开失败!\n"...
invalid types ‘unsigned char[int]’ for array subscript [closed]Ask Question Asked 10 years, 2 months ago Modified 2 years, 11 months ago Viewed 8k times 1 Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused...
[Error] invalid types 'int[int]' for array subscript怎么解决??? #include<iostream>usingnamespacestd;intmain(){inti,sv,F=0,j;intm=5,n=6;intm1=5,n1=6;inta[5][6]={{2,8,1,9,4,1},{5,7,1,3,0,1},{7,1,7,5,2,1},{3,2,2,1,5,1},{0,2,1,6,8,1},//7}... ...
快快快!c++编译错误:invalid types `int[int]' for array subscript C++不支持动态数组,比如像Basic中的Redim,Pascal中的SetLength等 C++中的动态数组是以动态内存分配来实现的,即用new和delete动态分配和删除数组... error:invalid type argument of '>' (have'int')如何解决 我...