Jump to content
Che

La ce foloseste semnul asta ^ in C++ ?

Recommended Posts

Posted

Am gasit pe net un cod in C++ si vad ca programatorul respectiv foloseste un anumit semn despre care eu stiam sa se foloseste in #include <math.h> pentru ridicare la putere. Insa aici pare ca face cu totul altceva.

int main(array<System::String ^> ^args)

WebRequest^ Request;

HttpWebResponse^ Response;

Stream^ Stream1;

StreamReader^ SReader;

String^ Responsestring;

Ce anume face semnul asta ^ ? Cum s-ar traduce ?

Multumesc !

Posted

Semnul ^ este din c++/cli(adica c++-ul combinat cu .net al celor de la microsoft). E un fel de smart pointer. Se foloseste cand se face referinta la obiecte managed. Cauta cartea Beginning Visual C++ 20xx(08/10/12) si iti explica acolo exact ce-i cu semnul ala.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...