CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20

Thread: header files online database

  1. #16
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,433

    Re: header files online database

    iostream/cout are c++, not c - so comment out/remove that #include line.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++20 Compiler: Microsoft VS2019 (16.9.0)

  2. #17
    Join Date
    Feb 2017
    Posts
    599

    Re: header files online database

    I would like to run quite old C code
    Instead of excavating the past, you could go for something current,

    https://www.sqlite.org/index.html

  3. #18
    Join Date
    Jul 2020
    Posts
    32

    Re: header files online database

    Thanks.
    Could you please add to my code a few lines which would print on screen or save the whole variables onto the HDD.
    I mean, I would like to be able to see on screen e.g. row of variables from matrix or small matrices at each iteration of e.g. 'for' loop.
    Best

  4. #19
    Join Date
    Jul 2020
    Posts
    32

    Re: displaying variables on the screen

    Could you please add in my code a single lines displaying selected variables on the screen and maybe saving also these variables onto HDD.
    Please see the lines in code with numbers: 62, 72, 78, 90, 97.
    Thank you.
    Attached Files Attached Files

  5. #20
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,937

    Re: displaying variables on the screen

    Quote Originally Posted by arek___ View Post
    Could you please add in my code a single lines displaying selected variables on the screen and maybe saving also these variables onto HDD.
    Please see the lines in code with numbers: 62, 72, 78, 90, 97.
    Thank you.
    1. line 62:
    Code:
    		mxbinned = mxGetCell(prhs[0], m);
    What is mxbinned ?
    What is mxGetCell?

    2. line 72:
    Code:
    		P_total += P_vec[m];
    both P_total and P_vec are integer arrays. So you should be able to see their content in any of the debug windows (auto, local, watch..., )
    Victor Nijegorodov

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)