hi, good day. I am trying come upload this password to my 4476mountvernon.com mega 2560 compatible board. I am utilizing visual micro, its loads to the board yet the switch keys on mine lcd shield no work, except one button, the select switch key. Please please allude me in the best direction on how to fix this. Give thanks to you an extremely much.

You are watching: No operator matches these operands visual c++

see attachments for referral please.


*

i cannot put the whole code, that exceeds the maximum allowed chcaracter. I will attach it as txt document instead.

but here’s a part which i think is the culprit.

//UI Menus if (Key == 0 || vital == 408){ //Left & appropriate if (screenName == "DATETIME") procession = 1, 1 , 4, 4 , 10, 10 , 13, 13 , 3, 3 , 6, 6 , 13, 13 ; if (screenName == "NEW") matrix = 0, 7 , 11, 11 ; if (Key == 0) cropRename(NULL); lcd.blink(); if (screenName == "OPEN") matrix = 0, 0 , 1, 1 , 9, 9 ; if (screenName == "RESET") matrix = 0, 0 , 1, 1 , 11, 11 ; if (screenName == "DELETE") if (screenName == "STATUS") matrix = 8, 8 , 1, 1 , 13, 13 ; if (screenName == "ECRANGE") procession = 3, 3 , 8, 8 , 15, 15 , 1, 1 , 11, 11 ; hydroponic code.txt (24.5 KB)


4476mountvernon.com_new august 28, 2018, 3:12am #5

matrix = 1, 1 , 4, 4 , 10, 10 , 13, 13 , 3, 3 , 6, 6 , 13, 13 ;You cannot collection value of procession this way anymore.You deserve to only perform this in the declaration.To set values because that it after, you should use nested for() loop.


blue1209 august 28, 2018, 3:26am #6

I am kind of lost now. Possibly you can present me how, just a fast one, please. Im confused regarding where to begin the nested for loop (). Sorry


Delta_G august 28, 2018, 3:44am #7

Try this:

https://www.google.com/search?ei=tcSEW8rNOczl_QaDqLH4Ag&q=nested+for+loop+to+set+values+of+2D+array+C%2B%2B

But if girlfriend have many of these and they don"t change, climate it might make much more sense to placed them right into PROGMEM. In that case it deserve to be as simple as simply reassigning a pointer to allude at the best matrix. It would conserve a hell of a most memory too. As long as the number in castle don"t require to be able to change.


westfw respectable 28, 2018, 3:48am #8

“Anymore”? go that ever before work?I imply progmem constant arrays, and also memcpy_p()


blue1209 respectable 28, 2018, 4:12am #9

i dont know what happened, yet visual studio simply crashed and i to be re installing now. Ns cannot perform this code on 4476mountvernon.com ide, too facility for the 4476mountvernon.com ide. Anyways, many thanks for the help, yet i just have to wait til i can complete the download of visual Studio. I am from the Philippines, net is no so an excellent here. Sigh.


4476mountvernon.com_new august 28, 2018, 4:22am #10

blue1209:i dont understand what happened, yet visual studio simply crashed and i to be re installing now. Ns cannot execute this password on 4476mountvernon.com ide, too complicated for the 4476mountvernon.com ide. Anyways, many thanks for the help, but i just have to wait til i can finish the download of visual Studio. Ns am from the Philippines, web is not so an excellent here. Sigh.

The password I post did no work. Ns tried to overcome it out however instead i deleted the post.You should do something favor this now:

const byte matrixA<><2> = 1, 1 , 4, 4 , 10, 10 , 13, 13 , 3, 3 , 6, 6 , 13, 13 ;const byte matrixB<><2> = 0, 7 , 11, 11 ;void loop() ... If (screenName == "DATETIME") //use matrixA below if (screenName == "NEW") //use matrixB here ...
Silente august 28, 2018, 5:58am #11
The code cannot it is in too complicated for 4476mountvernon.com Ide, or if that is all this occupational is useless, since it will never ever work. Currently you define us what you want to do and also attach the code choose allegate. For this reason we deserve to see it


westfw respectable 29, 2018, 11:07pm #12

What data form is “matrix”? (Sigh. I do web search because that DROMatic, i m sorry I uncover https://github.com/drolsen/DRO-Matic/, which has actually screens.cpp with:

vector>> matrix;I … to be not sure if over there is simple fix here; the vector is a variable size thing, so copying it is more complex than if that were simply an array. Maybe. And also I’m no sure just how C++ objects connect with PROGMEM. And there don’t seem to be any type of useful comments in the password explaining WTF it’s trying come do. (Sigh.)

If you have adequate RAM cost-free in the project, you have the right to probably readjust code from:

//UI Menusif (Key == 0 || crucial == 408){//Left & Rightif (screenName == "DATETIME")matrix = 1, 1 , 4, 4 , 10, 10 , 13, 13 , 3, 3 , 6, 6 , 13, 13 ;if (screenName == "NEW")matrix = 0, 7 , 11, 11 ;if (Key == 0)cropRename(NULL);lcd.blink();if (screenName == "OPEN"){to something much more like:

if (screenName == "DATETIME")static vector>> datmatrix = 1, 1 , 4, 4 , 10, 10 , 13, 13 , 3, 3 , 6, 6 , 13, 13 ;matrix = datmatrix; if (screenName == "NEW")static vector>> newmatrix = 0, 7 , 11, 11 ;matrix = newmatrix;if (Key == 0) cropRename(NULL); lcd.blink(); (Hmm. Actually, this need to be quite close come what the existing code is doing, in regards to RAM usage/etc.)


But what carry out you want to do? In your title there is "no operator "=" matches these operands". You have the right to use = in twoo ways:Something=something elseWhitch arraysSomething=something elseOrSomething = somethingelseOrSomething =somethimgelse You have the right to never use operations behiend the =, exept right into the .If you space using multidimentional arrays you need to indicate all the index prefer the first.

See more: D&Amp;D 5E Gloves Of Thievery, Vitamin D Toxicity: What If You Get Too Much

And if = doesn"t work-related nothing have the right to go.Remember that = is assegnament and also == is control


struct range T data;

T &operator<>(size_t index) return data; const T &operator<>(size_t index) const return data; T *begincolor=#000000 return &data<0>; const T *begincolor=#000000 const return &data<0>; T *endcolor=#000000 return &data; const T *endcolor=#000000 const return &data; ;

ArrayArrayArraybyte, 2>, 4>, 2> procession = 1, 1 , 4, 4 , 10, 10 , 13, 13 , 3, 3 , 6, 6 , 13, 13 , ,;``` |

template struct variety T data; T &operator<>(size_t index) return data; const T &operator<>(size_t index) const return data; T *begin() return &data<0>; const T *begin() const return &data<0>; T *end() return &data; const T *end() const return &data; ;Array, 4>, 2> matrix = 1, 1 , 4, 4 , 10, 10 , 13, 13 , 3, 3 , 6, 6 , 13, 13 , ,;template void print(Print &p, const T &value, const uint8_t indent = 0) { for (uint8_t i = 0; ns void print(Print &p, const array &array, const uint8_t indent = 0) { for (uint8_t ns = 0; i However, i think that it would certainly be far better to rethink the style of her program, together this strategy seems very error-prone.