C++: Pointer to String
  • An example, showing how to use a pointer to string.(string * pStr1) !
    • then assigned this pointer to access the address of this variable (&Str1)
  • Any change in the reference(pStr1), will be reflected to the linked variable
  • Also demonstrates, how to use debug tool in Quincy
  • Code:pointer_to_string1.txt

Step : 1 Create a source file

Step: 2 Edit code

Step 3: Runtime Views:

Step: 4 Debugging Steps: to show how pointer works

a) Set a break point (with F2 Key, the palm image in the illustration, shows the break point ) as shown below, and press F7.

b) Now note,