Search Results

Showing results 1 to 24 of 24
Search took 0.00 seconds.
Search: Posts Made By: infamous ; Forum: C and child forums
Forum: C Sep 20th, 2004
Replies: 3
Views: 5,646
Posted By infamous
forgot to check malloc() for error return, looks cool other than that :-D
Forum: C May 14th, 2004
Replies: 3
Views: 3,729
Posted By infamous
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_crt__popen.2c_._wpopen.asp

need to use _popen() to send commands down a pipe to format, ur method will not work.
Forum: C May 10th, 2004
Replies: 1
Views: 4,707
Posted By infamous
a test plan is designed to test the robustness of your program. if you are taking in any input from the user, you would want to try many values for those inputs. most importantly, u would want to...
Forum: C May 6th, 2004
Replies: 2
Views: 2,680
Posted By infamous
yea, that's what apache does. what exactly are u trying to do here?
Forum: C May 5th, 2004
Replies: 7
Views: 16,721
Posted By infamous
ugh, nevermind apparently windows doesn't support dup'ing
Forum: C May 5th, 2004
Replies: 7
Views: 16,721
Posted By infamous
i'm not sure if this is the answer u want, b/c i dont fully understand what u mean by "log window", but if u run a program from DOS prompt like:

./program >outfile standard output is redirected...
Forum: C May 2nd, 2004
Replies: 2
Views: 2,939
Posted By infamous
u need extra parentheses around the = assignment

return ( (remainder = ( num1 > num2 ? num1 % num2 : num2 % num1) )==0 ? num1
: gcd2(remainder, num1));
Forum: C Apr 28th, 2004
Replies: 3
Views: 4,694
Posted By infamous
the compiler is telling u waht is wrong. the manual page apparently has an incorrect prototype, b/c gcc is telling u that it is returning an integer. try loooking at the header file and seeing if...
Forum: C Apr 16th, 2004
Replies: 2
Views: 8,500
Posted By infamous
how bout using fwrite()?
Forum: C Apr 16th, 2004
Replies: 4
Views: 4,837
Posted By infamous
if u read a lot of books they'll tell u most of what u need to know.
Forum: C Apr 11th, 2004
Replies: 7
Views: 8,088
Posted By infamous
i was trying to learn about firmware a couple weeks ago b/c i wantd to hack my router. i found that most firmware is just plain ol C..
Forum: C Apr 9th, 2004
Replies: 4
Views: 4,265
Posted By infamous
google for 'i/o ports tutorial C'
Forum: C Mar 28th, 2004
Replies: 10
Views: 7,082
Posted By infamous
what am i, psychic? i didnt know if it was homework or not, i was just trying to clear up some of the old posts; worry about yourself. that post was almost 3 months old anyhow, dont think it helped...
Forum: C Mar 27th, 2004
Replies: 10
Views: 7,082
Posted By infamous
Forum: C Mar 27th, 2004
Replies: 3
Views: 2,983
Posted By infamous
try comparing line by line, not bit by bit.
Forum: C Mar 27th, 2004
Replies: 10
Views: 7,082
Posted By infamous
that's not what 'nested' functions means. nested functions means being able to define a function inside another. and some compilers allow and others dont, so it's not something u can rely on.
Forum: C Mar 23rd, 2004
Replies: 2
Views: 2,354
Posted By infamous
i wrote an ftp library, found here: www.1nfamus.netfirms.com look halfway down page or so, feel free to modify/use it as u plz.
Forum: C Mar 23rd, 2004
Replies: 1
Views: 4,424
Posted By infamous
1 is a TYPE of function that returns void and takes a pointer to a CSSMAPI type
2 is a function POINTER to a function that returns void and takes no arguments
Forum: C Mar 23rd, 2004
Replies: 10
Views: 7,082
Posted By infamous
1) b/c C is a minimal, spartan like language
2) shift each bit out and test it:

unsigned int num = 0xdeadbeef;
for(int x = 0; x < (sizeof(int) * 8); x++)
if(num & (1 << x) ) printf("bit...
Forum: C Mar 23rd, 2004
Replies: 1
Views: 2,975
Posted By infamous
1)what u should do is have a member function called add_fract(Fraction ftoadd). this function would be used as follows:

Fraction fract(3,4), other_fract(5,6);

fract.add_fract(other_fract);...
Forum: C Mar 23rd, 2004
Replies: 5
Views: 5,896
Posted By infamous
this is wrong. you cannot just call functions without checking the error return of them. fgetc() can fail, and must be checked. and from the ff output u can tell that it is trying to tell u...
Forum: C Mar 23rd, 2004
Replies: 1
Views: 5,954
Posted By infamous
u are almost there. the scanf function returns teh number of correctly read variables. in your while loop, u are testing:
while ((amt <= (float) 100) && (correctItemsRead == 1));

but...
Forum: C Mar 23rd, 2004
Replies: 2
Views: 2,945
Posted By infamous
http://g2.sourceforge.net/
Forum: C Mar 23rd, 2004
Replies: 2
Views: 3,457
Posted By infamous
yes it is very solvable. unresolved references mean that you either, dont have the correct libs, or those libs are not being included properly by the compiler. u need to first figure out where that...
Showing results 1 to 24 of 24

 


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

©2003 - 2009 DaniWeb® LLC