Thanks, you two. Quanatum, your solution did the trick. I guess I just wasn't thinking.
Salem, I'll keep that in mind.
Type: Posts; User: elnerdo
Thanks, you two. Quanatum, your solution did the trick. I guess I just wasn't thinking.
Salem, I'll keep that in mind.
Is it possible to have a pointer point to a SPECIFIC memory address? I want to be able to edit one certain address, and I'm not sure how to go about doing it.
I would've assumed that something...
www.lojban.org
It's terrible. It just doesn't sound right.
Yeah, what's up with that.
"Colour"
ick! You might as well be French!
Oh, I'm sorry, I didn't see the cout in there. :o
for(ptr = a; ptr < 10; ptr++)
printf("%d",*ptr);
printf("\n");
There, happy? now it's one variable plus a static against...
Don't try to be a smart.alleck
Look, the point of that program is to output the numbers in the array. Yours doesn't accomplish that. The one with the pointer accomplishes that task and uses...
He wrote a screenplay before he died. He tried to get a movie made, nobody would make it. Finally these people decided to use his screenplay and make a movie.
You idiot. In the first, you're using two variables EVERY time through the loop, a and i.
In the second, you are only using one, ptr.
Yes, in the second you are using a in the declaration...
Wow
We're all idiots.
We all agreed ( including me ) that it didn't have the 'douglas adams touch' to it. I just recently found out that Douglas Adams himself wrote that screenplay.
Think of it this way, it can possibly show that you speak English more fluently than her.
Also pointers can eliminate a variable when dealing with arrays.
(Sorry this is in C)
int main()
{
int a[] = {0,1,2,3,4,5,6,7,8,9};
int *ptr;
//array plus...
I've seen it before so I got 6.. ( I got 3 the first time )
But I'm gonna agree with the majority here, I don't think getting all 6 is genius.
Do you really need to make the caeser cipher roll back?
(a = d, z = c)
Why not simply let it go so you end up with some crazy cool symbols instead of letters, those are usually a lot harder...
You're being stubborn and stupid by saying you don't want to do a vb.net job and that you only use c/c++. If you want any programming jobs, you should know more than just one language.
Don't...
I feel so cool...
It's only in the faq.
To fix that, put your else-ifs in numerical order..
(This is pseudocode cause im too lazy to type it in real code)
instead of:
if age < 40
if age < 20
if age < 30
do:
It was an alright movie, but it could not follow the books. A lot of the humor seemed kind of forced and the only real good parts were the beginning song and the parts where they simply read...
I'm gonna go with dogs.
Cats can never really be a companion, they're too smart, they just want to eat your food and sleep.
Dogs on the other hand will see you as God. They'll idolize you...
I own you all
<_<
>_>
<cough>
That would explain a lot.. :p
One word: Wow..
Wow, that's really cool.
Have you tested it to see if it actually is faster than a normal for-loop?
Took me a while to figure it out, I was cheating and going straight to the end, and nothing happens if you go to the end, you need to go to that one point near the end, took me a while to find that...