[Solved] Pyramid of Stars [closed]

This is in no-way pretty, but it should work #include <stdio.h> void main(){ int size = 3,i; //you can’t just pass a value into main like that so I’ve initialised size here while (size){ //loop controlling line output i = 0; while (i++<size){//loop controlling * output within line putchar(‘*’);//output a * } putchar(‘\n’); //output a … Read more

[Solved] Do I need to know C# to program with Unity? [closed]

For Unity, you user either C# or UnityScript (A sort of JavaScript variant) for programming game logic, and Cg (Very similar to HLSL) for shaders. If you want to spend some money, though, you can also get node based programming tools (Sort of like Unreal Engine 4’s Blueprints) from the Unity Asset Store for both. … Read more

[Solved] Change the index for DataGridView

Try this: private void button1_Click(object sender, EventArgs e) { Int32 rowIndex; try { rowIndex = dataGridView1.CurrentRow.Index; rowIndex = rowIndex + 1; } catch (Exception ex) { MessageBox.Show(ex.Message); } MessageBox.Show(rowIndex.ToString()); } Since you was calculating rowIndex = dataGridView1.CurrentRow.Index + 1; but finally printing dataGridView1.CurrentRow.Index. It should rowIndex.ToString() which has required result. solved Change the index for DataGridView

[Solved] implementing a c# interface [closed]

you are throwing an NotInprementedException on the setter of the property. if you want automatic properties replace get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } with get; set; 1 solved implementing a c# interface [closed]

[Solved] Dynamic memory allocation without brackets [closed]

struct struct_set { unsigned long long number; struct_set *next; }; Is linked list So there is not any need to write it as contiguous memory. for more Linked list As it is homework, do that by yourself solved Dynamic memory allocation without brackets [closed]

[Solved] Mesh aren’t displayed in their correct positions for a FBX model of multiple meshes

Locked. There are disputes about this answer’s content being resolved at this time. It is not currently accepting new interactions. According to the Transformations example code in Autodesk’s official SDK, a node’s global position in the world space is recursively calculated by the CalculateGlobalTransform(FbxNode* pNode) function as in the sample code below. Very important things … Read more

[Solved] programming task ask [closed]

There are a few issues here: Your program fails to compile because of the misplaced semi-colon in cout<<“\nNew String 2 is :”;<<b Your program crashes at strcpy(a,x); because you’re copying into a which is uninitialised – it has no memory allocated. You’d need to call new on a for this to work, which would also … Read more