Forum: C Sep 20th, 2004 |
| Replies: 3 Views: 5,646 forgot to check malloc() for error return, looks cool other than that :-D |
Forum: C May 14th, 2004 |
| Replies: 3 Views: 3,729 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 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 yea, that's what apache does. what exactly are u trying to do here? |
Forum: C May 5th, 2004 |
| Replies: 7 Views: 16,721 ugh, nevermind apparently windows doesn't support dup'ing |
Forum: C May 5th, 2004 |
| Replies: 7 Views: 16,721 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 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 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 |
Forum: C Apr 16th, 2004 |
| Replies: 4 Views: 4,837 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 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 google for 'i/o ports tutorial C' |
Forum: C Mar 28th, 2004 |
| Replies: 10 Views: 7,082 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 |
Forum: C Mar 27th, 2004 |
| Replies: 3 Views: 2,983 try comparing line by line, not bit by bit. |
Forum: C Mar 27th, 2004 |
| Replies: 10 Views: 7,082 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 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 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 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 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 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 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 http://g2.sourceforge.net/ |
Forum: C Mar 23rd, 2004 |
| Replies: 2 Views: 3,457 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... |