Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.11 seconds; generated 48 minute(s) ago.

  1. One of two way perhaps. class Vec3f { ...

    One of two way perhaps.


    class Vec3f {
    public:
    inline Vec3f () : x (0), y (0), z (0) {}
    inline Vec3f (float xx, float yy, float zz) : x (xx), y (yy), z (zz) { }
    inline...
  2. There is no standard way for you to make an...

    There is no standard way for you to make an existing file one record shorter.

    There are various OS specific options though.


    Binary files are often easiest to use if you have say
    - a specific...
  3. Replies
    4
    Views
    153

    Well you need to know what a sequence point is,...

    Well you need to know what a sequence point is, and the "object modified at most once" rule.
    Question 3.8
  4. Thread: Class error

    by Salem
    Replies
    13
    Views
    133

    You have multiple #include "somefile.cpp" lines....

    You have multiple #include "somefile.cpp" lines.

    #include<iostream>
    #include "Sally.h"
    #include "Sally.cpp" //!!<< This is wrong!

    You add the .h and .cpp files to your project in the IDE,...
  5. Replies
    4
    Views
    153

    This is an example of how UB can mess with your...

    This is an example of how UB can mess with your mind / code / life.

    Same code, different compilers, different answers.
    It's undefined
  6. Replies
    5
    Views
    89

    For example JPL Small-Body Database Browser...

    For example
    JPL Small-Body Database Browser
  7. Thread: HyperC

    by Salem
    Replies
    83
    Views
    1,004

    TBH, all this belongs on a blog on your own...

    TBH, all this belongs on a blog on your own forum, where people who are actually interested can follow your wandering thoughts.
  8. Replies
    5
    Views
    89

    Looks like NASA is already on the case. NEO...

    Looks like NASA is already on the case.
    NEO Earth Close Approaches
  9. Replies
    33
    Views
    1,043

    My eyes are bleeding from structure's...

    My eyes are bleeding from structure's drain-bamage.

    Global variables, a string compare worse than O(N), and an array overrun.


    > Comparing strings can be difficult...
    No it isn't. It's first...
  10. Replies
    33
    Views
    1,043

    > Would the way you just showed be like this? and...

    > Would the way you just showed be like this? and is the [6] and [2] how many i can have?
    That's the length of each string.

    char morseTable[numberOfMorseSymbols][maxLengthOfMorseCode]

    But the...
  11. Replies
    33
    Views
    1,043

    You save a lot of copy/paste if you can do this....

    You save a lot of copy/paste if you can do this.


    char morseTable[][6] = {
    ".-",
    // etc
    };
    char letterTable[][2] = {
    "A",
    // etc
  12. Replies
    33
    Views
    1,043

    OK, a few things to sort out. 1. 'c' != "c"...

    OK, a few things to sort out.

    1. 'c' != "c"
    In single quotes, you have a character constant, and it can only be a single character.
    In double quotes, it's a string, and you can have as many...
  13. Replies
    1
    Views
    248

    Various sorting algorithms can be split into...

    Various sorting algorithms can be split into parallel and sequential steps.

    Various image manipulation algorithms can be split to work on tiles of the image at the same time.
    Integer scaling...
  14. Replies
    33
    Views
    1,043

    It's hard to give you more ideas, if you don't...

    It's hard to give you more ideas, if you don't show your current idea.

    Plus, it's hard to show you how without just giving you the code.
  15. Replies
    6
    Views
    110

    > Spotify takes like 4GBs in AppData folder, ...

    > Spotify takes like 4GBs in AppData folder,
    How many songs have you downloaded / listened to?

    Download procmon from sysinternals.com, and set a filter to watch for files being opened in...
  16. Replies
    1
    Views
    64

    Have you told the manufacturer of your dongle...

    Have you told the manufacturer of your dongle about the problem?
    Or looked on their website?
  17. > I see the top part of this post shifted to the...

    > I see the top part of this post shifted to the right but I don't see any strange colors or font sizes.
    That's because I edited it.

    > I'm new here and I don't understand why that's happening....
  18. You need to stop getting all creative with all...

    You need to stop getting all creative with all the font style and size abuse.
  19. > Output comes out as 1--7--3--2--6--5--9--8--10...

    > Output comes out as 1--7--3--2--6--5--9--8--10 when searching for 10 when I just want to save the path 1--7--9--10.
    ...
    > printf ("%d --" ,vertex->value);
    I can recommend that you run the code...
  20. Replies
    5
    Views
    297

    > while((_wherex != 20) && (_wherey != 5)) The...

    > while((_wherex != 20) && (_wherey != 5))
    The error message suggests it should be
    while((_wherex() != 20) && (_wherey() != 5))
  21. You would need to do t1 =...

    You would need to do


    t1 = std::chrono::high_resolution_clock::now();
    for(int i = 0; i < 1000; i++)
    {
    int x = whatever(i);
    foo1(x);
    }
    t2 = std::chrono::high_resolution_clock::now();
  22. > typedef int (*TestFunc)(int); This is what...

    > typedef int (*TestFunc)(int);
    This is what erroneously gives your function arguments.
  23. I would suggest you start by making this work. ...

    I would suggest you start by making this work.


    reader_threadf((void*)&co);
    reader_threadf((void*)&co);
    reader_threadf((void*)&co);

    for (int i=0;i<LENGTH;i++)
    {
    ...
  24. Replies
    1
    Views
    258

    Duplicate of Modifying a pthread program to read...

    Duplicate of Modifying a pthread program to read multiple lines
  25. Replies
    6
    Views
    337

    You need to find where glib-object.h was actually...

    You need to find where glib-object.h was actually installed.
    Let's say for illustration that it was in /path/to/headers/glib-object.h

    Then your compilation command line would be
    gcc...
Results 1 to 25 of 491
Page 1 of 20 1 2 3 4