post  Jeroo

computerquip (876)   Link to this post
............

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
helios (6064)   Link to this post
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.
computerquip (876)   Link to this post
I see what you mean... I forgot about that and just presumed it that 00000 was always 0.
DrChill (558)   Link to this post
I don't know assembly either what are the advantages of knowing assembly over c++? Portability?
Bazzy (4111)   Link to this post
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
DrChill (558)   Link to this post
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?
Bazzy (4111)   Link to this post
Also do you get more power?
No, you can never beat a compiler optimization.
DrChill (558)   Link to this post
So basically ... you gain an appreciation of what you doing when you type:

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


?
Bazzy (4111)   Link to this post
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
DrChill (558)   Link to this post
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.
DrChill (558)   Link to this post
Also since you appear to be online, do you know how to get linux to allow me access to the root folder?
chrisname (2545)   Link to this post
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
DrChill (558)   Link to this post
It did not work :(
su: Authentication failure
Bazzy (4111)   Link to this post
Did you set a password for root? sudo should take your own password.
Which distro?
DrChill (558)   Link to this post
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?
chrisname (2545)   Link to this post
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
DrChill (558)   Link to this post
Thankyou all is well, now all I need to do is find out how to make a website with apache ....
chrisname (2545)   Link to this post
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 :)
DrChill (558)   Link to this post
Then you need to get your ISP to host your website.


Hmm .... how do I do that?
chrisname (2545)   Link to this post
Ask them.

Edit: you'll have to pay.

Edit: one more post!
Last edited on

Pages: [1] [2] [3]


This topic is archived - New replies not allowed.