Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.22 seconds; generated 47 minute(s) ago.

  1. > I know the function listhpath returns a Node ...

    > I know the function listhpath returns a Node
    You could have fooled me.

    Here.
    pathDirs = listpath(&pathCopy);
    Is this better?
  2. > listpath(&pathCopy); You're ignoring the...

    > listpath(&pathCopy);
    You're ignoring the return result.
  3. Replies
    2
    Views
    165

    Cross-posted Line spacing removal, empty line...

    Cross-posted
    Line spacing removal, empty line ignoring – Windows Questions
    c++ - Line spacing removal, empty line ignoring - Stack Overflow
  4. Replies
    5
    Views
    234

    That's probably the most BS reason for choosing a...

    That's probably the most BS reason for choosing a language I've ever heard.

    > I'm actually not only asking out of curiosity but because I want to create a transpiler to C
    Blimey, you changed your...
  5. No, paste the original code properly.

    No, paste the original code properly.
  6. Your markup is unacceptable. It's an unreadable...

    Your markup is unacceptable.
    It's an unreadable mess.

    Edit your post (or just reply and I'll fix it), and this time use "copy as text" in your IDE and/or "paste as text" in your browser.
  7. Replies
    2
    Views
    165

    Are you ever going to learn how to post code...

    Are you ever going to learn how to post code without all that markup?

    Are you going to stop pushing your spam urls?
  8. Why do you need to do it without a library? ...

    Why do you need to do it without a library?

    sourceware.org Git - glibc.git/summary
    It'll be buried somewhere in there.

    But be warned, float to string conversion is a messy business at the best...
  9. Replies
    1
    Views
    151

    Looks good.

    Looks good.
  10. There are a multitude of reasons why. 1. Your...

    There are a multitude of reasons why.

    1. Your program is a userland process, so all your clocks are to some extent an approximation.

    2. calling malloc may involve a very expensive trap into the...
  11. So can you post your valgrind log output? Can...

    So can you post your valgrind log output?

    Can you control the options you give to valgrind?
  12. The comma operator doesn't do what you think it...

    The comma operator doesn't do what you think it does.

    while(PW!=ps, i<3)
    is just
    while( i<3)
    which is why "No matter if the password is 'right' it will only pass through on the third attempt."...
  13. Replies
    5
    Views
    327

    Both these do the same thing, but one uses an...

    Both these do the same thing, but one uses an extra level of indirection (a star), whereas the other returns a result.


    #include <stdio.h>
    #include <stdlib.h>

    struct Node {
    int data;
    ...
  14. Replies
    5
    Views
    327

    In the same way when you pass a pointer to an...

    In the same way when you pass a pointer to an int, you want to change the int


    void foo ( int *p ) {
    *p = 42;
    }


    You might want to change the pointer in this context.
  15. Replies
    1
    Views
    215

    You want to be doing something like...

    You want to be doing something like
    strcmp(current->data,current->nextNode->data)

    Then doing a string swap using strcpy.


    As an aside, you really need to start making some functions out of...
  16. Replies
    8
    Views
    389

    Which OS are you on? It's typically ctrl-z for...

    Which OS are you on?

    It's typically ctrl-z for DOS/Windows and ctrl-d for Linux/Unix.

    When do you signal EOF?

    hello<ctrl-z>
    is not the same as
    hello
    <ctrl-z>
  17. Thread: Beginner

    by Salem
    Replies
    5
    Views
    399

    Sure, Visual Studio Express is also a good choice.

    Sure, Visual Studio Express is also a good choice.
  18. Replies
    3
    Views
    205

    GetCurrentThread function (processthreadsapi.h) -...

    GetCurrentThread function (processthreadsapi.h) - Win32 apps | Microsoft Docs
  19. Thread: Beginner

    by Salem
    Replies
    5
    Views
    399

    I'm not sure I'd recommend an IDE that's 3 years...

    I'm not sure I'd recommend an IDE that's 3 years old, costs money after a trial period, from a site with spelling mistakes, and it doesn't even come with a compiler!

    Binary releases - Code::Blocks...
  20. Replies
    1
    Views
    189

    switch / case work well when - one side of your...

    switch / case work well when
    - one side of your if expressions are constants
    - those constants are close together.

    But your if's are variable on both sides, and the range is 1 to 372 (31*12)
    ...
  21. Well there's your problem! Expecting...

    Well there's your problem!
    Expecting "performance" out of a bubble sort.

    std::sort - cppreference.com
  22. What sort of programs do you intend to write. ...

    What sort of programs do you intend to write.

    Regular user-space programs or kernel/driver hacking?
    If you're messing with the kernel at all, then a cross-compiler might be a better idea.
    You...
  23. Post one of your better attempts, then we can...

    Post one of your better attempts, then we can show you how to fix it.
  24. Replies
    10
    Views
    522

    Maybe you want this then. A simple libpng...

    Maybe you want this then.
    A simple libpng example program

    Just type "libpng example" into your favourite search engine and read a few examples.
  25. Replies
    10
    Views
    487

    > *(stringbuild + strlen(stringbuild))...

    > *(stringbuild + strlen(stringbuild)) = ch;
    > stringbuild = (char *)realloc(stringbuild, strlen(stringbuild));
    1. You don't need to cast the result of malloc / calloc /...
Results 1 to 25 of 488
Page 1 of 20 1 2 3 4