Thread: Explanation needed, what is this?

  1. #1
    Registered User CAP's Avatar
    Join Date
    May 2002
    Posts
    179

    Explanation needed, what is this?

    Ok I made a very small program that takes two numbers, subtracts one from the other and well you get it. Anyways I was going through My documents trying to find the different files for them(some idiot moved them but that is besides the point)and I opened up one file that I thought was connected and my computer didn't know what to use so I told it to try using my compiler and this is a short example of what it gave me, what is this?

    Code:
    001100 FF FF FF FF FF FF FF FF   FF FF FF FF FF FF FF FF
    001110 FF FF FF FF FF FF FF FF   FF FF FF FF FF FF FF FF
    001120 FF FF FF FF FF FF FF FF   FF FF FF FF FF FF FF FF
    001130 FF FF FF FF FF FF FF FF   FF FF FF FF FF FF FF FF
    001140 FF FF FF FF FF FF FF FF   FF FF FF FF FF FF FF FF
    Please keep in mind that this is a VERY short example of what was displayed, it goes on for quite a while(I can't copy and paste the numbers and I don't want to type them all out, as it is copying and pasting the groups of F's shows them as y's with two dots over their heads so whatever) so if anyone cares to tell me what is going on I would appreciate it, also just tell me if you need more info and I will try if I have more time.
    -Microsofts Visual C++ Introductory Kit-
    Current Projects: Learning Everything C.

    Everyone has a photographic memory, some people just don't have any film.
    ______________________________

    When was the last time you went for a colon cleansing? Because quite frankly, you're so backed up with crap that it's spilling out your mouth

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    95
    how can you programming on not know what this is?
    My guess is that you opened a data file of some sort, all this is, is hexadecimal, every program, character, whatever is made up of 1's and 0's, 256 is the highest single number (8 1's or 0's) instead of viewing a programing that just looks like numbers, letters, symbols, etc you can view it as numbers (1's and 0's) or decimal, or hexadecimal, FF = 255. You probably just opended up a .exe file or something like that, dont worry about it, it isnt your source code, however it might be your compiled program.

  3. #3
    Registered User CAP's Avatar
    Join Date
    May 2002
    Posts
    179
    I am not programming yet, I am just learning so this is like a test and I don't know all of the background stuff either but I am learning, I just wanted to know.
    -Microsofts Visual C++ Introductory Kit-
    Current Projects: Learning Everything C.

    Everyone has a photographic memory, some people just don't have any film.
    ______________________________

    When was the last time you went for a colon cleansing? Because quite frankly, you're so backed up with crap that it's spilling out your mouth

  4. #4
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    > Ok I made a very small program
    Do you have some code that goes along with this?
    The world is waiting. I must leave you now.

  5. #5
    Registered User billholm's Avatar
    Join Date
    Apr 2002
    Posts
    225

    Lightbulb

    Well CAP I think that file (or something) produce a hex dump.
    All men are created equal. But some are more equal than others.

    Visit me at http://www.angelfire.com/my/billholm

  6. #6
    Registered User CAP's Avatar
    Join Date
    May 2002
    Posts
    179
    The code isn't important(although I will post it) but all I wanted to know was what exactly this file was as it is related to the rest of the program I couldn't just not know(I am narrotic that way, lol).

    Code:
    #include <stdio.h>
    
    void calculator(void)
    {
    	float value1;
    	float value2;
    	float total;
    
    	printf("\nPlease enter your first number: ");
    	scanf("%f", &value1);
    	
    	printf("\nPlease enter your second number: ");
    	scanf("%f", &value2);
    	total = value1 * value2;
    
    	printf("\nThe total of adding both of your numbers together is: %f\n\n", total);
    
    }
    
    main ()
    {
    	calculator();
    	return 0;
    }
    I completly realize that this can be fixed(like not putting all of "calculators" code in the beginning)but this was just to mess around with after Shadow posted a fixed version of my other attempt so I thought I would try again.

  7. #7
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    > I couldn't just not know
    > so I thought I would try again.

    There might be a way or two to do what you're doing better, because I haven't really looked at the code close enough. Keep on trying though. Have any other questions, be sure to ask them!
    The world is waiting. I must leave you now.

  8. #8
    Registered User CAP's Avatar
    Join Date
    May 2002
    Posts
    179
    I am sure I will have more questions soon enough but for now I have experimented enough so I can go back to reading my book(which I left like a week ago to do stuff on my own and damn does that method work )
    -Microsofts Visual C++ Introductory Kit-
    Current Projects: Learning Everything C.

    Everyone has a photographic memory, some people just don't have any film.
    ______________________________

    When was the last time you went for a colon cleansing? Because quite frankly, you're so backed up with crap that it's spilling out your mouth

  9. #9
    Registered User billholm's Avatar
    Join Date
    Apr 2002
    Posts
    225

    Lightbulb

    Hello Shadow!

    What's up old boy? I haven't heard from you a long time already hehehe.
    All men are created equal. But some are more equal than others.

    Visit me at http://www.angelfire.com/my/billholm

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A bit of explanation needed.
    By JacobN in forum C Programming
    Replies: 3
    Last Post: 11-24-2007, 05:41 PM
  2. Simple Explanation Needed
    By slowcoder in forum C Programming
    Replies: 7
    Last Post: 07-10-2007, 02:00 PM
  3. strswap. Explanation needed.
    By kantze in forum C Programming
    Replies: 5
    Last Post: 10-21-2006, 10:53 AM
  4. Explanation of a Compilation Error Needed
    By Zildjian in forum C Programming
    Replies: 2
    Last Post: 10-23-2003, 02:04 AM
  5. strcpy syntax explanation needed
    By blight2c in forum C++ Programming
    Replies: 3
    Last Post: 03-16-2002, 08:29 PM