Search Results

Showing results 1 to 18 of 18
Search took 0.01 seconds.
Search: Posts Made By: hollystyles ; Forum: C and child forums
Forum: C Sep 8th, 2006
Replies: 8
Views: 1,383
Posted By hollystyles
It's ok it doesn't hurt too much ;) he he
anyway at least we know you got the message now.

Of course we don't expect you to know all the rules straight off. If you look in my signature there's...
Forum: C Sep 7th, 2006
Replies: 5
Views: 1,300
Posted By hollystyles
No they are opposite.

c = *a; //You are assigning the value that a points to *into* c
*a = c ; //you are assigning the value in c into what a points to

You always assign RHS to LHS, left to...
Forum: C Sep 7th, 2006
Replies: 8
Views: 1,383
Posted By hollystyles
He he, well like they always say:
"Big red and firey, always late"

:lol:
Forum: C Sep 7th, 2006
Replies: 8
Views: 1,383
Posted By hollystyles
Wolfpack just gave me this URL
http://www.daniweb.com/techtalkforums/thread50780.html

Moral:
Search the forums before posting.
Forum: C Sep 7th, 2006
Replies: 8
Views: 1,383
Posted By hollystyles
I think both goes on the stack both times. Would only go on the heap/free store if you use the 'new' keyword.

Wolfie ?

p.s.
Yeah and put [ CODE ] [/ CODE ] around JUST the code not the whole...
Forum: C Aug 3rd, 2006
Replies: 28
Views: 2,891
Posted By hollystyles
Wow how old are you ? I'd expect to find you at slashdot rather than daniweb.:cheesy: I've read about those days, you submitted your code and didn't get output until that afternoon or maybe the next...
Forum: C Aug 3rd, 2006
Replies: 28
Views: 2,891
Posted By hollystyles
Well ok I concede that was perhaps a little strong.

But you are changing tack with the UML arguement. UML is just a method for designing, the field is much narrower you don't 'create' with it. UML...
Forum: C Aug 3rd, 2006
Replies: 28
Views: 2,891
Posted By hollystyles
No no no no no I'm sorry that's completely the wrong way around. (system("pause")/fflush(stdin) getch()/kbhit() are not wood (the language) they are prefabricated table legs/lego bricks made for...
Forum: C Aug 2nd, 2006
Replies: 28
Views: 2,891
Posted By hollystyles
But it is clearly defined in the document to which I posted a link. It is important to understand in great depth the tools you work with. It is very possible for a large project to have potentialy...
Forum: C Aug 1st, 2006
Replies: 28
Views: 2,891
Posted By hollystyles
At last the calvary arrives, I was starting to feel like Genral Custer!
Forum: C Aug 1st, 2006
Replies: 28
Views: 2,891
Posted By hollystyles
You are running preprocessor ONLY you said



Did you read the material I posted?

http://www.channelu.com/NeXT/NeXTStep/3.3/nd/DevTools/12_Preprocessor/Preprocessor.htmld/index.html
...
Forum: C Aug 1st, 2006
Replies: 28
Views: 2,891
Posted By hollystyles
It must vary depending on the compiler, here's a good llink for the GNU C Preprocessor. (the one I am using)
...
Forum: C Aug 1st, 2006
Replies: 28
Views: 2,891
Posted By hollystyles
I stated I was guessing and if I have any good material I would quote it.

I came to this conclusion by thinking about it and applying a process of elimination in my mind, by thinking about how a...
Forum: C Aug 1st, 2006
Replies: 28
Views: 2,891
Posted By hollystyles
I'm guessing here, but I recon they cancel each other out.

All directives run on each instance, so:

Preprocessor finds the first instance of a and runs ALL directives on it
a = b = a
Then...
Forum: C Aug 1st, 2006
Replies: 28
Views: 2,891
Posted By hollystyles
Doh! ! I can't believe I am soooo thick!

It swaps every instance of a and b so

printf("%d %d", a, b);

becomes

printf("%d %d", b, a);
Forum: C Aug 1st, 2006
Replies: 28
Views: 2,891
Posted By hollystyles
You havn't done anything with your definitions, try this:

#include <stdio.h>
#define a_b

int main(void)
{
#ifdef a_b
int a = 20, b = 30;
#endif
Forum: C Jul 27th, 2006
Replies: 30
Views: 22,492
Posted By hollystyles
Strictly that's not true because 1 is divisible by 1 and itself, but 1 isn't prime. I prefer:

A prime number has precisely two positive integer factors.
Forum: C Jul 26th, 2006
Replies: 5
Views: 1,109
Posted By hollystyles
Drat, just when you think you know something, it turns out you don't know squat.

I did know hexidecimal was base 16, luckily I don't have to deal with it on a daily basis so I guess I'm losing...
Showing results 1 to 18 of 18

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC