Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.29 seconds; generated 22 minute(s) ago.

  1. Also here -> Passing A 2d Array To A Function,...

    Also here -> Passing A 2d Array To A Function, Using The Pointer To A 2D Array - C And C++ | Dream.In.Code
  2. Replies
    2
    Views
    96

    Why can't you look into it?

    Why can't you look into it?
  3. Replies
    6
    Views
    129

    OK, so run it in the debugger, put a breakpoint...

    OK, so run it in the debugger, put a breakpoint on line 61 and see what happens.

    Don't rely on %s telling you what's in _path
  4. Replies
    6
    Views
    129

    > And this is the output (directory has been...

    > And this is the output (directory has been modfied to ~):

    But you're not opening an absolute path.
    Opening '~/opengl_example/main.c'

    It's only your shell that understands ~ and variables...
  5. > I want to use C for web development. C is too...

    > I want to use C for web development.
    C is too low level for this.

    If you're just writing client side code, you're just going to be wasting a lot of time on low level details.
    Even if you use...
  6. Replies
    35
    Views
    878

    Here's an example. 1. Create a minimal...

    Here's an example.

    1. Create a minimal recovery set for some file.


    $ cp 20200903_055944.mp4 dummy.mp4
    $ par2create -c1 p2c_test1.par2 dummy.mp4
    Block size: 85456
    Source file count: 1...
  7. Replies
    35
    Views
    878

    > Do you happen to know what the overhead is? For...

    > Do you happen to know what the overhead is? For a 100 MByte file, how big is the ECC file(s) that go with it?
    You can choose your recovery size.


    $ par2create -c1 p2c_test1.par2...
  8. OK, so what does the compiled version of the code...

    OK, so what does the compiled version of the code do that is different to what you want it to do?

    You look at the first behaviour difference, you study the code to identify potential causes in the...
  9. Apart from your idea of "tutorial" being "random...

    Apart from your idea of "tutorial" being "random out of context forum post".

    Start with the clean copy of PacketProcessor and all the other stuff it comes with.
    Does it compile?

    Before you...
  10. Replies
    1
    Views
    130

    Duplicate of this ->...

    Duplicate of this -> https://cboard.cprogramming.com/cplusplus-programming/180376-undefined-reference-%60packetprocessor-setseqstart-unsigned-char-|.html
  11. Normally I would suggest learning some C++ to...

    Normally I would suggest learning some C++ to begin with.

    But you could try making those free functions class member functions by putting PacketProcessor:: in front of the function name - you...
  12. Replies
    4
    Views
    253

    A bit like that, but without using any global...

    A bit like that, but without using any global variables.
  13. > and remove these variables and functions One...

    > and remove these variables and functions
    One of which seems to be
    > void PacketProcessor::SetSeqStart(unsigned short val)

    However....
    in packet.cpp under the includes add


    unsigned short...
  14. Who can say without some visibility of code...

    Who can say without some visibility of code you've actually written.
  15. Is PacketProcessor one of your classes, or...

    Is PacketProcessor one of your classes, or something you've downloaded?

    A few common mistakes are
    - not implementing the function (despite mentioning it in the class)
    - getting the type wrong...
  16. Replies
    4
    Views
    253

    You could start with this idea. ...

    You could start with this idea.


    #include<stdio.h>

    void function(int N, int Number[])
    {
    for(int i=0; i<N; i++)
    {
    printf("print Number : ",...
  17. Replies
    35
    Views
    878

    About File Management - Win32 apps | Microsoft...

    About File Management - Win32 apps | Microsoft Docs
    Any windows compiler will have access to this API.

    > Now I want to write a fast-as-hell file checksummer
    Bear in mind that it doesn't matter...
  18. Replies
    2
    Views
    334

    Well start with a separate test program like...

    Well start with a separate test program like this.


    int product_of_digits(int n) {
    int product = 1;
    // do something here
    return product;
    }
    int main ( ) {
    int n = 1234;
  19. > i = sum - i; Well the questions you need to...

    > i = sum - i;
    Well the questions you need to answer are
    - what are you subtracting
    - what are you subtracting it from

    > so i am having a trouble in subtracting a number that contains 3
    Sure,...
  20. Thread: Sudoku solver

    by Salem
    Replies
    2
    Views
    263

    Sure we can help, but you need to make a start...

    Sure we can help, but you need to make a start for yourself.

    Can you open the file?
    Can you read the file?
    Can you store the contents of the file in a suitable data structure?

    In short, post...
  21. Replies
    4
    Views
    365

    Have you tried to work it out by hand? I ran...

    Have you tried to work it out by hand?

    I ran the code through the debugger one line at a time.

    The individual values of netcost, discount and tax all seem fine.
    If you want a different answer,...
  22. Replies
    18
    Views
    1,422

    Those are undefined reference errors! Like...

    Those are undefined reference errors!
    Like
    foo.cpp:(.text+0x89c): undefined reference to `ram_080'

    It's because you have a main(), and the program compiled successfully.

    If you want to verify...
  23. Replies
    2
    Views
    282

    A meandering back story to this began many weeks...

    A meandering back story to this began many weeks ago here -> Malloc To Pointer Of Void And Assign Different Data Types - C And C++ | Dream.In.Code
  24. Thread: FIFO Queue

    by Salem
    Replies
    21
    Views
    930

    > ShowEnqueue(struct Queue &q) Look at all the...

    > ShowEnqueue(struct Queue &q)
    Look at all the other calls, does this look like a call?

    > // what need to print value of Enqueue ?
    I'm not sure you're even trying.
    No more drip feeding, make...
  25. Thread: FIFO Queue

    by Salem
    Replies
    21
    Views
    930

    #define CAPACITY 10 #define True 1 ...

    #define CAPACITY 10
    #define True 1

    struct Queue {
    int data[CAPACITY];
    int front;
    int back;
    int size;
    };
Results 1 to 25 of 490
Page 1 of 20 1 2 3 4