[Solved] A type or namespace name ‘register’ could not be found

This will not work, as Show is an instance method, not a static mathod: register form = new register(); register.Show(); You probably meant: register form = new register(); form.Show(); Note: Your naming is non standard – types in .NET are normally in PascalCase – to be consistent, your should name the class Register. Additionally, using … Read more

[Solved] Why is this printing 0? [closed]

a + 1; You meant: a = a + 1; // or a += 1; The expression a + 1 results in a value, but you have not assigned that value to anything (a in particular). solved Why is this printing 0? [closed]

[Solved] What is the result of casting in C++?

In this context, 0 is a null pointer constant. It can be converted, with or without a cast, to any pointer type, giving a null pointer of that type. In modern C++, you can write nullptr to make it more clear that you mean a null pointer, not the number zero. There’s also a NULL … Read more

[Solved] sizeof return type in C

variable a is an integer (int), and integers take 4 bytes (regardless of what value is stored in it). Just because the specific value could be represented by fewer bits, it does not change the size of the variable. solved sizeof return type in C

[Solved] Inserting linked list at the end [closed]

you should have to return inside if because after if statement it again comes into while loop and add extra node at the end struct node { int data; // node format struct node* next; }; void insertAtEnd(struct node** headRef, int newData) { struct node* ptr; struct node* newnode; ptr = (*headRef); newnode = (struct … Read more

[Solved] methods that give error [closed]

I missed that this method start with get_ Here is right answer. Just find “this HttpConfiguration” on entire solution. You can find extension method named start with “get_” If this solution not work.. find “this IDisposable” on entire solution. because HttpConfiguration class is implement of IDisposable 2 solved methods that give error [closed]

[Solved] Cannot Implicitly Convert int to int[] [closed]

This is because you are trying to assign arrays instead of assigning their members: idArray = Int32.Parse(words[0]); should be idArray[i] = Int32.Parse(words[0]); and so on. Better yet, create EmployeeData class that has individual fields for id, name, dept, and so on, and use it in place of parallel arrays: class EmployeeData { public int Id … Read more

[Solved] C: allocate a pointer

head=malloc(sizeof(node*)); Will allocate a space in memory to hold a POINTER to a object of type node. head=malloc(sizeof(node)); Will allocate space for the structure itself, and return to you the address of that memory space, and you will hold that in the head variable For more info, check this other question about Malloc. How do … Read more