Search Results

Showing results 1 to 40 of 73
Search took 0.01 seconds.
Search: Posts Made By: andor ; Forum: C++ and child forums
Forum: C++ May 16th, 2007
Replies: 2
Views: 5,398
Posted By andor
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
Posted By andor
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
Posted By andor
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
Posted By andor
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
Posted By andor
C++ is a programming language and turbo C++ is a compiler.
Forum: C++ Jan 11th, 2007
Replies: 4
Views: 1,213
Posted By andor
gotoxy() (http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1044844545&id=1043284392)
Forum: C++ Jan 11th, 2007
Replies: 4
Views: 1,213
Posted By andor
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
Posted By andor
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
Posted By andor
Read this (http://www.codeproject.com/cpp/PtrToPtr.asp)
Forum: C++ Nov 29th, 2006
Replies: 4
Views: 1,573
Posted By andor
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
Posted By andor
Did you serched at google?
Forum: C++ Nov 13th, 2006
Replies: 3
Views: 1,216
Posted By andor
Whats the question?
Forum: C++ Nov 7th, 2006
Replies: 4
Views: 2,267
Posted By andor
Sorry didn't understood your post
Forum: C++ Nov 7th, 2006
Replies: 4
Views: 2,267
Posted By andor
Forum: C++ Nov 3rd, 2006
Replies: 3
Views: 2,528
Posted By andor
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
Posted By andor
Post your code, to see what have you done so far.
Forum: C++ Oct 24th, 2006
Replies: 7
Views: 2,131
Posted By andor
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
Posted By andor
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
Posted By andor
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
Posted By andor
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
Posted By andor
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
Posted By andor
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
Posted By andor
This is not enoughf information. Post your code.
Forum: C++ Oct 12th, 2006
Replies: 2
C++
Views: 1,178
Posted By andor
Try it and then post it.
EDIT: for help try this link...
Forum: C++ Oct 10th, 2006
Replies: 2
Views: 1,468
Posted By andor
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
Posted By andor
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
Posted By andor
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
Posted By andor
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
Posted By andor
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
Posted By andor
Then you must learn assembler. But why do U need it?
Forum: C++ Oct 5th, 2006
Replies: 4
Views: 3,935
Posted By andor
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
Posted By andor
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
Posted By andor
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
Posted By andor
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
Posted By andor
>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
Posted By andor
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
Posted By andor
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
Posted By andor
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
Posted By andor
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
Solved: optimize code
Views: 1,161
Posted By andor
Try to write it on your own and when you have some code than we'll help you about the optimisation
Showing results 1 to 40 of 73

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC