Click here to Skip to main content
15,915,509 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalerror C2102: '&' requires l-value Pin
flora_k14-May-03 22:19
flora_k14-May-03 22:19 
GeneralRe: error C2102: '&' requires l-value Pin
Rage14-May-03 22:28
professionalRage14-May-03 22:28 
GeneralRe: error C2102: '&' requires l-value Pin
flora_k14-May-03 22:36
flora_k14-May-03 22:36 
GeneralRe: error C2102: '&' requires l-value Pin
Rage14-May-03 22:50
professionalRage14-May-03 22:50 
GeneralRe: error C2102: '&' requires l-value Pin
flora_k14-May-03 23:08
flora_k14-May-03 23:08 
GeneralRe: error C2102: '&' requires l-value Pin
jhwurmbach14-May-03 23:19
jhwurmbach14-May-03 23:19 
GeneralRe: error C2102: '&' requires l-value Pin
Rage14-May-03 23:27
professionalRage14-May-03 23:27 
GeneralRe: error C2102: '&' requires l-value Pin
flora_k14-May-03 23:54
flora_k14-May-03 23:54 
Thx,for the explanations; i'am new in C programming that's right.
How come one error correction leeds to new errors?

void trl_calculation(int amount, unsigned char*pData)
{
long n;

for (int i=1; i <= amount; i++)
{
if

((y_int_1) - pData[n] < 0) && (y_int - pData[n]) > 0; // error C2143: syntax error : missing ';' before '&&'
tailing = 1 - (y_int- pData[n])/(y_int - y_int_1);
Trl_values(sizeof(Trl_values)+1) = tailing + leading + rest;
leading = 1 - tailing;
rest = 0;

if ((y_int_1- pData[n] > 0)&&(y_int- pData[n] < 0))
tailing = 1 - (y_int - pData[n])/(y_int - y_int_1);
Trl_values(sizeof(Trl_values)+1) = tailing + leading + rest;
leading = 1 - tailing;
rest = 0;

rest = rest + 1;

y_int_1 = y_int;

}
}



void histogram(int amount, unsigned char*pData)
{
double i_index;
const double Duration = amount/4096;
double *histogram_ram[4096];
for (int i=1; i <= amount; i++)
{
i_index = ceil(Trl_values(i)/Duration)+1;
histogram_ram[i_index]=histogram_ram[i_index] +1; //error C2106: '=' : left operand must be l-value
//error C2108: subscript is not of integral type
}
}

F.K
GeneralRe: error C2102: '&' requires l-value Pin
David Crow15-May-03 3:02
David Crow15-May-03 3:02 
GeneralRe: error C2102: '&' requires l-value Pin
flora_k14-May-03 22:40
flora_k14-May-03 22:40 
Generaldifficult - CListCtrl::GetItemRect() Pin
JensB14-May-03 21:59
JensB14-May-03 21:59 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
Rage14-May-03 22:09
professionalRage14-May-03 22:09 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
JensB14-May-03 22:17
JensB14-May-03 22:17 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
Rage14-May-03 22:25
professionalRage14-May-03 22:25 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
JensB14-May-03 22:32
JensB14-May-03 22:32 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
Rage14-May-03 22:46
professionalRage14-May-03 22:46 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
JensB14-May-03 22:52
JensB14-May-03 22:52 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
Rage14-May-03 22:59
professionalRage14-May-03 22:59 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
JensB14-May-03 23:05
JensB14-May-03 23:05 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
Rage14-May-03 23:15
professionalRage14-May-03 23:15 
Generalchange the language in edit box Pin
Didaa14-May-03 21:55
Didaa14-May-03 21:55 
GeneralRe: change the language in edit box Pin
Rage15-May-03 7:58
professionalRage15-May-03 7:58 
GeneralProgramming with templates Pin
Steve Thresher14-May-03 21:48
Steve Thresher14-May-03 21:48 
GeneralRe: Programming with templates Pin
jhwurmbach14-May-03 22:22
jhwurmbach14-May-03 22:22 
GeneralRe: Programming with templates Pin
Steve Thresher14-May-03 23:00
Steve Thresher14-May-03 23:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.