Forum: C++ May 16th, 2007 |
| Replies: 2 Views: 5,398 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++ May 9th, 2007 |
| Replies: 4 Views: 10,602 First of all add code tags. Find out why void main and gets are bad. There is many posts about them. |
Forum: C++ May 9th, 2007 |
| Replies: 21 Views: 4,687 you can do this if you dont care for loop order.
The answer you will find if you check the asm for both cases, then U will see for which case is less asm code. |
Forum: C++ Jan 12th, 2007 |
| Replies: 3 Views: 2,228 The g++ is comonly used by linux (but windows also can used for example cygwin emulator). Try this link (http://www.google.com/search?hl=en&lr=&q=free+%22Borland+C%2B%2B%22&btnG=Search). |
Forum: C++ Jan 12th, 2007 |
| Replies: 3 Views: 2,228 C++ is a programming language and turbo C++ is a compiler. |
Forum: C++ Jan 11th, 2007 |
| Replies: 4 Views: 1,213 gotoxy() (http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1044844545&id=1043284392) |
Forum: C++ Jan 11th, 2007 |
| Replies: 4 Views: 1,213 Well the best is to avoid non standard functions so you will not have this type of problems. For clrscr() read this (http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1031963460&id=1043284385). |
Forum: C++ Dec 1st, 2006 |
| Replies: 9 Views: 2,202 Create a thread which will have only getchar. If something pressed then set a bool value in that thread. Of course in while loop will break when the bool value is set. |
Forum: C++ Nov 30th, 2006 |
| Replies: 1 Views: 1,054 Read this (http://www.codeproject.com/cpp/PtrToPtr.asp) |
Forum: C++ Nov 29th, 2006 |
| Replies: 4 Views: 1,573 Use function like int strncmp(const char *str1, const char *str2, size_t n); (http://www.acm.uiuc.edu/webmonkeys/book/c_guide/2.14.html#strncmp) |
Forum: C++ Nov 13th, 2006 |
| Replies: 2 Views: 1,898 Did you serched at google? |
Forum: C++ Nov 13th, 2006 |
| Replies: 3 Views: 1,216 |
Forum: C++ Nov 7th, 2006 |
| Replies: 4 Views: 2,267 Sorry didn't understood your post |
Forum: C++ Nov 7th, 2006 |
| Replies: 4 Views: 2,267 |
Forum: C++ Nov 3rd, 2006 |
| Replies: 3 Views: 2,528 You made a little mistake with your link. No big deal just test it and U will understand :) |
Forum: C++ Oct 26th, 2006 |
| Replies: 14 Views: 2,678 Post your code, to see what have you done so far. |
Forum: C++ Oct 24th, 2006 |
| Replies: 7 Views: 2,131 Declaring f as global but that is bad practice. I don't know what you want to do. You are not calling fn func at all. |
Forum: C++ Oct 24th, 2006 |
| Replies: 7 Views: 2,131 You declared f in main function and not in fn function thats the problem. Declare f in fn function. |
Forum: C++ Oct 23rd, 2006 |
| Replies: 4 Views: 2,266 To many errors you have. Remove ; after void gettradeIn( float& tradeIn). Where void getdownPayment(float& downPayment) func ends? |
Forum: C++ Oct 18th, 2006 |
| Replies: 8 Views: 1,798 For me there are much more errors. Are you shore that you posted the whole code? |
Forum: C++ Oct 18th, 2006 |
| Replies: 5 Views: 4,050 Your type A, can it be outside of the main function? Still your pst struct is local beside that.
NOTE: Instead of void main use int main.
void function1(void *pStr)
{
A * ptmp = (A *) pStr;... |
Forum: C++ Oct 16th, 2006 |
| Replies: 2 Views: 1,385 Look at the firs thread in this forum. For example this (for C) (http://www.daniweb.com/techtalkforums/thread50370.html) |
Forum: C++ Oct 13th, 2006 |
| Replies: 3 Views: 3,320 This is not enoughf information. Post your code. |
Forum: C++ Oct 12th, 2006 |
| Replies: 2 Views: 1,178 Try it and then post it.
EDIT: for help try this link... |
Forum: C++ Oct 10th, 2006 |
| Replies: 2 Views: 1,468 U can start here (http://www.google.com/search?hl=en&q=C+programming+unix&btnG=Google+Search) |
Forum: C++ Oct 10th, 2006 |
| Replies: 4 Views: 3,622 I asume that the qoute is your task. Did U noticed that U have to play wav file, and U say U want to play midi. Just for your information midi dont have samples inside the mid file. It contains midi... |
Forum: C++ Oct 10th, 2006 |
| Replies: 14 Views: 11,388 I never worked with borland but probably U need to change the stack size in your compiler options. So go for help and find stack size. U can try also to declare the array as global becouse then its... |
Forum: C++ Oct 8th, 2006 |
| Replies: 9 Views: 2,022 Its better in *.h file to do the protection
/**********
* header.h file
***********/
#ifndef HEADER_H
#define HEADER_H
/**** some func declarations ***/
#endif /* HEADER_H */ |
Forum: C++ Oct 7th, 2006 |
| Replies: 3 Views: 2,113 So if I understand corectly even you include your header files the compiler tells you that they are implicitly declared. That means that in first case they were also implicitly declared but the... |
Forum: C++ Oct 6th, 2006 |
| Replies: 6 Views: 19,333 Then you must learn assembler. But why do U need it? |
Forum: C++ Oct 5th, 2006 |
| Replies: 4 Views: 3,935 So no moderators on assembly forum? This should be moved to c/c++ forum. Ok I will tell you. Suposing that your switch statemant is in main function.
int main()
{
/* declare someNum */
/*... |
Forum: C++ Oct 4th, 2006 |
| Replies: 7 Views: 1,405 U wrote this code and U have bracket problem :rolleyes: ? If U want to compile this code remove two brackets in front of while loop. Your problem not ends here. Read this... |
Forum: C++ Oct 2nd, 2006 |
| Replies: 5 Views: 1,788 i is not defined in quicksort. I think that the problem is in quicksort func. |
Forum: C++ Oct 2nd, 2006 |
| Replies: 16 Views: 10,086 Try to use sleep or usleep. I think that they are not standard functions but U can try. Use these func without including extra headers. The compiler will tell you that they are implicit declared. If... |
Forum: C++ Sep 30th, 2006 |
| Replies: 2 Views: 2,394 >I need help to either provide the C++ codes
This is against the forum rules.
>or point me the proper link to find the Euler cycle
Did you try with google? |
Forum: C++ Sep 29th, 2006 |
| Replies: 10 Views: 2,764 No you posted to the right forum just ~s.o.s~ didn't understand that you want to write the program in c++ and not to recover deleted file |
Forum: C++ Sep 29th, 2006 |
| Replies: 6 Views: 4,669 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,669 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,669 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 28th, 2006 |
| Replies: 1 Views: 1,161 Try to write it on your own and when you have some code than we'll help you about the optimisation |