No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
10 Posted Topics
i just want to whether there is a replacement for getch() in C++. my friend said getch() is C function. thanks! | |
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 [B]int Z; cin >> Z;[/b] if I enter integer, it works fine but i enter character it's looping. :sad: how to prevent it … | |
Re: [QUOTE=djextazy]It'll be something like this: #include <iostream.h> #include <conio.h> void main() { clrscr(); 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]; } /* give the elements of the first vector */ for(i=1;i<=n;i++) { cout<<"b["<<i<<"]= "; cin>>b[i]; } /* give the elements … | |
Hi, I'm using IE6 in my PC. 6 mths ago, I have install Visio Viewer 2003 and I'm able to view Visio files in IE. After some time did not open any visio files, my IE now cannot display visio files anymore. All I see is a small image with … | |
Hi All, I'm using a Toshiba Laptop with Windows Vista Home Premium. Strangely my USB mouse will suddenly freeze after 3-5 minutes in use. I cannot move my cursor but I can click (left or right). Have tried with several mouse, all having the same problem. However, touchpad got no … | |
Hi, I have a VB.Net system that connect to SQL Server through ODBC. When I try to raiseerror from an IF...ELSE statement, it does not triggered the exception handling. I have done some raise error testing at my side. Below is my finding: 1. RaiseError did not triggered exception: [code] … | |
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 and to solve it? [code] #include<iostream> #include<cctype> using namespace std; int main () { … | |
Re: [QUOTE=Narue]>now check if the input is valid or not by an if statement giving right parameters This is okay if the OP is forced to use such a braindead approach. Otherwise a series of 50 if statements is silly, and a table driven approach is far better.[/QUOTE] actually i also … | |
why i have to press "enter" twice before getline can read the string... can anybody help me to solve this problem... [code] #include <iostream> #include <string> #include <new> using namespace std; int main() { string *name, hold; int num, i, j; cout << "----------------------------------------------------\n" << "This program creates a dynamic … |
The End.