Forum: C++ May 16th, 2007 |
| Replies: 2 Views: 5,361 Your problem is not to convert int to char if I'm correct. You only need to check the input with
int isdigit(int character);
link (http://www.acm.uiuc.edu/webmonkeys/book/c_guide/2.2.html) |
Forum: C++ Nov 3rd, 2006 |
| Replies: 3 Views: 2,492 You made a little mistake with your link. No big deal just test it and U will understand :) |
Forum: C++ Oct 13th, 2006 |
| Replies: 3 Views: 3,270 This is not enoughf information. Post your code. |
Forum: C++ Sep 29th, 2006 |
| Replies: 6 Views: 4,608 Change the constructor to
rectangle()
{
length = 1;
width = 1;
} //constructor sets length and width defaults to 1
or |
Forum: C++ Sep 29th, 2006 |
| Replies: 6 Views: 4,608 Hm never seen that (probably becouse I'm not c++ programmer). But the book never lies. Make a test just leave the construtor and what will the copiler tell U |
Forum: C++ Sep 29th, 2006 |
| Replies: 6 Views: 4,608 Yuo should run throught tutorial. You should know the diffrence from set and get. For example
float getLength(float)
{
float Len;
cout << "Enter the length: ";
cin... |
Forum: C++ Sep 27th, 2006 |
| Replies: 6 Views: 2,775 |
Forum: C++ Sep 25th, 2006 |
| Replies: 6 Views: 1,828 Did you tried cin.ignore after cin.get(ifname, 150); ? |
Forum: C++ Sep 20th, 2006 |
| Replies: 5 Views: 1,437 Why don't you use the compiler to check the code. Do you have question?
check.cpp: In function `bool checker(int)':
check.cpp:19: warning: control reaches end of non-void function
Thats after my... |
Forum: C++ Sep 5th, 2006 |
| Replies: 6 Views: 22,115 I don't think that someone will provide you the source code. Try at google. I bet that you will find something |
Forum: C++ Aug 21st, 2006 |
| Replies: 2 Views: 1,704 #include <iostream>
#include <cstdlib>
#include <string>
using namespace std;
void decToBin(int number, int base);
int main()
{
cout<<"Enter a string: ";
string name;
... |
Forum: C++ Aug 18th, 2006 |
| Replies: 13 Views: 4,175 be carefull, the size of buffer is 2 bytes and U assigned 3 bytes so this is a bug. |
Forum: C++ Mar 17th, 2006 |
| Replies: 4 Views: 3,752 On google I found many links (typed KNOPPIX). Use google and find links wich are interesanting to you. For example maybe this link is interesanting
http://www.shockfamily.net/cedric/knoppix/ ... |
Forum: C++ Mar 13th, 2006 |
| Replies: 4 Views: 3,752 Use some editor to create example x.cpp.
Then try to compile with g++ -o x x.cpp (without additional library) and run it with ./x command. Type this lines in console. If error occures then use... |