   noob question
  i was wondering what the difference between ( ) and { } is, why would one need to use the curly brackets instead of parentheses?   
  In what language?In C/C++, () are used to pass parameters to functions (and define these parameters in the definition), and {} are used to delimit scopes.   ;  its in c++, thanks for the reply.could you further explain delimiting scopes?i understand the terminology but i wanna clarify what it means in c++   ;Quote:its in c++, thanks for the reply.could you further explain delimiting scopes?i understand the terminology but i wanna clarify what it means in c++I have no definition for {} brackets, but three possible situations where you need them.1) If you have a function, the function code has to be in brackets, so your compiler knows where the function starts and stops: you define the scope of the function.Function( parameters ){ funcion code...}2) You can define a scope in your programm, for example somewhere in a function. Variables which are declared inside the scope are undefined outside of the scope.{int i = 5;}i = 8; //error: i is only declared in the scope above3) You can define a scope for standard functions, like if(), while(), for() etc.if( conditions )a(); //a() is only executed when the conditions are true.b(); //b() is always executed, not only if the conditions are true.if( conditions ){a(); //a() is only executed when the conditions are true.b(); //b() is only executed when the conditions are true.};  thanks for the helpnow one last thing jsut to clear it all upSDL_Color{0, 0, 0}why do i need to delimit a scope for the color?   ;  Where did you see SDL_Color{0, 0, 0}?I believe the struct should be defined something like:SDL_Color{   unsigned int m_R;   unsigned int m_G;   unsigned int m_B;   SDL_Color(unsigned int in_R, unsigned int in_G, unsigned int in_B) : m_R(in_R), m_G(in_G), m_B(in_B)   {   }};Then you'd create a new SDL_Color by calling:SDL_Color myColor(0, 0, 0);SDL_Color* myColorPtr = new SDL_Color(0, 0, 0);delete myColorPtr;  // does not belong to the example, but in case you didn't knew, delete whatever you new ;);  You can also haveSDL_Color red = {255, 0, 0};This is a struct initialization and, from what I've seen, mostly used in C code. C++ programmers would acomplish this with constructors as the above post shows.   ;  well the reason i used SDL_Color is because thats what the tutorial has in it and i am wondering why i use {} in it. i like to know why im doing something.the answers have cleared it up :) thanks   