Jeroo

Pages: 123
closed account (S6k9GNh0)
............

EDIT: Just counted.. You can only get up to 31. >.>
OTHER EDIT: 11111 = 31 in decimal. What do you mean semantics of zero?
Last edited on
00000 = 1
00001 = 2
00010 = 3
...
11111 = 32

Although it could be argued that that requires a sixth bit to know whether 00000 is 0 or 1.
closed account (S6k9GNh0)
I see what you mean... I forgot about that and just presumed it that 00000 was always 0.
I don't know assembly either what are the advantages of knowing assembly over c++? Portability?
Definitely not portability...
It makes you understand to a lower level what you are doing

You can also test your nerves while writing assembly, even the most basic things require a great number of lines of uncomprehensible code
Definitely not portability...


I figured that since binary is not very portable

It makes you understand to a lower level what you are doing


Yes my brother programs in something called "gamemaker" if it could be called programming, you have a drag and drop interface the only typing you have to do is number (drag var to screen call it "var" type 1) it has low power, runs only in windows, and you get no .exe you get a .gmk or something like it.

uncomprehensible code


hehehe my sister thinks c++ is hard to understand now ...

Also do you get more power?
Also do you get more power?
No, you can never beat a compiler optimization.
So basically ... you gain an appreciation of what you doing when you type:

cout << "Hello, World!\n";


?
Yes, I've once written a program in assembly to write numbers to standard output. You can understand how much work is in doing simple things.
You can also get a better idea on how C-strings and pointers work
Yes I really need to learn about those I was thinking about buying a book, but I will get (I think) a book called C++ Primer Plus (4th Edition)~ Stephen Prata which will be the first c++ book I have ever owned.
Also since you appear to be online, do you know how to get linux to allow me access to the root folder?
Errr... go root.
The best way is to use su root but you might not have set the root password yet. If not
1
2
$ sudo su
# passwd 

then
1
2
$ su root
# cd /root 



As for the advantages of asm; in terms of speed they are minimal on today's computers. However I agree with Bazzy; it is worth it if only to gain a better understanding of how things are working. But don't try learning it too early; it's fairly difficult.
Last edited on
It did not work :(
su: Authentication failure
Did you set a password for root? sudo should take your own password.
Which distro?
Ubuntu
No I do not remember setting a password for root I have about 5 different passwords that I would have used about 3 that I am currently using and I tried them all and it still denied access

It didn't take it though I typed it 4 times, can I attempt to reset it somehow?
Use your own password:
sudo su
then type your own accounts password.
Then you're using the superuser/root account. Type passwd and type in a new password for root. Then you can use
su root every time you want to go root. I've heard using su root is better than sudo su.
Last edited on
Thankyou all is well, now all I need to do is find out how to make a website with apache ....
Put your files in /var/www, open a browser and type "localhost" or "127.0.0.1". Then you need to get your ISP to host your website.

Have fun :)
Then you need to get your ISP to host your website.


Hmm .... how do I do that?
Ask them.

Edit: you'll have to pay.

Edit: one more post!
Last edited on
Pages: 123