Forum: C 12 Days Ago |
| Replies: 8 Views: 16,987 >> can explain why you need the piece of code "gotoxy(1,6)"
It's an ancient function from Turbo C++ and is used to put the cursor on a (x,y) position on the screen.
Now please stop reviving... |
Forum: C 14 Days Ago |
| Replies: 4 Views: 295 Thread split from ancient thread, moved and given an appropriate title :)
@OP: You need to read this (http://www.daniweb.com/forums/announcement8-2.html) |
Forum: C Aug 20th, 2009 |
| Replies: 5 Views: 384 Sure why not? You can 'store' just about everything in a search-tree.
I also recommend that you read this article (http://eternallyconfuzzled.com/tuts/datastructures/jsw_tut_bst1.aspx). It's a great... |
Forum: C Jul 28th, 2009 |
| Replies: 13 Views: 696 I don't think anyone has ever gotten so may rep comments on one post :) The fact that the rep now is overall positive makes my slightly less ashamed of reply... |
Forum: C Jul 28th, 2009 |
| Replies: 13 Views: 696 I completely misunderstood the question :confused:. So Ithelp: I apologize for the reply and neg-rep. Now if someone would please give ithelp some +rep to balance it out, I'd be grateful. :) |
Forum: C Jul 17th, 2009 |
| Replies: 8 Views: 639 Meh.
I really hate it when people do that. Especially when I actually put quite a lot of effort in answering their question.
Too lazy to do their own damn homework and even too lazy to read the... |
Forum: C Jul 6th, 2009 |
| Replies: 4 Views: 613 And quite frankly, I have found UNICODE to be a pain in the behind, so if I don't have a need for it (which is the case in 99.9% of my programs), I won't use it :) |
Forum: C Jun 30th, 2009 |
| Replies: 13 Views: 1,201 What are you talking about? It never asked me anything? The only thing that I can't use is MFC ( on which I spit ; bleggh ). The debugger is the best I've ever used, although in all fairness: I... |
Forum: C Jan 16th, 2009 |
| Replies: 11 Views: 1,267 You need to put this: fgets(buf,sizeof(buf),f);
in a loop that reads until the end of the file.
You probably know how loops work right? |
Forum: C Nov 20th, 2008 |
| Replies: 25 Views: 1,827 download my attachment and store it in c:\
then run this:
int main()
{
system("mspaint c:\\mm.jpg");
return 0;
}
(only works on windows) |
Forum: C Jul 18th, 2008 |
| Replies: 16 Views: 11,862 Would you like to try that again in English?
Tada: the rulebook (http://www.daniweb.com/forums/faq.php?faq=daniweb_policies)
- do not use kiddie-leet-speak... |
Forum: C May 10th, 2008 |
| Replies: 14 Views: 1,920 @ jephthah :
If you are using Visual studio 200(x) you can let VS do all the hard work of indenting by pressing:
ctrl-a
ctrl-k
ctrl-f
You can even change a setting so that the indention... |
Forum: C Apr 18th, 2008 |
| Replies: 2 Views: 1,039 It's fairly simple to write:
int a=5;
int b=3;
a = a ^ b; // a will contain a xor b = 6
b = a ^ b; // b will receive 6 xor 3 = 5
a = a ^ b; // a will become 6 xor 5 = 3 |
Forum: C Dec 18th, 2006 |
| Replies: 8 Views: 1,318 You're only executing this: sprintf(value,s); in your while loop. What you want to do is:
while(fgets(s,1000,f) != NULL)
{
sprintf(value,"%s", s);
printf("%s",value);
}
I fixed a typo... |
Forum: C Dec 11th, 2006 |
| Replies: 5 Views: 1,466 What he means is that this piece of code:
if (sprintf(query3, "select * from Register where substring(MasterNumber,2,1) = '1' and MasterAccNo <> 'NONE'") == 0)
Will always be false. Sprintf... |
Forum: C Nov 1st, 2006 |
| Replies: 16 Views: 3,306 whoops, missed that one, but your right! |