Thanks for the advice, though I'd rather just leave it.
Cheers anyway guys,
Mitch
Type: Posts; User: spudtheimpaler
Thanks for the advice, though I'd rather just leave it.
Cheers anyway guys,
Mitch
exactly like that.... but free :)
Especially not $500 anyway!
cheers for looking though
What i actually want to do though, is to somehow alert my lecturer that my "partner" hasn't done any...
I remember downloading a while ago a program of some sorts, that basically scrambled my code into a form of giberish, but a giberish that was still compilable and as such runable normally... does...
Hi - I'm doing the same uni project as warny_maelstrom. Interesting thread that... anywho - I've been going through the faq's trying to get my head around this - seeing as a chunk of code was dumped...
Spot on!
Thanks a lot !!!
Apologies for it being very long horizintally
- but you dont need any of the code
on the far right anyway :)
right. I have
scanf("%c",&look);
Sorry, this was supposed to be a reply to my other thread "function parameters"
GOT IT :D
I didnt miss it, i changed it in the function title, i kinda forgot to change it in the function declaration at the top, and i have now done that also and it comiles! i still get a fair...
object* status(p1 *, rover *, location **);
is where i get the errors
c:\programming\ee1k2\mars_rover.c(46) : error C2143: syntax error : missing ')' before '*'...
Deleting intermediate files and output files for project 'mars_rover - Win32 Debug'.
--------------------Configuration: mars_rover - Win32 Debug--------------------
Compiling...
mars_rover.c...
not actual code but to seperate it
Deleting intermediate files and output files for project 'mars_rover - Win32 Debug'.
--------------------Configuration: mars_rover - Win32...
Thanks Hunter. I think ill typedef it, if it will make it easier. it was someone else code im supposed to integrate and the structure defs at the top are his work.
the go==1 if statements are...
lol, no worries. thank you very much for looking it over though.
Thank you! Though I'm not sure about my function declaration at the top now :confused:
object * status(p1 *, rover *, location **);
Would this be ok? Its giving me like 14 errors.
help :confused:
I'm trying to access a pointer to a structure. I can do this ok in the main function but i cant seem to pass it properly into another function and return it back.
Any help...
Bonza. cheers.
Thanks a lot Hammer, it all makes sense, its just nt something i've ever done before and so not thought ... well possible i suppose.
I'm gonna play around with it for a while...
can you have a structure within a structure?
so far i have the map which has elements posX and PosY (GridX and GridY in my case)
But i can have the rover as another structure and then have the...
for example if i were to write some quick code as below, which should put out the "status" which include the current position of the rover, i have to relay the grid x and grid y to the output in this...
The code should be below this time.
Basically a pointer will start at point 0,0 on a 2d array. If a user wants to go East, it will move the pointer from 0,0 to 0,1. then if the user wants to go...
I have said 2d array of structures. each structure has a map.gridx and a map.gridy
...
if i am at map[5][9] ( map[5][9].gridx=5, and map[5][9].gridy=9 ) and a user wants to move north one...
worked a treat - perfect in fact!
ta very much
Mitch
Hi there. I have a 2d array of structures and i am having trouble getting at them. I'm still relatviley new and pointers are *not* my forté.
I've sent the whole code below, cause i really dont...
Thank you all :)
Cheers Thantos, Thats prob what i'll end up doing (i think i may have mentioned that method in my pps though).
As for all the high end low end stuff, I've barely been...
Hey, A uni project I'm on basically requires us to design a mars rover simulation. All command line. I'm on this function that actually creates the map, and am trying to set up whether or not the...
http://www.sparknotes.com/math/algebra2/matrices/summary.html