Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.21 seconds.

  1. Replies
    23
    Views
    299

    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...
  2. Replies
    23
    Views
    299

    > 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...
  3. Replies
    23
    Views
    299

    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
  4. Replies
    23
    Views
    299

    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...
  5. Replies
    1
    Views
    81

    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...
  6. Replies
    23
    Views
    299

    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.
  7. > 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...
  8. Replies
    1
    Views
    44

    Have you told the manufacturer of your dongle...

    Have you told the manufacturer of your dongle about the problem?
    Or looked on their website?
  9. > 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....
  10. You need to stop getting all creative with all...

    You need to stop getting all creative with all the font style and size abuse.
  11. > 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...
  12. Replies
    5
    Views
    139

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

    > while((_wherex != 20) && (_wherey != 5))
    The error message suggests it should be
    while((_wherex() != 20) && (_wherey() != 5))
  13. 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();
  14. > typedef int (*TestFunc)(int); This is what...

    > typedef int (*TestFunc)(int);
    This is what erroneously gives your function arguments.
  15. 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++)
    {
    ...
  16. Replies
    1
    Views
    103

    Duplicate of Modifying a pthread program to read...

    Duplicate of Modifying a pthread program to read multiple lines
  17. Replies
    6
    Views
    176

    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...
  18. Replies
    11
    Views
    862

    Is all the weird capitalisation something...

    Is all the weird capitalisation something actually in your code we need to be paying attention to, or just your weird funky writing style?

    > What is the best way for MyDebug.h to call commands...
  19. Replies
    4
    Views
    134

    In future, please post your code and other...

    In future, please post your code and other machine generated text between
    tags.

    We can't (for example), easily quote your picture to highlight particular issues.

    Fuzzy pictures are a high...
  20. > for(i=1;i ...

    > for(i=1;i<=row;i++)
    > for(j=1;j<=col;j++)
    Arrays start at subscript 0, not 1.

    for ( i = 0 ; i < N ; i++ )
    is the idiomatic loop for iterating over an array of length N.
  21. Thread: HyperC

    by Salem
    Replies
    71
    Views
    774

    Turning C into Perl, one graphic character at a...

    Turning C into Perl, one graphic character at a time.

    You turned printf into ink.
    What if I want to print to stderr, or indeed any other open file?

    You turned if/else into case.
    What if I...
  22. And you were doing so well..... My program...

    And you were doing so well.....

    My program works good but there are two things I don't understand yet

    But then you cross-posted and wasted my time :mad:
  23. > printf("%f",SeatF[i][j]); %f prints floats,...

    > printf("%f",SeatF[i][j]);
    %f prints floats, not ints.

    > printf("\n");
    Now, are you trying to print all the seats for one all on the same line?
    Or just every seat on a line by itself?
  24. Like so void convertToBinary(int n) { ...

    Like so


    void convertToBinary(int n)
    {
    int binaryNumber[8] = { 0 }; // so you get leading zeros, and not junk
    int i = 0;

    while(n > 0)
    {
  25. You need a do-while loop, because you need the...

    You need a do-while loop, because you need the body of the code to run at least once.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4