i am having trouble with testing to see if aData is equal to
exit i have tried a few diffrent things the only thing i
have relized is that the compiler say that aData is a multi character constant any help is greatly appreciated
i see what you guys mean but then how would i be able to make a bunch of char's into one var im new to c++ but if you can steer me in the right direction i greatly appreciate it
this is code im working on for a barcode scanner and i am using a class for the serial communications but when i get the data from there it prints fine but it populates it char by char how would i make that into one var ?
If you want to make it really easy then just replace char aData with string aData and you'll be done. If you need to use a char array then you need to use a function like strcmp(charArray1, charArray2). There's a nice little reference on the function...