Search Results

Showing results 1 to 35 of 35
Search took 0.03 seconds.
Search: Posts Made By: iamthwee ; Forum: C and child forums
Forum: C Oct 3rd, 2009
Replies: 2
Views: 461
Posted By iamthwee
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 22nd, 2009
Replies: 11
Views: 1,035
Posted By iamthwee
>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 Jun 25th, 2009
Replies: 16
Views: 689
Posted By iamthwee
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 4th, 2009
Replies: 6
Views: 497
Posted By iamthwee
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 May 10th, 2009
Replies: 14
Views: 815
Posted By iamthwee
@tux4life, did you think you're in le c++ forums.
Forum: C Apr 27th, 2009
Replies: 3
Views: 302
Posted By iamthwee
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1046380353&id=1044780608
Forum: C Apr 11th, 2009
Replies: 2
Views: 245
Posted By iamthwee
http://www.daniweb.com/code/snippet406.html
Forum: C Aug 16th, 2008
Replies: 2
Views: 474
Posted By iamthwee
If you spent less time concentrating on how to paint the text different colours in the console window you might be getting somewhere.
Forum: C Jul 30th, 2008
Replies: 9
Views: 987
Posted By iamthwee
I don't agree that post #4 did anything to help the OP. It just gave him the answer on the plate...
Forum: C Jul 27th, 2008
Replies: 12
Views: 1,530
Posted By iamthwee
Is it just me, or does that example sort by matrix number/ marks instead of name?
Forum: C Jun 25th, 2008
Replies: 16
Views: 1,338
Posted By iamthwee
What are these unsightly things I see,

gets() - ouch
clrscr() - unportable and unnecessary

And if I was being really picky atoi()...
Forum: C Dec 29th, 2007
Replies: 23
Views: 2,342
Posted By iamthwee
Put some printf(s) in strategic places to help you find out where you are going wrong.

Using fllush(stdin) and gets() probably doesn't help matters... And void main...
Forum: C Nov 26th, 2007
Replies: 58
Views: 4,940
Posted By iamthwee
>that is using win main.. which is c++?.
No, not necessarily, you can use c as well with win32. Think of win32 as a separate entity, severed from either c or c++. You use one or the other to help...
Forum: C Oct 21st, 2007
Replies: 6
Views: 1,451
Posted By iamthwee
>Care to explain? Does not even look like a joke to me!

Yes the point of the matter is that the same output can be recreated without gotoxy() which is non-portable - meaning it won't work on some...
Forum: C Oct 5th, 2007
Replies: 11
Views: 3,089
Posted By iamthwee
What!? just save the file as something.c and hit the compile button. Job done.
Forum: C Sep 30th, 2007
Replies: 10
Views: 4,527
Posted By iamthwee
Yes in future, know the difference between a helpful prod in the right direction and a complete solution, albeit incorrect. Bah ha ha!
Forum: C Sep 10th, 2007
Replies: 3
Views: 5,112
Posted By iamthwee
> please do help us.
Help yourself by creating at least a skeleton program. Draw a flow chart on paper to get you started and use google for help...
Forum: C Aug 25th, 2007
Replies: 9
Views: 1,009
Posted By iamthwee
Perhaps?
http://everything2.com/index.pl?node_id=1023392
Forum: C Jun 9th, 2007
Replies: 7
Views: 4,988
Posted By iamthwee
possibly (http://irc.essex.ac.uk/www.iota-six.co.uk/c/g6_strcat_strncat.asp) Something to think about.

Not looked at the link properly though.
Forum: C Apr 28th, 2007
Replies: 1
Views: 614
Posted By iamthwee
You got the code tags wrong.
Forum: C Apr 7th, 2007
Replies: 4
Views: 959
Posted By iamthwee
#include <stdio.h>
#include <stdlib.h>

#define MYFILE "c:\\example.txt"

int main(void)
{
FILE *fp;
char buf[BUFSIZ] = "blah";
int i;
Forum: C Jan 11th, 2007
Replies: 12
Views: 2,739
Posted By iamthwee
Hey that's sweet. I'll try that later.
Forum: C Dec 17th, 2006
Replies: 14
Views: 6,526
Posted By iamthwee
http://www.cprogramming.com/tutorial/string.html
Forum: C Oct 17th, 2006
Replies: 4
Views: 2,087
Posted By iamthwee
http://www.codeguru.com/cpp/g-m/gdi/article.php/c131/
Forum: C Sep 22nd, 2006
Replies: 7
Views: 8,010
Posted By iamthwee
>we can not use functoins like strcpy

Then write your own strcpy function and do it that way.
Forum: C Sep 18th, 2006
Replies: 2
Views: 1,464
Posted By iamthwee
Most probably, anything that relies on an underlying program can therefore be reprogrammed. How? That would be a better question.
Forum: C Aug 4th, 2006
Replies: 5
Solved: Swapping
Views: 1,422
Posted By iamthwee
My guess is you would use the xor operator or use a trick with operator overloading +=?

http://www.devmaster.net/forums/showthread.php?t=428
Forum: C Jul 30th, 2006
Replies: 3
Views: 2,061
Posted By iamthwee
Or better still get accustomed to the dot net framework, and learn c#. You can make quick GUIs wicked fast.
Forum: C Jul 27th, 2006
Replies: 16
Views: 2,308
Posted By iamthwee
But if you still want to do this try looking up hash tables in c.
Forum: C Jul 27th, 2006
Replies: 9
Views: 1,847
Posted By iamthwee
Hullo there, what's the problem? You have been told that using scanf is a waste of time, since each line does not contain the exact same number of variables. (It also makes your struct pretty useless...
Forum: C Jul 27th, 2006
Replies: 16
Views: 2,308
Posted By iamthwee
What you are asking for is more or less like a word frequency counter.

If you were writing that for c++ it would be no problem. You could use the std::map.

In c it is much more difficult to...
Forum: C Jul 26th, 2006
Replies: 16
Views: 2,308
Posted By iamthwee
Yes, you can do that, but it's more tricky.
Forum: C Jul 26th, 2006
Replies: 16
Views: 2,308
Posted By iamthwee
Maybe this?

char da;

da = getchar();
Forum: C Jul 26th, 2006
Replies: 16
Views: 2,308
Posted By iamthwee
> you mean by declaring dop as char dop[50] should work?????

Yes it makes no sense to declare it as an array of integers.

For example the following code may be what you want.
...
Forum: C May 3rd, 2006
Replies: 1
Views: 1,225
Posted By iamthwee
>http://en.wikipedia.org/wiki/Dynamic_programming
Showing results 1 to 35 of 35

 


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

©2003 - 2009 DaniWeb® LLC