Forum: Posting Games Mar 12th, 2005 |
| Replies: 7,595 Views: 656,804 |
Forum: C++ Oct 5th, 2004 |
| Replies: 27 Views: 126,153 i'm using getch() at password entering that display * when password is entered. |
Forum: C++ Oct 5th, 2004 |
| Replies: 7 Views: 4,914 actually i also will use if else.
how to use the table driven you mention above? can u teach me? |
Forum: C++ Oct 5th, 2004 |
| Replies: 9 Views: 18,354 #include <iostream.h>
void main()
{ int a[50],b[50],i,n,g;
cout<<"Give the number of elements of both vectors: "; cin>>n;
for(i=1;i<=n;i++) { cout<<"a["<<i<<"]= "; cin>>a[i]; }
... |
Forum: C++ Oct 5th, 2004 |
| Replies: 9 Views: 18,354 have you test running your program? |
Forum: C++ Oct 3rd, 2004 |
| Replies: 27 Views: 126,153 i just want to whether there is a replacement for getch() in C++.
my friend said getch() is C function.
thanks! |
Forum: C++ Sep 27th, 2004 |
| Replies: 5 Views: 5,512 i dunno whether this question has been ask before but i've try to search but didn't found. so i ask it here...
very simple... if i declare
int Z;
cin >> Z;
if I enter integer, it... |
Forum: C++ Sep 14th, 2004 |
| Replies: 2 Views: 3,377 why i have to press "enter" twice before getline can read the string... can anybody help me to solve this problem...
#include <iostream>
#include <string>
#include <new>
using namespace std;... |
Forum: C++ Sep 11th, 2004 |
| Replies: 8 Views: 3,016 fgets(), i've try but didn't work...
about fflush(stdin), if didn't use this function then is there any other function can replace? |
Forum: C++ Sep 10th, 2004 |
| Replies: 8 Views: 3,016 I've just wrote this program and when i compile, the gets() function is skip before i can enter the string. i have try cin.getline but the same problem occurs. Can anybody tells me what's the problem... |