C++/C# assignments