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...
Type: Posts; User: Arooj
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...
I know how to get output in color with cprintf but not with cout<<; can someone please help? Thanks.
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...
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...
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...
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...
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...
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",...
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 =...
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...
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>
...
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...
Thanks a lot. Actually program only checks 2 separate inputs to make sure both are not zeros. Thanks again.
Arooj
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...
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...