View Full Version : Stupid questions learning
mike0106
14th February 2004, 06:53
http://www.siteresources.uni.cc/cpp_programming/
This is what I am reading and would like to ask some stupid questions and maybe some not so stupid ones.
If anyone has the time or if anyone is learning at the same time and understand something I dont or if I understand something you don't I figured we could help each other.
If this isnt welcome here maybe we could start a forum somewhere or find another place . I'd really like to keep it here though because I think alot of people would like to learn and have a place to ask questions.
My question is: http://www.siteresources.uni.cc/cpp_programming/Ascii-Code.html#Ascii%20Code
How does 0 = 00110000 when they just showed that 48=00110000
Did I miss something?
xollox
14th February 2004, 06:58
I don't see where it says 0 = 00110000...?
mike0106
14th February 2004, 07:28
the last paragraph :
Reading the remainders from the bottom up, 48 in binary is 110000. In order for it to take up a full byte, however, zeros are added to the left side of it until it is 8 digits, so it would be:
00110000
This is how it would be stored in the computer. Any character you type in has such an ascii code, which can then be converted into binary to be stored in the computer. Then, when you open up the file again, that data is read, converted into ascii code, and displayed as the characters which you typed in. So, even if you type 0, it is not stored as 0 in the computer! But instead, is stored as 00110000.
I understand the conversions now...got the exercises all right. I just hate when I dont understand something fully.
Is that just a misprint?
xollox
14th February 2004, 07:36
ohhh...now i see it. hmm...
Looks like a misprint to me. 0 would be 00000000.
mike0106
14th February 2004, 10:50
OK ty ...hate having lil bugs in my head.
Compiler time woohoo!!!
I typed out the program they give as an example and it ran fine but when i changed it to try to personalize a bit and save it it says file already exists overwrite it? I put yes and it comes back with error files already exists in hello.cpp(its name) please specify another location.Any clues?
how do you edit a program and save it? it wont overwrite
OMG I'm getting frustrated.....Now the first prog I did won't work says hello.exe is not recognized as int or ext command.
Please help!!!!
please help
When I hit execute it runs within dev but not in command prompt.
mike0106
14th February 2004, 15:38
ok i figured it out if anyone read the link I posted and are trying to learn I found a better site where that one leaves off. The first one is kinda outdated (where my problems kinda stemmed from gotta have the xp compatible version) but it's a good start for learning the basics of number bases and how to convert them(not that you really need to know).
This link takes off where that one leaves off:
http://www.robertjacobs.fsnet.co.uk/index.htm
Just so you know I'll answer any question anyone has no matter how stupid you(or anyone else) might think it is. If I can.
nightmare
14th February 2004, 15:39
Can someone move this to coding plz since he can be help better there.
mike0106
14th February 2004, 15:47
Thank you, you just solved all my problems by saying that. I didnt even realize there was more to this site. I found it through google and didnt know there was a coding secction. Thats where all the tuts are. Ty Ty Ty.
Powered by vBulletin™ Version 4.0.4 Copyright © 2010 vBulletin Solutions, Inc. All rights reserved.