Forum: C 4 Hours Ago |
| Replies: 2 Views: 33 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 1 Day Ago |
| Replies: 8 Views: 149 |
Forum: C 1 Day Ago |
| Replies: 8 Views: 149 Do you realize that the program you've posted has nothing to do with C++? It's C. |
Forum: C 4 Days Ago |
| Replies: 6 Views: 174 Nope. It's for every post that violates one of these rules (http://www.daniweb.com/forums/faq.php?faq=daniweb_policies). |
Forum: C 4 Days Ago |
| Replies: 6 Views: 174 Next time, please just click the 'flag bad post' link if you see no code-tags, and someone will fix it. Now we have the same code posted twice, only yours has no indention. |
Forum: C 4 Days Ago |
| Replies: 6 Views: 174 This line is wrong: new1=create_node();
The function create_node() is not yet defined at this point in your code. The functions linked_list *create_node() and ll_insert() need to switch positions... |
Forum: C 16 Days Ago |
| Replies: 4 Views: 311 |
Forum: C 21 Days Ago |
| Replies: 1 Views: 307 Beej (http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html)is your friend |
Forum: C 21 Days Ago |
| Replies: 9 Views: 366 |
Forum: C 25 Days Ago |
| Replies: 1 Views: 253 Do you have sufficient privileges at your school to open sockets? |
Forum: C Sep 18th, 2009 |
| Replies: 9 Views: 561 Please post your newest code. |
Forum: C Sep 18th, 2009 |
| Replies: 14 Views: 16,899 Although bumping threads is not against the rules (http://www.daniweb.com/forums/faq.php?faq=daniweb_policies)here on Daniweb, it is still frowned upon. Especially when it comes to "I agree" posts. ... |
Forum: C Sep 18th, 2009 |
| Replies: 14 Views: 16,899 What the hell are you talking about?
And why are you posting this in a FIVE year old thread? |
Forum: C Sep 18th, 2009 |
| Replies: 5 Views: 770 Your logic is wrong. 1 KM == 1000 M == 100000 CM. |
Forum: C Sep 9th, 2009 |
| Replies: 2 Views: 377 You mean something like:
unsigned char a = '0';
unsigned int b =a;
'b' will now be 48. That's the ASCII (http://asciitable.com/)-value of '0' (zero) |
Forum: C Aug 21st, 2009 |
| Replies: 2 Views: 271 First tell us in clear language
- what the input of your program should be (provide a sample).
- what the output of your program should be (provide a sample).
Then show us what you've done so... |
Forum: C Aug 20th, 2009 |
| Replies: 5 Views: 379 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 Aug 19th, 2009 |
| Replies: 5 Views: 379 These lines should give you a compiler error:
nop = atoi(number_of_people);
user usera[nop];
C does not allow an array to be declared with an (at compile time) unknown amount of elements.... |
Forum: C Jul 28th, 2009 |
| Replies: 13 Views: 681 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: 681 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 27th, 2009 |
| Replies: 3 Views: 405 You need more then just the header files. How would your compiler know what to do with just the headers?
Go here (http://mspgcc.sourceforge.net/) |
Forum: C Jul 27th, 2009 |
| Replies: 13 Views: 681 Tell me how this advice will help the op solves his(her) problem, I'm curious... |
Forum: C Jul 17th, 2009 |
| Replies: 6 Views: 392 fstream is not C, it's C++. What language are you writing this program in? |
Forum: C Jul 17th, 2009 |
| Replies: 8 Views: 594 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: 9 Views: 354 As I mentioned, this won't do. It will go so insanely fast that you would even have a hard time seeing it on scope.
Now I don't know what your LED_on and LED_off functions do exactly, but how... |
Forum: C Jul 6th, 2009 |
| Replies: 9 Views: 354 You mean like the uctestcnt++; he put in the interrupt-handler? ;) |
Forum: C Jul 6th, 2009 |
| Replies: 4 Views: 565 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 Jul 6th, 2009 |
| Replies: 9 Views: 354 So how do you know that the handler isn't working? If the answer is: I can't see the LED blink, then that's because the ontime is to small to see with the naked eye.
Does interrupt... |
Forum: C Jul 6th, 2009 |
| Replies: 9 Views: 354 It would help if you used code-tags (http://www.daniweb.com/forums/misc-explaincode.html) so we could actually read your code.
Also: What microcontroller is this? And post a link to it's... |
Forum: C Jul 3rd, 2009 |
| Replies: 2 Views: 213 Here's a good starting point (http://eternallyconfuzzled.com/tuts/datastructures/jsw_tut_linklist.aspx) on linked lists.
As csurfer mentioned: try something yourself and post your efforts here to... |
Forum: C Jun 30th, 2009 |
| Replies: 13 Views: 1,130 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 Jun 30th, 2009 |
| Replies: 13 Views: 1,130 Here's a tip: read the rulebook (http://www.daniweb.com/forums/faq.php?faq=daniweb_policies), especially the parts about code-tags and posting complete answers.
And although you might think that... |
Forum: C Jun 16th, 2009 |
| Replies: 7 Views: 771 |
Forum: C May 19th, 2009 |
| Replies: 13 Views: 1,251 Debugging is indeed the answer. But I also what to place a bet on what could be wrong. Are you using dynamic memory? Does the PC on which it runs have (a lot) more memory then your Solaris PC? |
Forum: C May 14th, 2009 |
| Replies: 15 Views: 909 Neither was I.
This is news to me. I found out that:
But VS will compile it without warning on warning level 4 and G++ will also compile it with -Wall (no warning shown). That's kinda... |
Forum: C May 14th, 2009 |
| Replies: 9 Views: 1,053 The whole code looks a bit shaky to be honest...
If you're going to use rand() you need to seed the random generator first with srand(). Here's how to do it... |
Forum: C May 14th, 2009 |
| Replies: 11 Views: 1,318 If you're going to call the code 'wrong', do you mind giving an example?
To be honest Marco, your posts are getting a bit boring. You always post something like: 'This sux, use win32 API' and... |
Forum: C May 14th, 2009 |
| Replies: 15 Views: 909 I'm in too :) The OP said that this code could be in either C or C++, so I thought I'd make my brainvommit in c++
#include <string>
#include <iostream>
#include <vector>
int main(void)
{
... |
Forum: C May 7th, 2009 |
| Replies: 5 Views: 480 You should really watch the Fast and the Furious, then you would have known: Nitrous Oxide Systems (http://www.holley.com/index.asp?division=NOS) |
Forum: C Apr 23rd, 2009 |
| Replies: 3 Views: 311 Be more specific. Which arrays? Where do they get values and where do you want to print them? |