Search:

Type: Posts; User: sundeeptuteja

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,373

    Hello again. It seems we have been going around...

    Hello again. It seems we have been going around in circles, but I guess your last post has answered my question. Yes, the compiler is indeed an "old fossil", but it seems to be the only compiler I...
  2. Replies
    3
    Views
    1,373

    Hello again. Actually my problem really appears...

    Hello again. Actually my problem really appears to be independent of the source code. The fact is that the same executable when running under DOS gives different results from those that come when the...
  3. Replies
    3
    Views
    1,373

    Accuracy changes under different OS modes

    Hello everyone. I had created a program to simulate the motion of a projectile. My problem is that when I run the program under Windows, I get less accurate results than when I run it under DOS. Why...
  4. Replies
    3
    Views
    1,636

    The String Class

    Hello. I have been trying to create a program to concatenate two strings using operator overloading for a class STRING. The output I get consists of random characters. Please tell me why this should...
  5. Replies
    4
    Views
    1,004

    Thanks max_unreg. That explanation helped a lot.

    Thanks max_unreg. That explanation helped a lot.
  6. Replies
    4
    Views
    1,004

    Doubt regarding constructors

    /*
    Program to study constructors using inheritance...
    */
    #include<iostream.h>
    #include<conio.h>
    class base1
    {
    int x;
    public:
    base1(){}
  7. Replies
    10
    Views
    1,795

    Thank you, that was helpful. So what you are...

    Thank you, that was helpful. So what you are basically saying is, the input for getch will always appear as the input for gets, in this case. Now for the next question, is there any way to prevent...
  8. Replies
    10
    Views
    1,795

    This is quite interesting. It is definitely...

    This is quite interesting. It is definitely happening on Dev C++ and Borland C++. Perhaps the following code will help...


    #include<iostream.h>
    #include<conio.h>
    #include<stdio.h>
    int main()...
  9. Replies
    10
    Views
    1,795

    I'll try to explain exactly what is happening....

    I'll try to explain exactly what is happening.
    First the statement is
    choice=char(getch()); There is no output at this stage.
    Now, the statement executed is cout<<choice<<endl; Assume that the...
  10. Replies
    10
    Views
    1,795

    But why should it appear twice? That is what is...

    But why should it appear twice? That is what is happening. Please try executing the code posted, you'll see what I mean.
  11. Replies
    10
    Views
    1,795

    Unwanted characters keep appearing

    Consider the following program. Why is it that when the statement gets(str) is executed, the character pressed earlier automatically appears on the screen? Furthermore, is there a way to prevent...
  12. Replies
    4
    Views
    3,616

    Thanks Sang-drax, that did the trick. I will try...

    Thanks Sang-drax, that did the trick. I will try to figure out how exactly the code works soon enough.
  13. Replies
    4
    Views
    3,616

    Time delay function

    Hello everyone. Is there a time delay function defined in ANSI/ISO C++, perhaps similar to sleep() or delay() of Borland C++?
  14. I guess so. However, the help file in Turbo C++...

    I guess so. However, the help file in Turbo C++ v3.0 said that getch (and getche) are unique to DOS. Howcome?
  15. Correct me if I am wrong, but isn't getch unique...

    Correct me if I am wrong, but isn't getch unique to DOS?
  16. Replies
    1
    Views
    2,265

    Which is the best free IDE?

    Which is the best free IDE designed to work with the Borland C++ 5.5 Compiler?
  17. Replies
    2
    Views
    1,458

    I believe graphics.h is needed for BGI graphics,...

    I believe graphics.h is needed for BGI graphics, which are not supported under Windows. They need to be used under DOS. Probably a DOS based version of Turbo C++ would work. You can get v1.01 at :...
  18. Replies
    6
    Views
    2,185

    Which is the best free C++ Compiler?

    A simple question, which is the best free C++ Compiler, which comes with its own IDE? Also, where can I download it?
  19. Thread: logic

    by sundeeptuteja
    Replies
    4
    Views
    1,677

    Create an array of strings for the number of...

    Create an array of strings for the number of words present in the sentence. Use any standard sorting method of sorting the array of strings, and then concatenate them using strcat().
  20. Replies
    7
    Views
    15,270

    Alternatively you can use fabs() defined in...

    Alternatively you can use fabs() defined in math.h, which has been created specifically for floating point arguements.
  21. Replies
    8
    Views
    1,789

    Try this... /*Compiler : Turbo C++ v3.01*/...

    Try this...


    /*Compiler : Turbo C++ v3.01*/
    #include<iostream.h>
    #include<conio.h>
    #include<stdio.h>
    #define MAX 50
    int main()
    {
  22. Replies
    17
    Views
    4,053

    Two functions of dos.h, delay and sleep suspend...

    Two functions of dos.h, delay and sleep suspend the execution of the program for a specified time interval.

    void delay(unsigned milliseconds);
    void sleep(unsigned seconds);

    Compiler : Turbo...
  23. Thread: Beep

    by sundeeptuteja
    Replies
    19
    Views
    9,630

    Unfortunately the header files/libraries are...

    Unfortunately the header files/libraries are usually provided as part of the compiler. I doubt that the header file created for Borland C++ will work with MSVC++(I used to think like you at one time...
  24. Thread: Beep

    by sundeeptuteja
    Replies
    19
    Views
    9,630

    I believe the functions sound(), nosound() and...

    I believe the functions sound(), nosound() and delay() are available only with Borland compilers. You can get the free Borland compiler here : http://www.borland.com
  25. Replies
    10
    Views
    2,280

    Perhaps you can try using dynamic memory...

    Perhaps you can try using dynamic memory allocation using the new operator and pointers.
Results 1 to 25 of 79
Page 1 of 4 1 2 3 4