well
Trying to learn more I take this challenge,
I know its no big deal,
but Im putting in practice the things Ive learned in this bbs
Ive learn (here) more that ever in class![]()
there are all the errorsCode:#include<iostream> #include<cstdlib> #include<conio.h> using namespace std; int main() { { int n,data; cout<<"how many credits?? : "<<flush; cin>>n; int sum =0; system ("cls"); //not quite sure that its the best place for (int j=0;j<=n,j++) { cin<<data; sum+=data; } avg = static_cast<float>(sum)/n ; cout<<"Ur average is : "<<avg<<endl; cout<<"again?? Y / N"<<flush; cin>>op; system ("pause"); }while (op!='n'); return 0; }
any idea???Code::\Documents and Settings\Propietario\Mis documentos\C++todo lo que haga\promediogrades.cpp(19) : error C2143: syntax error : missing ';' before ')' C:\Documents and Settings\Propietario\Mis documentos\C++todo lo que haga\promediogrades.cpp(21) : error C2676: binary '<<' : 'class std::basic_istream<char,struct std::char_traits<char> >' does not define this operator or a conversion to a type acce ptable to the predefined operator C:\Documents and Settings\Propietario\Mis documentos\C++todo lo que haga\promediogrades.cpp(24) : error C2065: 'avg' : undeclared identifier C:\Documents and Settings\Propietario\Mis documentos\C++todo lo que haga\promediogrades.cpp(27) : error C2065: 'op' : undeclared identifier Error executing cl.exe. promediogrades.exe - 4 error(s), 0 warning(s)
thx in adv
love,
Abyssphobia



LinkBack URL
About LinkBacks





