online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> struct S { S()=default; S(const S&)=default; S(S&&)=default; S& operator=(const S&)=default; S& operator=(S&&)=default; S& operator=(const char*) { std::cout<<"operator=(const char*)"<<'\n'; return *this; } S& operator=(const wchar_t*) { std::cout<<"operator=(const wchar_t*)"<<'\n'; return *this; } S& operator=(char) { std::cout<<"operator=(char)"<<'\n'; return *this; } S& operator=(wchar_t) { std::cout<<"operator=(wchar_t)"<<'\n'; return *this; } }; int main() { S s; char* pc{}; char c{}; wchar_t* pw{}; wchar_t w{}; s=pc ;//operator=(const char*) s="" ;//operator=(const char*) s='c';//operator=(char) s=c ;//operator=(char) s=pw ;//operator=(const wchar_t*) s=L"" ;//operator=(const wchar_t*) s=L'w';//operator=(wchar_t) s= w ;//operator=(wchar_t) }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue