Ah, alright, makes sense now, thanks for the help Todd, and Mike :)
/thread over
Type: Posts; User: Afro
Ah, alright, makes sense now, thanks for the help Todd, and Mike :)
/thread over
oh man, thanks. That's such a silly error to make.
But i thought defining an array as [7][7] would give eight different variables?
As in: 0 1 2 3 4 5 6 7?
Or i might just be totally off there.
...
As the title suggests im having trouble with writing from an array.
It seems as if even the i give the board[x][y] the correct values it's still reading from
the wrong point, i've looked through...
I understand, i'm just tired and got a bit ticked off by what you said, a simple "no, that is impossible" would've been enough. And yes, i am quite new to C. But it was apparently obvious eh? :P...
I'll try to explain, let's say i have three structures all connected (dont know the word for it)
to the foot_item structure.
struct foot_item {
char item_name[20];
char...
The question was if there actually WAS a way to pass them directly to a function without a pointer, so that part of your reply makes absolutely no sense aswell. Thank you for your help though.
...
As the title implies i am trying to pass a string to a function, and i wondered if there is any way to do it without using pointers?
Here is my situation
I have a structure:
struct foot_item...
Thanks guys, i got that part to work now.
Seeing as i got a few "If you have to use system..." then is there any other ways to execute a program from a variable?
The program is supposed to have a menu, with the options to add a program to...
Is there some way to use variables in a system() command?
i've tried
system("%s",firstprogrampath);
but i only get an errormessage in the stdlib.h header (line 356), too many arguments...
Thanks, i got it to work!
I would like some help with, as the thread name implies, with exiting windows through a C program. I am quite new to programming, so please try to explain what to do :). I guess that C doesnt have a...