Ok thankyou. I'll wait till I get further into the book to find out about the differences.
Type: Posts; User: Chewbacca
Ok thankyou. I'll wait till I get further into the book to find out about the differences.
I see that does seem to be the case as it goes on to show how you can do additions and other similar things aswell :)
Is there any real difference in using endl and \n?
It seems they do the same thing but are there situations one is best used over the other?
Just going through a tutorial and saw this code
cout << "Here is 5: " << 5 << "\n";
And heres a quote about it
Is there any reason why you would just do this?
4th edition? Doh! I only have the 2nd edition (downloaded)
Its the workshop exercise for day 1.
I've noticed too and although I'm too much of a newbie to help. When I ran it from within MSVC++ its ok. I'm sures theres a simple way of holding that window open rather then auto closing it (which I...
#include <iostream.h>
int main()
{
int x = 5;
int y = 7;
cout "\n";
cout << x + y << " " << x * y;
cout "\n";
return 0;
}
Damn I wasn't logged in :(
I wish they would make it so you had to register to post.
Can MSVC++ .net be used in exact the same way as MSVC++ 6? What I mean is can it be used without having to use the .net parts? Or is v6 and .net more different then just having added .net functions?
I'm running Win XP so I'm ok there.
Yes considering the prices of good books I've decided to do as much as I can online and will borrow some books from my local library :)
Thanks for all the guidance so far. Keep it coming :)