Forum: C Sep 20th, 2004 |
| Replies: 3 Views: 5,563 forgot to check malloc() for error return, looks cool other than that :-D |
Forum: C May 14th, 2004 |
| Replies: 3 Views: 3,654 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 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 |
Forum: Java May 10th, 2004 |
| Replies: 2 Views: 2,708 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 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 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 |
Forum: C May 6th, 2004 |
| Replies: 2 Views: 2,643 yea, that's what apache does. what exactly are u trying to do here? |
Forum: C++ May 6th, 2004 |
| Replies: 8 Views: 3,637 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 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 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 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 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 ugh, nevermind apparently windows doesn't support dup'ing |
Forum: C May 5th, 2004 |
| Replies: 7 Views: 16,067 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 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 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 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 the definitive book to pick up would be charles petzolds "programming windows" |
Forum: C++ Apr 30th, 2004 |
| Replies: 38 Views: 48,704 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 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 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 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 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 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 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 |
Forum: C++ Apr 27th, 2004 |
| Replies: 3 Views: 3,348 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 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 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 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 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 |
Forum: C++ Apr 16th, 2004 |
| Replies: 3 Views: 27,592 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 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 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 use the seek methods http://www.cplusplus.com/ref/iostream/fstream/ |
Forum: C Apr 9th, 2004 |
| Replies: 4 Views: 4,188 google for 'i/o ports tutorial C' |
Forum: C++ Apr 1st, 2004 |
| Replies: 7 Views: 11,589 that msdn crud says 'windows.h', but i was sure u didnt need to include all that garbage just for sleep... |