Forum: C++ May 16th, 2007 |
| Replies: 3 Views: 1,501 Hi everyone,
Sorry for the long title! What I want to know is whether it's possible to convert specified elements of array of char to int using some fuction ?
let's say we have char x[10],
x[0]... |
Forum: C++ Apr 22nd, 2007 |
| Replies: 2 Views: 1,834 Thanks, I found solution .. I've to use cin.ignore() to clear the bufffer.. |
Forum: C Apr 22nd, 2007 |
| Replies: 8 Views: 2,338 Thanks guys, your replies were really useful :) |
Forum: C++ Apr 22nd, 2007 |
| Replies: 2 Views: 1,834 Hi,
I can't get cin.getline to work properly, I'm using it inside a for loop.. it gets the input sucessfuly when the loop is executed for the first time(i=0), but it doesn't wait to take any input... |
Forum: C Apr 19th, 2007 |
| Replies: 8 Views: 2,338 Hello,
let's say the user enters a value in this format xx:xx:xx
where xx is an integer, how can I assign each xx to integer vars?
I though of everything I know..
can't use getline(),getchar()... |
Forum: C++ Mar 26th, 2007 |
| Replies: 3 Views: 1,885 Thanks for your response,
what's driving me crazy is getch() is being taught at college..it's non-standard and they didn't mention anything about that ! |
Forum: C++ Mar 26th, 2007 |
| Replies: 3 Views: 1,885 Hello,
How to read an input(string) from the user keyboard without displaying it on the I/S, but to disply a character that I specify like (*) instead of the actual inputted character.. and if... |
Forum: C++ Feb 7th, 2007 |
| Replies: 7 Views: 3,301 to clarify what I meant,
maximum value for unsigned int: 4294967295
=====code4======
unsigned int a,b;
cout << "Enter a: ";
cin >> a;
cout << a << endl;
cout <<... |
Forum: C++ Feb 7th, 2007 |
| Replies: 7 Views: 3,301 Thanks guys for your responses :)
This is REALLY INTERESTING, and explained many things but it lead to more MANY thoughts too..
for me it explains the output of the following:... |
Forum: C++ Feb 7th, 2007 |
| Replies: 7 Views: 3,301 Sorry iamthewee, had problems with the forum posting the entire thread..
hope you read the rest and thanks for answering part of the Qs.. |
Forum: C++ Feb 7th, 2007 |
| Replies: 7 Views: 3,301 Hello,
I'm getting started with C++ and have some questions about the variable types:
1)The size of a variable type, is it defined by the compiler or computer or both? and why it differ from one... |