Search:

Type: Posts; User: ThatDudeMan

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    1,100

    Because I didn't know.

    Because I didn't know.
  2. Replies
    10
    Views
    1,100

    Is it possible to read numbers from the console...

    Is it possible to read numbers from the console as addresses then?
  3. Replies
    10
    Views
    1,100

    The user inputs a number in the console, which is...

    The user inputs a number in the console, which is to be interpreted as an address.
    I then have to lookup what is at that address and tell him.
  4. Replies
    10
    Views
    1,100

    Casting number to pointer

    Hello,

    I am casting an integer value to a pointer. It works without problems on systems where sizeof(int) == sizeof(pointer)

    But on systems where this is not the case, I am getting a compiler...
  5. Replies
    7
    Views
    2,783

    No, I want to know the known reasons why an...

    No,

    I want to know the known reasons why an array is initialized with 0s in one program and the same one is initialized with numbers in the same program, but newer version.

    I am pretty sure now...
  6. Replies
    7
    Views
    2,783

    Character array initialization problem

    Hello,

    I have a character array with 14 elements in my newest version of my program. The same character array is on the same spot in my old version of the program.
    The differences are: On my old...
  7. Replies
    2
    Views
    1,444

    Checking to which address pointer points

    Hello,

    is it possible to check the address a pointer points to? I am writing a program where a user can enter an address in hex format and I have multiple pointers in my program pointing to...
  8. Replies
    5
    Views
    2,263

    I figured out that in the 2nd example some of my...

    I figured out that in the 2nd example some of my m3 elements override some m2 elements.

    Why?

    /edit: nvm
  9. Replies
    5
    Views
    2,263

    Array elements get overridden?

    Hello,

    first the code that works:



    int main(int argc, char *argv[])

    {
  10. Replies
    17
    Views
    20,562

    When I input a string with less chars and compare...

    When I input a string with less chars and compare it with strcmp, it doesn't recognize it, what's wrong?
  11. Replies
    17
    Views
    20,562

    Let's say my size in fgets is 12, what happens...

    Let's say my size in fgets is 12, what happens when I input a String with 6 chars? What does it put in my char* variable I pass?
  12. Replies
    17
    Views
    20,562

    fgets has a size parameter which is troubling me.

    fgets has a size parameter which is troubling me.
  13. Replies
    17
    Views
    20,562

    So, how do I read strings with variable length...

    So, how do I read strings with variable length and spaces?
  14. Replies
    17
    Views
    20,562

    The problem with fgets though is that I can't...

    The problem with fgets though is that I can't read input with variable length.
  15. Replies
    17
    Views
    20,562

    But fgets reads a file?

    But fgets reads a file?
  16. Replies
    17
    Views
    20,562

    As I said, it fails on spaces. Apparently strcmp...

    As I said, it fails on spaces. Apparently strcmp can only handle letters?
  17. Replies
    17
    Views
    20,562

    I want to check for equality. Equality being same...

    I want to check for equality. Equality being same characters on same positions.
  18. Replies
    17
    Views
    20,562

    strcmp fails with spaces

    Hello,

    when I want to compare strings with spaces, strcmp fails on me :/ . Is there an alternative function that tests strings for equality that can also handle spaces?
    Or what other way should I...
  19. Replies
    1
    Views
    911

    Main file deleted

    Hello,

    when I was trying to compile my program under linux with gcc, my main file got deleted(with the main function in it) and it gave me a compile error, because the main function was gone....
  20. Replies
    5
    Views
    898

    Oh yeah, I have to compile all source files at...

    Oh yeah, I have to compile all source files at once, that was my mistake.
  21. Replies
    5
    Views
    898

    Hello, I defined the function in a file called...

    Hello, I defined the function in a file called mytype.c which includes mytype.h.
    How do I get it from there?
  22. Replies
    5
    Views
    898

    undefined reference

    Hello,

    I have a problem. When trying to compile my sourcecode I get following warning:

    undefined reference to `add'

    This is where I get it:


    #include <stdio.h>
  23. Replies
    2
    Views
    1,738

    Getting compile time.

    Hello,

    I want to show the date when my program was compiled on my local machine.
    For example it shows "Version 1.01, compiled at 'date'". Is there some way to get the date when my program is...
Results 1 to 23 of 23