jdc {l Wrote}:Dulsi : it is stated clear that is done in C in Dropbox only contains files in C. But often project contains several languages. For example a database is made in SQL which have nothing to do with PHP or C. Engines like unreal have the core done in C++ and have biding's for Lua, or other high level scripting language.
i will need to digg a bit more to know how to do this stuff in C
How to handle variables ?
For example why to re declare pointers all the way in the project when we can have generic pointers declared :
int *int_pointer;
char *char_pointer;
float *float_pointer;
When we need to use them inside our files, we know that the structure have generic declared pointers. This is used in? A form of structure, so the template have this stuff build in. In your file you access the int_pointer.
Pointers are just a address to a variable they are not, a variable this means that it loads less stuff.
int large_number = 00987987987989890;
*int_pointer = large_number;
if we use our *int_pointer to pass it to a function, we don't move the variable around this is where we are saving resources. In our structure, we are saving lines of code by not re declaring stuff and by having pre build in variables.
Another pre build variable :
screen_width = 640;
screen_height = 480;
variables that :
why should we re declare this stuff which time we start a project?
This stuff should be a standard variable.
jdc {l Wrote}:I use C the way i want, and i don't control other people topics. Nor do i make ironic comments, how to manage project's that i have no intention to help out. Talk comes cheap!
I was reading the forums, and seen this attitude before, people are doing some stuff that they like when others see some kind of competition, or project, they try to black out other people projects.
Great that this community try to help out others, and the administrators are active in looking in to this kind of situations.
I only appreciate constructive criticism and this one is not one of them.
Pointers are just a address to a variable they are not, a variable this means that it loads less stuff.
int large_number = 00987987987989890;
error: invalid digit "9" in octal constant
*int_pointer = large_number;
if we use our *int_pointer to pass it to a function, we don't move the variable around this is where we are saving resources. In our structure, we are saving lines of code by not re declaring stuff and by having pre build in variables.
my_function(&large_number);
Users browsing this forum: No registered users and 1 guest