error : make use of protected keyword : char

Previous topic - Next topic

MrTAToad


Moru

My memory is cloudy in this but isn't it a type in C?

But what is Cube? I get that in blue when I type it in a fresh project (but only in the last version, not in the current GLBasic)...

Schranz0r

#2
"char" is a variabletype for C++ !
char = character / letter


example single char:
Code (glbasic) Select
char letter = "a";


example string/char-array:
Code (glbasic) Select
char myword[5] = "Hello";



Cube was highlightet?
You test it with a new Project?
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

MrTAToad

In this case I wasn't using inline for char - was trying to do char% =

Haven't seen Cube though.

Moru

When I first opened the 3D entity project, all "cube" was blue, then I opened a new project and tested and there it got blue too. Now after updating it doesn't happen any more.