Advertisement

funky error

Started by November 09, 2000 04:38 PM
3 comments, last by slightlywhacked 24 years, 2 months ago
HEy.. im gettin some kind of fucky error here..whats goin wrong?? if (overwrite != 1 && sales_person = 1) { /////////code in here///// } when i compile i get this error error C2106: ''='' : left operand must be l-value overwrite is a int variable.. thanx in advance
BAHcows go moomoos go cow
alos getting this error...


warning C4305: ''='' : truncation from ''const int'' to ''bool''when I do this

if (overwrite != 1 && sales_person = 2)
{
///////code
}
BAHcows go moomoos go cow
Advertisement
alos getting this error...


warning C4305: ''='' : truncation from ''const int'' to ''bool''when I do this

if (overwrite != 1 && sales_person = 2)
{
///////code
}
BAHcows go moomoos go cow
Dunno if this is causing the problem, but you should be using == not = for comparing things.

Frank
You are using = insted of ==.

This topic is closed to new replies.

Advertisement