CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: salem_c

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Re: Find all files from a certain date (younger than 30 days) in a directory which co

    > There are over 1.5 million test reports in a network folder
    That's 100 per day (aka once every 15 minutes), every day, for 40 years.
    How fast are these reports being generated?

    > only the most...
  2. Replies
    1
    Views
    3,506

    Re: Cross-Platform Keyboard Input - How To?

    This will at least get you common code on Windows and Linux
    https://en.wikipedia.org/wiki/Ncurses

    I suppose it would work on Android as well if you installed a terminal emulator on it.
  3. Re: What is the counterpart of this C pointer programme in C#?

    > Posting a question in multiple forums enhances the scope of getting answers from more repliers,
    Or wastes everyone's time with simple questions that are trivially answered.

    My reply wasn't...
  4. Re: What is the counterpart of this C pointer programme in C#?

    Spammed all over the web
    https://csharpforums.net/threads/what-is-the-counterpart-of-this-c-pointer-programme-in-c.6673...
  5. Re: Where is the 3D game engine using visual scripting like gdevelop?

    This -> https://gdevelop-app.com/download
    Or this -> https://github.com/4ian/GDevelop
  6. Re: Basic questions about VC runtimes and compatibility

    Also here -> https://www.cplusplus.com/forum/beginner/276710/
  7. Thread: C++ IDE Query

    by salem_c
    Replies
    5
    Views
    990

    Re: C++ IDE Query

    An IDE is not the C++ language.
    An IDE is not a particular C++ compiler.

    An Integrated Development Environment (IDE) is just the whole package of editor + compiler + debugger + help + more into a...
  8. Replies
    3
    Views
    1,173

    Re: floating point to fixed and back

    Did you even read the post?



    $ cat foo.c
    #include <stdio.h>

    int main ( ) {
    typedef unsigned int frac;
    frac one = 0x08000000; // a single 1 followed by 27 zeros
  9. Replies
    3
    Views
    1,173

    Re: floating point to fixed and back

    You just multiply it with whatever 1.0 is in fixed point notation.



    typedef unsigned int frac;

    frac one = 0x08000000; // a single 1 followed by 27 zeros
    double v = 1.003936;
    frac result =...
  10. Re: Modify Powerpoint on runtime (maybe with memory manipulation?).

    Still no nearer to why?
    https://xyproblem.info/

    If you want to do animations, then this....
  11. Replies
    17
    Views
    2,095

    Re: simple log functionality

    > Logger l{ "C:\temp\test.log" };
    Beware that \ has a special meaning inside strings.

    Try
    Logger l{ "C:\\temp\\test.log" };
    or
    Logger l{ "C:/temp/test.log" };
  12. Re: the right language for Telecom server development

    > I have a requirement for coder / programmer / software engineer
    coder = you tell them exactly what you want in microscopic detail.
    software engineer = you tell them what you want to achieve, and...
  13. Replies
    34
    Views
    7,625

    Re: switch case or if else ?

    Do NOT use bit-fields to solve this problem.
    https://en.cppreference.com/w/cpp/language/bit_field

    See the notes at the end.
    "Also, on some platforms, bit fields are packed left-to-right, on...
  14. Re: Knowing when a web page has been opened or close

    > Because a part of application job is made it online, in a web page.
    So, are you expecting the user to do something (more than just look at something) when they get to the website?

    If so, then...
  15. Replies
    20
    Views
    5,430

    Re: How To: Prevent duplicate coding

    Duplicated effort from duplicating poster -> https://www.cplusplus.com/forum/beginner/270475/
  16. Replies
    5
    Views
    1,759

    Re: enum or static const

    > Im thinking to replace it with enum, Or static const int
    Well if you're going to be editing each index, why not just go straight to a struct, which gives you automatic names to start with.


    ...
  17. Re: copy the allocation address of pointer to a byte array ? NEED HELP!

    > bArray[1] = *(BYTE*)((&ptrAddress)+1);
    You have to understand how pointer arithmetic works.

    > I have an intermediate level at the c++ language so I can come up with some questions..
    Do you?
    ...
  18. Re: copy the allocation address of pointer to a byte array ? NEED HELP!

    One of


    memcpy(aArray,&pAddress,4); // where pAddress is
    memcpy(aArray,pAddress,4); // what pAddress contains
    memcpy(aArray,*pAddress,4); // what's in what pAddress points to
  19. Replies
    10
    Views
    1,853

    Re: how get the JPG image size?

    Cross-posted
    https://cboard.cprogramming.com/c-programming/178884-how-read-image-file.html
    https://www.cplusplus.com/forum/general/268937/
  20. Replies
    3
    Views
    1,286

    Re: Please help me solve this problem

    Just another zero effort codechef wannabe.

    Same MO as last month.
    http://forums.codeguru.com/showthread.php?564551-Please-help-me-solve-this-problem
  21. Replies
    2
    Views
    895

    Re: -Wno-unused-varialbe flag has no effect

    Was it the switch from using = to using := in your assignments?

    Makefiles can be very picky things when it comes to evaluating variables, and the two forms mean two very different things.
  22. Replies
    4
    Views
    1,940

    Re: Please help me with the error.

    $ g++ -Wall -Wextra -O2 foo.cpp
    foo.cpp: In function ‘int main()’:
    foo.cpp:18:16: warning: ‘a’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    ar[l-1]=a;
    ...
  23. Replies
    12
    Views
    3,125

    Re: cin isn't blocking

    TBH, I would create a side project just to investigate cout, cin and a small number of threads.
    But even then, "it works" would prove nothing useful, though failure would clearly demonstrate that...
  24. Replies
    12
    Views
    3,125

    Re: cin isn't blocking

    So is this your magnum opus, or have you just found some source code?
    Because if it is downloaded code, it would be wise of you to tell us.
    Pin-hole guesses on your part tell us nothing about wider...
  25. Replies
    12
    Views
    3,125

    Re: cin isn't blocking

    Maybe your input stream is in an error state.


    if ( cin >> selection ) {
    cout << selection;
    } else {
    std::cerr << "cin is borked - do something!" << std::endl;
    break; // no more...
Results 1 to 25 of 52
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured