Oh so "super" is a microsoft specific keyword for C++, since it was used in our project which is in microsoft language thatz why I was unable to understand it. Anyway I dont have Bill gates phone number(Ha ha ha...).
Thanks a lot....
User Profile
Collapse
-
No no, the keyword "super" is there in C++. I am giving a link of MSDN where you can find the notes for it, but its only briefly given. I want an elaborate explanation.
http://msdn.microsoft.com/library/de.../key_s-z_1.asp
It is said that we can access any member of any base class through this keyword, but that can be done with the usual procedure of class also, then what...Leave a comment:
-
Hi,
Thanks a lot for the suggestion. I will try them. Thanks.
regards,
Ashish....Leave a comment:
-
Hi,
There is a simpler way also. U can create .lib file (static library file), this u can create in the same way as u create a project just by selecting static library option instead of project. Here instead of .exe, a .lib file will be created. This .lib can be included in any other project and the function written in .lib can be called from the project in which u have included it. Hope this will be possible for u.
regards,...Leave a comment:
-
Hi,
U can use .dll file for this. create .dll file with the function u want and call that fuction from which ever function u want. Using .dll will also save ur code size from being bulky.
regards,
Ashish.Leave a comment:
-
super
Hi,
A keyword "super" is used in C++ in classes. It is said that it is used for accessing base class from the derived class. But I am unable to understand its real purpose. Accessing just a base class doesn't serve the purpose of keeping a extra keyword. Can anyone explain it elaborately.
Thanks in advance. -
Dear pradipta,
Thanks a lot. No one replied for that question. I searched on net but I did not know which is a good one. Thanks again.Leave a comment:
-
Hi,
Now that u have got so many answers, so there is no point in giving any hint. just try this code without using modulus.
...Code:unsigned int Val = 501; unsigned char array[15]; itoa(Val, array, 10); Val = 0; for(int i=0; i< (strlen(array)); i++) { Val += (array[i]-48); } printf("%d\n\n", Val);Last edited by Frinavale; Oct 15 '10, 06:18 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.Leave a comment:
-
Hi,
U can use the function FindFirstFile( ); which will try to find the first file present in the given folder n if the folder is empty then this function will fail....Leave a comment:
-
Hi,
First thing is that the way you are trying to decrement the address of the array will throw an error of L-value becoz you cannot decrement the address rather you have to collect its address in a pointer and then decrement it.
Now coming to your question :
There are two ways to know the value of the members of a structure through pointer.
1. If your structure has all the members of same...Leave a comment:
-
Hi,
First thing is that u r trying to return from main( ); which is having void return type.
Instead of using so many if, else conditions u can try this
if(s>59)
return( (((s-60)/10)+1) );
else
return 0;...Leave a comment:
-
Hi,
The garbage values are getting printed becoz of the reason what Bafna has mentioned. To avoid this u can try fgetc( ); function in a while loop and fetch the characters & store it in an array until u receive the ascii value of the keyboard key 'ENTER'. The ENTER key value will indicate that the string has come to an end. As u recv the ENTER value, append null in the array....Leave a comment:
-
Hi,
Your code is already doing the same what you need. The only thing is you want the calculation of perimeter to be done by another fuction called Calculate( ); so just cut copy paste the code inside the fuction Calculate( ); like
void Calculate(float Tx, float Ty)
{
float area;
area = (2*Tx) + (2*Ty);
"
"
"
}
...Leave a comment:
-
U can have a string say, "Hi", and memcmp it with from the start of each letter of the main string, I suggest u not to use strcmp becoz if at all ur string contains a numerical zero then u could end up with errors.
U can compare ur string like this in a for loop:-
memcmp( &Mainstr[i], "Hi", 2);Leave a comment:
-
Can you elobrate your question, I m unable to understand what you mean by substring and on what basis you want to search it....Leave a comment:
-
I couldn't understand ur question, what r u trying to say by "adding arrays". Is it arithmatic addition or concatnation of two arays. Pls elobrate ur question....Leave a comment:
-
This can be done using either delay( ); function if u r using Turbo C, or using Sleep( ); function if u r using VC++.
Example:
printf("Enter the string : ");
for(int i=0; i<100; i++)
{
if(Kbhit)
break;
Sleep(100);
}
if(i<100)...Leave a comment:
-
I dont know what my interviewer wanted from me. Anyway thanks for replying....Leave a comment:
-
Project on C++
Hi,
I was asked a question in an interview that all the concepts of C++ can be implemented on C also, like CLASS, VIRTUAL FUNCTIONS, etc then why the projects are developed on C++. Remember the answer is not OOPS becoz OOPS can be implemented on C also, the answer is not even that "human errors that could be made while implementing the C++ concepts on C", I said the above two possibilities but those weren't the thing they wanted,... -
Hi,
I am not giving the program but I am suggesting a way to write such a program. Just call those inbuilt functions that are given in the different header files of C & C++ compilers. Example : clrscr( ); -> this function is given in conio.h in C++ whereas the same is given in some other header file of C compiler. You just have to create a program in C calling this function and paste the same program in C++ compiler excluding...Leave a comment:
No activity results to display
Show More
Leave a comment: