Forum: C Oct 3rd, 2009 |
| Replies: 2 Views: 498 Wait how is that incorrect?
It doesn't matter which order you add something, that result is still the same. -associative property? |
Forum: C Aug 26th, 2009 |
| Replies: 10 Views: 579 Is this some kind of a joke? Are you telling me you don't have your own computer to install something like vmware, or god forbid, even QEMU?
And then download a linux iso, wack it onto your... |
Forum: C Aug 22nd, 2009 |
| Replies: 11 Views: 1,137 >Took me 5 minutes to indent your code
You wasted 5 minutes!?
1) You could have just clicked the quote button on his post to get the indented code.
2) You could have just ran it through an... |
Forum: C Aug 10th, 2009 |
| Replies: 5 Views: 356 store a char array = ["0123456789"]
Loop through said string to check if it contains any of those numbers. Boom job done. |
Forum: C Aug 6th, 2009 |
| Replies: 7 Views: 380 Just make sure you flirt with the interviewer. If it's a guy, tell him that the way he sits turns you on. If it's a girl, say she smells good enough to eat.
If they ask about programming just say... |
Forum: C Aug 4th, 2009 |
| Replies: 6 Views: 268 Well it sounds like a problem to do with speed = distance /time.
The 2d starting point might assume some use of vectors although I'm not sure.
Frankly the way you've phrased your question... |
Forum: C Jul 20th, 2009 |
| Replies: 2 Views: 302 You shouldn't use gets()
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1049157810&id=1043284351
So a solution would be:
http://www.daniweb.com/tutorials/tutorial45806.html
It seems... |
Forum: C Jul 14th, 2009 |
| Replies: 16 Views: 653 http://www.pomakis.com/c4/obfuscated.c
Hope this helps! |
Forum: C Jun 26th, 2009 |
| Replies: 6 Views: 354 How many times have I heard, 'It must be the compiler that's wrong.'
Another keyboard to chair interface problem no doubt! |
Forum: C Jun 25th, 2009 |
| Replies: 16 Views: 705 If you want to write portable code (works on any system) it's best to use the c89 switch (and also turn up the warning level (-Wall). |
Forum: C Jun 25th, 2009 |
| Replies: 16 Views: 705 >for(int i = 0; i < 5; i++)
That code where 'i' is declared within the parenthesis
...
'for' loop initial declaration used outside C99 mode JFYI |
Forum: C Jun 23rd, 2009 |
| Replies: 11 Views: 583 |
Forum: C Jun 17th, 2009 |
| Replies: 5 Views: 419 |
Forum: C Jun 8th, 2009 |
| Replies: 5 Views: 537 Read the documentation.
http://www.cplusplus.com/reference/clibrary/cstring/strncat/ |
Forum: C Jun 4th, 2009 |
| Replies: 6 Views: 516 http://www.gtoal.com/wordgames/scrabble.html
Seemed like a good site, you could probably simplify that.
A dynamic programming approach seems more logical than a brute force option. |
Forum: C Jun 4th, 2009 |
| Replies: 6 Views: 516 Unscrambling a set of given letter is trivial if you use a letter frequency algo.
http://www.daniweb.com/code/snippet906.html
But once you start using a board there is also the position to... |
Forum: C Jun 4th, 2009 |
| Replies: 3 Views: 530 Well if you can't calculate those number using your standard compiler use a library such as the GMP etc. |
Forum: C Jun 1st, 2009 |
| Replies: 2 Views: 419 Have you considered using a library such as curl? |
Forum: C May 22nd, 2009 |
| Replies: 5 Views: 425 Are you saying you want a function such as:
function ( /* arg1, arg2, arg3, ... , argN */) |
Forum: C May 11th, 2009 |
| Replies: 14 Views: 836 In that case this is really easy to solve.
Think about how you would do this on paper first.
You don't need excel spread sheet, or any other file input.
Post some code and we will help you... |
Forum: C May 10th, 2009 |
| Replies: 14 Views: 836 Is there an online version of this puzzle, i still don't understand what you're tryin to do. |
Forum: C May 10th, 2009 |
| Replies: 14 Views: 836 @tux4life, did you think you're in le c++ forums. |
Forum: C May 8th, 2009 |
| Replies: 10 Views: 748 >deck[0].name=="2 of Diamonds";
1) using == is the wrong operator to assign variables
2) It wouldn't work with c-style strings (i think)
I would be safer to use string copy function... |
Forum: C Apr 29th, 2009 |
| Replies: 7 Views: 477 #include <stdio.h>
#include <string.h>
#define FALSE 0
#define TRUE 1
#define NROWS 7
#define MCOLS 7
// Symbols: |
Forum: C Apr 27th, 2009 |
| Replies: 3 Views: 317 http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1046380353&id=1044780608 |
Forum: C Apr 11th, 2009 |
| Replies: 2 Views: 260 http://www.daniweb.com/code/snippet406.html |
Forum: C Mar 10th, 2009 |
| Replies: 11 Views: 897 >We have been asked to submit a mini project, so i was trying to develop a keylogger using c.
http://www.rohitab.com/discuss/lofiversion/index.php/t14610.html
If you want to submit a Trojan... |
Forum: C Feb 4th, 2009 |
| Replies: 6 Views: 405 Are you talking about hexedit? |
Forum: C Feb 4th, 2009 |
| Replies: 7 Views: 739 > main()
That should be int main(void) or int main (args...) etc
> clrscr();
Not needed, and isn't standard so my compiler will throw up an error.
>gets
Still using gets(). You were told... |
Forum: C Feb 2nd, 2009 |
| Replies: 8 Views: 546 |
Forum: C Feb 2nd, 2009 |
| Replies: 8 Views: 546 Tell me, what do you expect to get? |
Forum: C Feb 2nd, 2009 |
| Replies: 23 Views: 1,108 > Give me a Problem
Problem 1
I have just broken your legs with a sledgehammer, how do you get to the hospital?
Problem 2
Try to make a program where you have to enter your name, then the... |
Forum: C Feb 1st, 2009 |
| Replies: 7 Views: 739 >How can I get the billion value for example 99,999,999,999.99
If this is an assignment it would make sense to expect the number 99,999,999,999.99 is stored as a char[] array as opposed to a long... |
Forum: C Jan 23rd, 2009 |
| Replies: 5 Views: 798 // call this myfile.h
#include <stdio.h>
int sum ( int, int );
int sum ( int x, int y )
{
return x + y;
}
// Program to be run: main.c
#include <stdio.h> |
Forum: C Jan 16th, 2009 |
| Replies: 13 Views: 838 >Why does the following code comply in Dev-C++ and it DOESNT in MS VS 6.0?
Ask it nicely, then it might comply. |
Forum: C Jan 16th, 2009 |
| Replies: 10 Views: 818 One such tutorial maybe?
http://www.daniweb.com/tutorials/tutorial45806.html |
Forum: C Nov 6th, 2008 |
| Replies: 3 Views: 451 If you don't know how to use functions I would google it or read a book. |
Forum: C Nov 5th, 2008 |
| Replies: 3 Views: 562 that is one hideous looking bubble sort.
Search the forums for a simpler solution which uses temporary variables. |
Forum: C Nov 4th, 2008 |
| Replies: 4 Views: 506 It might do, things like if you're using a 64bit server 2003 os might be a problem if you compiled the code on a 32bit os. |
Forum: C Nov 4th, 2008 |
| Replies: 4 Views: 506 No, definitely not for windows -> unix.
I'd recommend recompiling your code under different operating systems. But if your using turbo c (the old version), things like clrscr() and other crap... |