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

Search:

Type: Posts; User: alwaystudent

Search: Search took 0.03 seconds; generated 56 minute(s) ago.

  1. Problem writing from PrintStream to "Console as Process" ,not "console as System.out"

    in Java 8, windows 10, i have a text app, i want to open a console and write something there,

    first try is:



    String [] cmd = {"cmd.exe", "/c", "start"};
    ProcessBuilder f = new...
  2. Is there a way to remove or reduce randomness from debugging?

    Assuming there are expressions in the code in the log, then searching for the log expression can lead to lines or lines of source code

    One recipe can be this

    1- Find the first error...
  3. Re: How to find where a variable takes value? gdb - watch- is time consuming, ineffec

    ,for simple case, the direct assignments we have:
    grep -nE '^\s*i\s*=' directory_of_code | grep -v '=='
  4. Re: How to find where a variable takes value? gdb - watch- is time consuming, ineffec

    In fact,both of them, but let me explain my request,
    Is there any static code analysing tool to make file base on source, to give us where a variable takes value
  5. How to find all assignments the values to variables,by '=' or by func or as ref value

    How to find where a variable takes value (preferably c++ source and grep,awk&sed and regex tools, variable is Integer,char* and string can get value by =, or arbitrary function without =)

    -We're...
  6. netbeans doesn' read .bashrc of remote linux for compile C++ project

    I have two boxes:

    A- local machine, windows 7 : netbeans 8.01.

    B- remote server, Linux REHL 6, connection : SSH

    I am working in A on a C++ project (Makefile project) and i want to make it...
  7. Work on a remote C++ project with Eclipse via SSH and SVN+SSH (2 remote Linux)

    I have the following boxes:

    a) A Windows box with Eclipse CDT(or PTP)

    b) A Linux box,including Compiler, accessible for me only via SSH.

    c) A Linux box, including SVN Source, accessible for...
  8. Re: Is memory allocated to a variable name or an address?

    @laserlight:thank you!,your Code in post #7 is very shining example
  9. Re: Is memory allocated to a variable name or an address?

    @GCDEF: you are right:
  10. Re: Is memory allocated to a variable name or an address?

    Thanks all, thanks for your perspective and idea's, specially for reinterpret_cast...
  11. Re: Is memory allocated to a variable name or an address?

    @GCDEF: when pointer variable is declared -even it is not initialized-, it get specific address from memory to point it, so A and B after A=B have same address to point it
  12. Re: Is memory allocated to a variable name or an address?

    thanks all, it is not my homework and i am not student , as i am think:
    memory allocation most probably related to pointer name i.e we allocate memory to a "name" and NOT "address"
    because pointer ...
  13. Re: Is memory allocated to a variable name or an address?

    thanks for good explanation,
    for this Code:


    is this really OK or we have potentially hidden error?
  14. Is memory allocated to a variable name or an address?

    When we have memory allocation or memory deallocation in Code, memory is assigned to what?

    1- A pointer's name (or equally the any name addressing related to compiler)

    or

    2- A pointer's...
  15. Re: How can we move implementation to multiple header file without circularity?

    @tiliavirga Thanks for your brilliant idea,
  16. How can we move implementation to multiple header file without circularity?

    for single .cpp file- and .h file- we can move implementation from .cpp to .h file, but for multiple files, i can not do this for my case and occurred circularity :
    my case is something like this...
  17. Re: does a function know how much memory its parameters occupy?

    @OReubens: Thank you for good explanation with C++ style,
  18. Re: does a function know how much memory its parameters occupy?

    @2kaud, thank you so much, but it work, as I test, for heap, not for stack, is there another function that works for stack?
  19. Re: does a function know how much memory its parameters occupy?

    @laserlight thank you, i think i got the point!
  20. Re: does a function know how much memory its parameters occupy?

    If that(*X='C') is OK and we do not have potentially error when derefrencing pointer X, after shift +98, it means in function scope , we(machine) know how much memory allocated to X or we(machine)...
  21. does a function know how much memory its parameters occupy?

    When we call function passing by value, we are making a copy in memory of the actual parameters' value.

    The question is: does the function know how much space its parameters occupy in memory? If...
Results 1 to 21 of 21





Click Here to Expand Forum to Full Width

Featured