Compilerprobleme
-
Hallo,ich habe folgendes Problem:
Wenn ich diesen Code# include <iostream>
using namespace std;
int main(){
int b,l;//b=Basis(z.b.2 im zweiersystem)
cout<<"Gib die basis an und bis wo gezählt werden soll!";
cin>>b>>l;
char f=65,e=65,d=65,c=65,b=65,a=65;
char x[]={f,e,d,c,b,a};
for(;;){
a++;
x[l]=a;
if(x[l]==b){
x[l]=0;
--l;
x[l]+=1;//geht das??
cout<<x;
if(l==0)
break;}}}kompilieren will,gibt der Kompiler folgendes aus:
C:\Borland...
Borland c++ 5.5.1...
a.cpp:
ERROR E2451 a.cpp 3:Undefined Symbol `n´
ERROR E2141 a.cpp 4:Declaration syntax error
***2 errors in compile***
-
Hallo,
du hast b doppelt deklariert.
MfG
tuküe
-
Doppelposting: http://www.c-plusplus.net/forum/viewtopic.php?t=80132
-> Closed.