yes!
thanks very much
Type: Posts; User: Tesnik
yes!
thanks very much
I dont see why *p1 = 20 makes second value change. p1 is the reference to the firstvalue, so why does secondvalue change and not the firstvalue.
ive tried with the bunnies... they dont work.
Hi, I sort of understood pointers, until I went to cplusplus.com and saw this code:
#include <iostream>
using namespace std;
int main ()
{
Try typecasting. Maybe that will work
hey,
just one question, whats the best way to learn how to program?
Do you first learn all the basics and later you start programming things, or you program things while you are learning the...
:D:D thanks all of you for the help!
Bench82 very good explanation :)
Hi! I'm stuck with a new problem here, and I would really appreciate some help.
lets see... what I want to know is in how many years will the variable money duplicate itself, having an interest...
:( and i thought you were being a good, kind person :D
very clear, thanks.
umm yeah, but its good to know what n += i++ means, or why doesn't the cout go inside the for loop.
so... n+= i++ means.... n=n+(i+1)???
i dont get this part of code:
for ( int i = 1; i <= 10; n += i++ );
cout << n << endl;
I sure will :)
haha thanks cpjust i appreciate it :)
robwhit i have answered you on top of cpjust, we must have press the post button at the same time :D
cpjust what does n+= mean?
thanks a lot. You know, this is my first really serious attempt to study a programming language.
Ive seen some Pascal, some Python and also some Delphi, but i got tired of it. But C, i dont know......
wow haha i think thats a little more advanced. I understood the other code better :)
I haven't seen the loop: thing.
and the --i... dont know what it is :D
but i will learn.
thanks again
ok :D thanks very much
oops i wrote to slow :)
cpjust THATS what i wanted!!
thanks both of you:)
Ive been studying C++ from this page (which is great) for about two weeks, and Ive done simple programs a little...
ok umm, from your post ive tried this:
#include <iostream>
using namespace std;
int main()
ok this is what i got:
#include <iostream>
using namespace std;
int main()
I dont see any loop there. Imagine a want to do it with a while loop. How would I do it?
Thanks. but ive tried your code, and this isnt what im looking for. What i want to do is to add ALL the numbers between 1 and 10 using loop.
Hi, first of all i have to say Im a little embarrassed of making this question because Ive been reading a lot of posts out there, and they are really advanced topics. This is really simple.
I'm ...