Search:

Type: Posts; User: Click_here

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    295

    1) Declare a char array 2) Using the function...

    1) Declare a char array
    2) Using the function "sprintf", put the float into a string format and in the char array
    3) Print the char array to the screen

    Here is a quick overview of sprintf and...
  2. Replies
    4
    Views
    263

    This should not be a problem on an Arduino, as it...

    This should not be a problem on an Arduino, as it is not purely C: It implements parts of C++.

    What code are you trying to run?

    What error codes are you getting?
  3. Replies
    3
    Views
    341

    Functions in C - Cprogramming.com...

    Functions in C - Cprogramming.com

    Enjoy :)
  4. Have a look at the "GetConsoleInput" function...

    Have a look at the "GetConsoleInput" function here - Example C Program: Deriving a Session Key from a Password - Win32 apps | Microsoft Docs
  5. Thread: Function

    by Click_here
    Replies
    3
    Views
    354

    This is what I got when I tried to build it... ...

    This is what I got when I tried to build it...


    ||=== Build: Debug in AlgorithmTest (compiler: GNU GCC Compiler) ===|
    D:\Programming\AlgorithmTest\main.c||In function 'main':|...
  6. Replies
    7
    Views
    508

    *Like*

    *Like*
  7. Replies
    12
    Views
    587

    If it's my meme collection you are after, you can...

    If it's my meme collection you are after, you can go away :P
  8. Replies
    8
    Views
    387

    lmao!

    lmao!
  9. Replies
    12
    Views
    587

    Good point - I didn't think of that My OS does...

    Good point - I didn't think of that

    My OS does not clear the memory before allocating it, so here is the output from when I ran it (in case you are in the same boat as Salem)


    malloc: 0x41...
  10. Replies
    12
    Views
    587

    Learn by doing :) int main(void) { ...

    Learn by doing :)




    int main(void)
    {
    int i, setSize = 10;
    char *apple;
  11. Replies
    8
    Views
    387

    Instead of studying the exact implications of...

    Instead of studying the exact implications of doing something incorrectly, my advice would be to focus your energy into ways to avoid doing it in the first place.

    Assigning a literal too large to...
  12. Replies
    7
    Views
    508

    Yes. This is a basic bit test. // A few...

    Yes.

    This is a basic bit test.


    // A few simple bit tasks for u-controllers...

    // Test bit
    (1<<bit) & x
  13. Have a look at #include You can...

    Have a look at

    #include <errno.h>

    You can also use a custom typedef to handle error - I like this because it allows me to slowly "throw" the error back to a function that could do something...
  14. There is an example of fgets here - Why it's bad...

    There is an example of fgets here - Why it's bad to use feof() to control a loop - Cprogramming.com
  15. It means that when your user opens your program...

    It means that when your user opens your program the memory is not allocated yet.


    Another way of looking at it is a work project and getting funding for it (where the money represents memory in...
  16. Replies
    3
    Views
    333

    char *filename = malloc(sizeof(name)); How...

    char *filename = malloc(sizeof(name));


    How big do you thing sizeof(name) is going to be? Remember that "name" is not an array in that function, it is a pointer to a char.

    Try running this...
  17. What makes you think that? No one has asked...

    What makes you think that?


    No one has asked this, but what are you intending to program? What environment are you targetting? Did you have a design pattern in mind?
  18. Have you seen "Patterns in C" by Adam Petersen? ...

    Have you seen "Patterns in C" by Adam Petersen?

    And no, I've never had the desire to use C++.

    I have 2 things that I code:
    1) Small 8-bit microcontrollers that have no OS (bare metal...
  19. I'd suggest that you do it by hand a few times :)...

    I'd suggest that you do it by hand a few times :)

    How you you pay for something worth $1.30...
  20. Replies
    4
    Views
    471

    To get you started...

    To get you started...

    &lt;&lt; !! Posting Code? Read this First !! &gt;&gt;

    Some other tags are "quote" "url" and are used like this...

    ...
  21. Replies
    6
    Views
    873

    Then this isn't going to go well... :) ...

    Then this isn't going to go well... :)


    unsigned char texture1 = 2700000;
  22. Replies
    6
    Views
    873

    I think that you've accidently posted c++ on the...

    I think that you've accidently posted c++ on the C forum

    What is the maximum number that your system can store in an unsigned char?
  23. Replies
    14
    Views
    1,208

    Just to extend on what flp said - You need to do...

    Just to extend on what flp said - You need to do a little research on what algorithm that you wish to use. This will be the case when you are doing future assigments, or coding for a company.
    ...
  24. Replies
    14
    Views
    1,208

    Please read the homework policy.

    Please read the homework policy.
  25. And also non-hosted environments :)

    And also non-hosted environments :)
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4