Forum: C Oct 14th, 2009 |
| Replies: 4 Views: 373 Even more peculiar is have the E in 'ecake' disappears, what a mystery! :icon_lol: |
Forum: C Oct 13th, 2009 |
| Replies: 2 Views: 338 One, you have to specify to the linker that it's a windowed application.
Then you get the window handle, and with ShowWindow(), in the second parameter use SW_HIDE.
edit:
You'll probably also... |
Forum: C Aug 4th, 2009 |
| Replies: 15 Views: 896 Don't use goto, try a function. You already have a switch in an if statement, don't make it any more complex.
Avoid fflush() and look into a replacement of scanf() |
Forum: C Jun 29th, 2009 |
| Replies: 4 Views: 551 When you set a pointer and don't always use every "point" in it(especially while dealing with user input), you need memset() to set a default value. |
Forum: C Jun 24th, 2009 |
| Replies: 3 Views: 285 conio.h isn't used, and should never be.
Macros used like that are dangerous.
It's: int main() { return(0); } |
Forum: C May 30th, 2009 |
| Replies: 5 Views: 1,206 Referring back several pages on the forum:
http://www.daniweb.com/forums/thread187421.html |
Forum: C May 7th, 2009 |
| Replies: 5 Views: 490 |
Forum: C Apr 24th, 2009 |
| Replies: 57 Views: 2,463 You could simplify your whole Keyboard() function to a few if else conditions. |
Forum: C Apr 16th, 2009 |
| Replies: 27 Views: 1,802 It's so non-standard the kid would get in trouble anyway. |
Forum: C Apr 10th, 2009 |
| Replies: 11 Views: 708 Prototypes don't go inside other functions. |
Forum: C Feb 1st, 2009 |
| Replies: 9 Views: 516 Many "normal" people would just call it a conditional loop. |
Forum: C Jan 31st, 2009 |
| Replies: 9 Views: 516 The compiler has less of an ideal of what you're doing, when you use gotos, and people who use them in place of functions might see a dramatic decrease of performance.
Plus it becomes impossible to... |
Forum: C Dec 5th, 2008 |
| Replies: 7 Views: 705 Have you you tried compiling it, and reading the error reports? There's invalid operations, spelling mistakes, missing types, definitions where there shouldn't be, et al.
I think you need to start... |
Forum: C Dec 5th, 2008 |
| Replies: 7 Views: 705 What is line 10, and 11?
main() must be able to return zero, and there really is no file called <iostream.h>, look it up.
Is getche() a typo, or do you really need it?
Biggest question: is your... |
Forum: C Dec 4th, 2008 |
| Replies: 4 Views: 640 Take the initial time withtime(), use inside a loop take the time again, then use difftime() to check the diffrence between the two; if it's greater than the max time, break the loop. |
Forum: C Dec 4th, 2008 |
| Replies: 10 Views: 996 Tell them to use it, and search for the char with '.'. |
Forum: C Nov 17th, 2008 |
| Replies: 23 Views: 3,234 I saw people asking this, in Yahoo Answers last week.
I like this funnier leaning tree version(I don't have a life to be writing this stuff):
for(int i = 0; i < 16; i++)
{
for(int... |