Search Results

Showing results 1 to 40 of 77
Search took 0.01 seconds.
Search: Posts Made By: infamous
Forum: C Sep 20th, 2004
Replies: 3
Views: 5,563
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,654
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 12th, 2004
Replies: 2
Views: 2,605
Posted By infamous
read in the toll file, read in the customer file. store the customer's data into a structure. if the customers balance is > 0 then print out the data. what is it that u dont know how to do? we...
Forum: C++ May 12th, 2004
Replies: 4
Views: 3,260
Posted By infamous
what OS r u on?
Forum: Java May 10th, 2004
Replies: 2
Views: 2,708
Posted By infamous
if u check on java.sun.com they have a tutorial for nearly everything could imagine.
Forum: C May 10th, 2004
Replies: 1
Views: 4,525
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 7th, 2004
Replies: 6
Views: 6,957
Posted By infamous
read in the number of hours from the user using cin.
if the number is <= 3, then charge is 2
else if the (number of hours - 3) * .50 + 2 > 10, it is $10
else the answer is (number of hours - 3)...
Forum: C++ May 6th, 2004
Replies: 8
Views: 3,637
Posted By infamous
Forum: C May 6th, 2004
Replies: 2
Views: 2,643
Posted By infamous
yea, that's what apache does. what exactly are u trying to do here?
Forum: C++ May 6th, 2004
Replies: 8
Views: 3,637
Posted By infamous
c++ is a subset of c, or maybe it's the otehr way round i 4got that crap, but anyhow, piont is, u can't.
Forum: C++ May 6th, 2004
Replies: 3
Views: 7,642
Posted By infamous
if it returns void, then you can't use the return value b/c there isn't one! you are trying to "cout << Calc()" , that means print out the return value of function Calc(), but it has no return value...
Forum: C++ May 5th, 2004
Replies: 16
Views: 10,808
Posted By infamous
ok mah little newbite friend, w/e u say. dont be mad b/c i have more brains in my d!ckhead then u do in between ur ears.
Forum: C++ May 5th, 2004
Replies: 8
Views: 5,528
Posted By infamous
i am a mainly C programmer(i do know C++ a bit, but not as well as C), but i decided to mess with STL a few weeks ago for a school project in AI class. i was amazed at how simple it was to pick up. ...
Forum: C++ May 5th, 2004
Replies: 8
Views: 5,528
Posted By infamous
actually, the STL containers may in fact be implemented with btrees, but that is transparent to you the programmer. u just stick the elements in and let them worry bout the implementation, and when u...
Forum: C May 5th, 2004
Replies: 7
Views: 16,067
Posted By infamous
ugh, nevermind apparently windows doesn't support dup'ing
Forum: C May 5th, 2004
Replies: 7
Views: 16,067
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 4th, 2004
Replies: 8
Views: 5,528
Posted By infamous
you're better off using the STL if you can, their algorithms are far superior to what most of us could write.
Forum: C May 2nd, 2004
Replies: 2
Views: 2,871
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++ May 1st, 2004
Replies: 38
Views: 48,704
Posted By infamous
cybergirl << could u at least tell us WHY it isn't running?? can u compile it? does it fault when it runs? where does it fault?? some INFO
Forum: C++ May 1st, 2004
Replies: 27
Views: 143,538
Posted By infamous
the definitive book to pick up would be charles petzolds "programming windows"
Forum: C++ Apr 30th, 2004
Replies: 38
Views: 48,704
Posted By infamous
agreed, it is always a good habit to get into. the only time u will see good programmers avoiding the practice is when writing kernel code - when every instruction counts, and then it is ur...
Forum: Computer Science Apr 29th, 2004
Replies: 3
Views: 4,998
Posted By infamous
most p2p networks are just a bunch of people sitting at their home PC's all running some software program that creates a "network" between them. usually when a user starts this program they will...
Forum: C++ Apr 29th, 2004
Replies: 16
Views: 10,808
Posted By infamous
i never made fun of you, i simply suggested doing a little searching. you come on and basically post your homework assignment and think that people are going to just hand u code, LMAO. and uhh,...
Forum: C++ Apr 28th, 2004
Replies: 5
Views: 9,616
Posted By infamous
ok, if you're talking about something high level like that it may be true, but for say some simple integer x it makes no difference in the generated asm. :)
Forum: C++ Apr 28th, 2004
Replies: 5
Views: 9,616
Posted By infamous
it is faster to type but there's no difference in the code generated, test it and see for yourself.
Forum: C Apr 28th, 2004
Replies: 3
Views: 4,529
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 28th, 2004
Replies: 16
Views: 10,808
Posted By infamous
what do u think we're gonna write it for u? im not going to google, it isnt my assignment. u need to LOOK harder. everyone gets this assignment in their OS class, i'm sure a solution is out there. ...
Forum: C++ Apr 27th, 2004
Replies: 16
Views: 10,808
Posted By infamous
Forum: C++ Apr 27th, 2004
Replies: 3
Views: 3,348
Posted By infamous
post your code enclosed in the [ code ] [ /code ] tags so it is formatted:

see the spaces get preserved

and post the section of code u need help on, not 19 pages of it.
Forum: C++ Apr 24th, 2004
Replies: 4
Views: 6,991
Posted By infamous
let me clear that up. calling exec() does NOT create a new process. calling fork creates the new process. what i was trying to say was: if u have a thread call an exec() function, THE ENTIRE...
Forum: C++ Apr 23rd, 2004
Replies: 4
Views: 6,991
Posted By infamous
if you call an exec() function from a thread, the entire process will be replaced by the program u call, not just the single thread of execution. exec'ing replaces the entire address space of a...
Forum: C++ Apr 22nd, 2004
Replies: 5
Views: 3,521
Posted By infamous
your add_item method should traverse to the END of the list, and add the element there. the remove_item method should remove the first element in the list.
Forum: C++ Apr 20th, 2004
Replies: 1
Views: 5,904
Posted By infamous
read the irc protocol for starters, or try packet sniffing a session of irc so u can see what goes on.
Forum: C Apr 16th, 2004
Replies: 2
Views: 8,281
Posted By infamous
how bout using fwrite()?
Forum: C++ Apr 16th, 2004
Replies: 3
Views: 27,592
Posted By infamous
use the & and << operators. remember that a character is just a sequence of bits. u cant test for each bit and output the result.

int main()
{
char x = 'a';
int y;

// the value...
Forum: C Apr 16th, 2004
Replies: 4
Views: 4,706
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: 7,997
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: 2
Views: 5,353
Posted By infamous
use the seek methods http://www.cplusplus.com/ref/iostream/fstream/
Forum: C Apr 9th, 2004
Replies: 4
Views: 4,188
Posted By infamous
google for 'i/o ports tutorial C'
Forum: C++ Apr 1st, 2004
Replies: 7
Views: 11,589
Posted By infamous
that msdn crud says 'windows.h', but i was sure u didnt need to include all that garbage just for sleep...
Showing results 1 to 40 of 77

 


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

©2003 - 2009 DaniWeb® LLC