This is the first c++ scripting i have ever done, but there was an error that i don't know how to fix.
The following error is:
-error LNK2019: unresolved external symbol _main referenced in function _tmainCRTStartup
-error LNK1120: 1 unresolved externals
A few problems: As MiiNiPaa pointed out, you need an int main() { /*code here*/ } function where your code execution begins.
for example:
1 2 3 4 5
int main()
{
Console_test();
return 0;
}
___________________
Line 20: if (colour == 1 && 2 && 3)
The && operator here isn't working in the way you want it to. 2 and 3 are treated as their own separate expressions. Also, I think you mean to use OR logic instead of AND, because you want that if-statement to execute if any of the options are true.
so basically: if (colour == 1 || colour == 2 || colour == 3)
__________________
Line 7: The escape character for "newline" is '\n' not '/n'.