Member Avatar
Hi programmers! I am trying to grasp the concept of friendship. Let's say that we have the following: Does this mean that ListNode can access Lists's private members and List cannot access ListNode's private members, or both classes can access each others private members conversely?
by nathan.pavlovsky in Software Development ()
Member Avatar
Hi! I'm a student learning C language. During my exercise I have faced a weird problem(atleast to me). I have encountered two declarations: I'm unable to figure out the actual dimension of the array and its lenght as the variable is only declared not defined; meaning it has not been …
by oanahmed in Software Development ()
Member Avatar
What is the difference between and is a class that extends the Is an object or can it be used as one. Are there any differences betweeen and ?
by Pyler in Software Development ()
Member Avatar
this is the least error that I can get from multiple time of debugging. StrBlob.h has needed to use something from StrBlobPtr.h and StrBlobPtr.h needed to use something from StrBlob.h I did tried to #include each file on each other respectively, but ofcourse that would be a data structure error(that …
by Vasthor in Software Development ()
Member Avatar
declare and assign value to variable at runtime in C# variable names are stored in database(sql server). how can i able to declare varible with these name during runtime. after that assign value... thanks. amit
by amitkumarmailid in Software Development ()
Member Avatar
I'm coding an inventory program in C and I need the variable "stock1" in more than two seperate functions I'm not sure as to how they're supposed to be manipulated and read by the seperate functions nor do I understand how to declare them If I declare them as global …
by mattboy64 13 in Software Development ()
Member Avatar
Hi, I want to declare a float[] in .h and initialize in .m as explained below: .h file ` ` .m file I could have intialized in the following manner, but Could it be intialized in the above manner. data[0]=1.0,.....data[9]=10.0
by SamD34 in Software Development ()
Member Avatar
consider I expected the update to show the updated value of x+y but it doesn't I want to be able to update the variable x whenever y is set to some random number //frustrated
by Pyler in Software Development ()
Member Avatar
I got 2 Declaration syntax error... i really need help :D Thanks! Btw .. i'm using Borland C++
by Kryptonitex in Software Development ()
Member Avatar
I need a little bit of help here. I'm new to C++ Classes. There are some errors which I do not know how to troubleshoot. The error of "Declaration terminated incorrectly" for line 6 and 7. Multiple errors of "Type name expected". Why is that? Multiple errors of "Declaration missing …
by DeHF in Software Development ()
Member Avatar
I have two classes. One main Game class and an Entity class that needs to point to the Game class so it can call its various functions Entity.h Entity.cpp I've forward declared my Game class but I can't use it anywhere in the Entity class as I always get Missing …
by DaveTran 3 in Software Development ()
Member Avatar
When i declare array in c before main method it gives, an error. Declaration is has no error what is the reason.
by rahul pareek in Software Development ()
Member Avatar
char a[5000]; main() {} and in another file main() { char a[5000]; } after compiling both file. exe of both file size have large difference. why
by rahul pareek in Software Development ()
Member Avatar
Hi, Is tere any difference between these two codes or is it just a matter of taste? Thanks
by veledrom 32 in Web Development ()
Member Avatar
That is a little homework for myself. I was trying to make a simple program that you entry your name (acts as a password) and if it's on the list then you may access, otherwise (aka else) you're not allowed to access. The problem is I can't put more than …
by boiishuvo in Software Development ()
Member Avatar
Turbo C++ is showing declaration syntax error with this statement. Help. It is showing the error with the ' { ' . I have used proper header files and stuffs, and this is just a part of my 700 line program. I have used only one void main() , and …
by black22622 in Software Development ()
Member Avatar
i made a header file with my function declarations and the cpp file with the definitions. While making the definitions in the .cpp file i included the header and from the highlighted text the definitions seemed to match declarations in the header. In the header the the declarations were able …
by James19142 -4 in Software Development ()
Member Avatar
I have written this C code in which I'm declaring a variable inside switch body with initialializing it to 10.But when I'm running this code it is printing some garbage value. include <stdio.h> int main() { } Is their anyone who can explain even if the variable x is declared …
by Efficience in Software Development ()