mardi 1 décembre 2020

C++ Assumptions

Once I saw a way in C++ to assume something, for example:

int x=7;

assume (x==7);//if not right a red error will appear and program will end.

Can someone please tell me what was the exact code for that? I have done a lot of research but found nothing since I forgot the original phrase. (I want to use this for debugging)

Aucun commentaire:

Enregistrer un commentaire