I wrote a small program which impliment inheritance but still the same problem is there. Does Borland C++ (dos mode) does not support inheritance (only Borland C++ (win32) support inheritance)? or do...
Type: Posts; User: logicwonder
I wrote a small program which impliment inheritance but still the same problem is there. Does Borland C++ (dos mode) does not support inheritance (only Borland C++ (win32) support inheritance)? or do...
there is no problem with the code since it works in Dev cpp, MSVC and even in Borland C++ (Win32 mode). The question how can I do inheritance in Borland C++ (Dos mode).
I used Inheritance in my program which was compiled by Borland C++ 5.02 compiler in DOS mode. But a runtime error occurs and the class object cannot be created. I tried the same program in Win32...
I am required to do an object oriented mini project in C++. Can anyone give me the some ideas, web links, or some good book names? :)
How can I display a binary tree showing its real structure like.
Can any one suggest an algorithm for this purpose :confused:
5
...
Thanks Salem, Richie T, laserlight . I think I may stick onto int main()
See this MSDN link too:
http://msdn.microsoft.com./library/default.asp?url=/library/en-us/vclang98/HTML/_pluslang_program_startup.3a_.the_main_function.asp
As said in the FAQ section,
main() function should always return int.
But this link makes me rethink:
http://homepages.tesco.net/~J.deBoynePollard/FGA/legality-of-void-main.html
please...
textbox is a form object in Visual C++ .NET programming (similar to the one in Visual Basic).
Hey I am new to the Visual C++ 2005.
When working on windows forms how can I accept integer variables from user entered on a text box and how to display an integer value on a text box?
...
You can do this in more simpler!
Thanks Slacker.
Does that mean I dont need to bother about space complexity while implimenting sorting and searching algorithms as C programs?
Thanks CornedBee
The problem is with your code. You are calling a function with char pointer argument and when you call the function, you are not calling it with the right arguement.
Pointer cannot point to the...
I have been going through sorting and searching algorithms and their implimentations in C language.
I found two terms Time complexity & Space complexity. But most of the sorting and searching...
Well friends thank you for all your efforts. It sad C language does not provide a simple & effective method for validating an integer input.
Thank You Slacker for your effort. But I dont think this is effective.
As you know, most of the programs accept an integer using scanf and an invalid entry from the user can make your program fail....
Zuk the code is too long for such a simple operation.
Let me explain it more clearly
Condider the code:
#include<stdio.h>
int main(void)
{
int n;
Does any one have an effective solution to this?
The solutions treat entries like 12h,12j2 .... as numbers.
I need a simple filter for these too.
But friend,
You shold note the point that if the input is lik 12a,12ad2 (number followed by alphabet or alphabet between numbers)
the function isdigit() tells that they are integers. But...
How can you validate a number input by a user. The object is to avoid wrong entries like abc, iab, ab1, a1b. I have got a lengthy method. Is there any simple method?
use the function flushall()
Thank you everyone for ur contributions.