Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.19 seconds.

  1. Replies
    6
    Views
    13

    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...
  2. Replies
    1
    Views
    20

    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...
  3. Replies
    6
    Views
    13

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

    Have you told the manufacturer of your dongle...

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

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

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

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

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

    Duplicate of Modifying a pthread program to read...

    Duplicate of Modifying a pthread program to read multiple lines
  14. Replies
    6
    Views
    146

    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...
  15. Replies
    11
    Views
    827

    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...
  16. Replies
    4
    Views
    103

    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...
  17. > 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.
  18. Thread: HyperC

    by Salem
    Replies
    64
    Views
    710

    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...
  19. 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:
  20. > 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?
  21. 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)
    {
  22. 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.
  23. > are there something i need to do better? yeah,...

    > are there something i need to do better?
    yeah, call DisplayFunc(r,w,SeatF);

    Also, use your range parameters.


    int rpos = s1[0]-'F';
    int wpos = i+2;
    if ( rpos >= 0 && rpos < r && wpos >= 0...
  24. > SeatF[s1[0]-65][i]==1; This is still wrong! ...

    > SeatF[s1[0]-65][i]==1;
    This is still wrong!

    See above.

    > for (i=s1[1];i<=s2[1];i++)
    What do you actually type in?

    Because anything other than say "2A" and "2C" (you ignore the first...
  25. > My teacher said that seatselling() has no...

    > My teacher said that seatselling() has no parameter… i cannot update SeatF in main function. SeatF in main is different from SeatF in seatselling.
    The only way out of that mess is to make SeatF a...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4