Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Problem

Reply
Thread Tools

Problem

 
 
nurshafini nurshafini is offline
Junior Member
Join Date: Dec 2011
Posts: 3
 
      12-05-2011
int i;
int sco[SIZE];
int SIZE;
float avg;
int x,y;
int sum=0;


for(i=0;i<SIZE;++i)
{
sco[i] - avg = x;
x*x=y;
sum=sum+ y;
}



What is the error???
I got non lvalue assignment..help!!
 
Reply With Quote
 
 
 
 
nurshafini nurshafini is offline
Junior Member
Join Date: Dec 2011
Posts: 3
 
      12-05-2011
Additional declaration


int sco[SIZE];

And average had been calculated in other for loop..there is no error there..
 
Reply With Quote
 
 
 
 
nurshafini nurshafini is offline
Junior Member
Join Date: Dec 2011
Posts: 3
 
      12-05-2011
Help me plizzz
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem problem problem :( Need Help Mike ASP General 2 05-11-2004 08:36 AM



Advertisments