(correct me if i mistake)
the Global Scope is for create and initializate variables, create functions\class's\namespaces and more... i understand that.
(sorry if my question is confuse.... but i'm trying work with my english :()
when we build a class with some variables, is there any way, on Global Scope, that we can change the variables values with object name?
#define event(eventname, ... ) std::function<void(__VA_ARGS__ )> eventname
event(Soma,(int a,int b)) ;
void write(string a)
int a.Soma = (int a, int b)
Console.write("\nMessage Printed\n" ,a+b , "\n") ;
(console is my class for work with console)
like you see i'm trying changing the Soma value on Global Scope... i'm geting errors. my question is: is there anyway for validate that for don't get errors?
'error: expected initializer before '.' token'
without a return type:
'error: 'a' does not name a type'
please i'm trying, several time, fix these code without sucess :(