Search:

Type: Posts; User: Arooj

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    5,016

    Hi Florian, thanks. I am using WindowsXP on a...

    Hi Florian, thanks. I am using WindowsXP on a P4. Not sure what you mean by terminal emulator; I use a VGA set at 1024x768; don't believe that's what you were asking. I do programming for my own...
  2. Replies
    4
    Views
    5,016

    How do I get output in color with cout

    I know how to get output in color with cprintf but not with cout<<; can someone please help? Thanks.
  3. Replies
    4
    Views
    8,313

    Hi Stack Overflow Thanks for the tip. I tried...

    Hi Stack Overflow

    Thanks for the tip. I tried using cin.getline(). Unfortunately that did not make any difference either. While loop does work properly with cin.get() or cin.getline(). If I enter...
  4. Replies
    4
    Views
    8,313

    Problems using while loop with cin.get()

    Hi friends;

    I am tring to write a program in which I have to enter different kind of input conataining integers and characters. Each input is then checked for correct spelling and correct...
  5. Replies
    4
    Views
    1,092

    I am sorry, actually I made a mistake in the...

    I am sorry, actually I made a mistake in the post. Function modify() looks like this:

    void modify(int *Num)
    {

    *Num++;

    }

    Now, shouldn't this print 1 instead of the original value, which...
  6. Replies
    4
    Views
    1,092

    What's it that I am doing wrong?

    I am trying to change value of a variable by sending pointe to that variable as argument but I still get the same value in main(). What is it that I am doing wrong? Thanks a lot

    #include...
  7. Replies
    6
    Views
    1,252

    thanks a lot, acutally I do know several string...

    thanks a lot, acutally I do know several string functions, including strlen(), etc. But the person I am trying to help in his assignment is only allowed to use the function that he has been taght so...
  8. Replies
    6
    Views
    1,252

    Need help with Strings

    I am trying to write a program where 2 stings are input. The program should check whether second string is part of the first string. For example, if the first string is "there" and second is "here",...
  9. Thread: Need Help!!

    by Arooj
    Replies
    4
    Views
    1,501

    Thanks all very very much. I followed the advice...

    Thanks all very very much. I followed the advice and came up with a better code than what I had written before.
    #include <iostream.h>
    #include <conio.h>

    void main()
    {
    clrscr();
    int low =...
  10. Thread: Need Help!!

    by Arooj
    Replies
    4
    Views
    1,501

    Need Help!!

    I am trying to write a game where a person thinks of a digit between 1 and 100 and computer has to guess it by asking you questions which you can only repond by typing '>', '<', or '='. What I wrote...
  11. Thread: Please Help!!

    by Arooj
    Replies
    4
    Views
    1,549

    Thanks both of you very much. However, after...

    Thanks both of you very much. However, after posting the question I tried very hard and came up with this which also worked. But your codes were better.

    #include <iostream.h>
    #include <conio.h>
    ...
  12. Thread: Please Help!!

    by Arooj
    Replies
    4
    Views
    1,549

    Please Help!!

    The program gives gives me this output:

    * * * * *
    * * * *
    * * *
    * *
    *

    Can anyone tell me PLEASE how to, instead, get the blank spaces first instead at the end. In other words, the second...
  13. Replies
    5
    Views
    1,579

    Thanks a lot. Actually program only checks 2...

    Thanks a lot. Actually program only checks 2 separate inputs to make sure both are not zeros. Thanks again.
    Arooj
  14. Replies
    5
    Views
    1,579

    Thanks Alpha, if it is an infinite loop, then how...

    Thanks Alpha, if it is an infinite loop, then how does the program terminate. Actually I had to write a program which keeps on taking input until it encounters 2 successive instances of zeros. This...
  15. Replies
    5
    Views
    1,579

    A question about while loop

    I thought I understood while and for loops quite well. However, recently I saw a program which had a while loop which only contained:

    while (1)
    Can anyone please help me understand as to what...
Results 1 to 15 of 15