Search Results

Showing results 1 to 40 of 48
Search took 0.01 seconds.
Search: Posts Made By: infamous ; Forum: C++ and child forums
Forum: C++ May 12th, 2004
Replies: 2
Views: 2,651
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,324
Posted By infamous
what OS r u on?
Forum: C++ May 7th, 2004
Replies: 6
Views: 7,156
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,760
Posted By infamous
Forum: C++ May 6th, 2004
Replies: 8
Views: 3,760
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,902
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,987
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,671
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,671
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 4th, 2004
Replies: 8
Views: 5,671
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 1st, 2004
Replies: 38
Views: 49,549
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: 151,723
Posted By infamous
the definitive book to pick up would be charles petzolds "programming windows"
Forum: C++ Apr 30th, 2004
Replies: 38
Views: 49,549
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: C++ Apr 29th, 2004
Replies: 16
Views: 10,987
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,968
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,968
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: 16
Views: 10,987
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,987
Posted By infamous
Forum: C++ Apr 27th, 2004
Replies: 3
Views: 3,404
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: 7,152
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: 7,152
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,629
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: 6,059
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: 3
Views: 28,107
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 9th, 2004
Replies: 2
Views: 5,458
Posted By infamous
use the seek methods http://www.cplusplus.com/ref/iostream/fstream/
Forum: C++ Apr 1st, 2004
Replies: 7
Views: 11,953
Posted By infamous
that msdn crud says 'windows.h', but i was sure u didnt need to include all that garbage just for sleep...
Forum: C++ Mar 31st, 2004
Replies: 4
Views: 47,732
Posted By infamous
you need to learn a lot more to use graphics. most windows apps use the win32 API to display windows/pics/etc.. here is a tutorial bout it tho:
http://www.relisoft.com/win32/winnie.html
Forum: C++ Mar 31st, 2004
Replies: 7
Views: 11,953
Posted By infamous
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/sleep.asp

i may have given wrong header, sorry.
Forum: C++ Mar 31st, 2004
Replies: 2
Views: 15,741
Posted By infamous
you need to make sure u terminate everything u send with "\r\n", or telnet server wont recognize it. and u'll need to login properly, i'd check out part of the telnet RFC, or try and google for a...
Forum: C++ Mar 30th, 2004
Replies: 8
Views: 29,724
Posted By infamous
uhhh.. u obviously didnt write that code. massPounds is a variable, this is where u store the user's input. cin gets input from the user, and stores it in the massPounds variable. so, u wouldnt want...
Forum: C++ Mar 28th, 2004
Replies: 12
Views: 20,379
Posted By infamous
write some code, and then ask us for help when u get stuck. read the sticky about homework.
Forum: C++ Mar 28th, 2004
Replies: 6
Views: 27,025
Posted By infamous
in 99.99% of cases it is much better to learn to write code that your compiler can optimize well. ie, compiling and observering generated code, and trying to fix your C to generate the proper asm. ...
Forum: C++ Mar 27th, 2004
Replies: 7
Views: 8,017
Posted By infamous
ohh ok i see what you r talking about now. my windows knowledge is rather limited so i have nothin constructive 2 add, sorry. i can tell u in linux how tho, the method of 'attaching' to a process's...
Forum: C++ Mar 27th, 2004
Replies: 7
Views: 8,017
Posted By infamous
i have no idea what u r talkin about.. care to elaborate? 'hooked'?
Forum: C++ Mar 25th, 2004
Replies: 5
Views: 4,210
Posted By infamous
uhh, do we have teh same version?? i compiled and ran it fine. i added items, printed them, listed them, selected individual ones, and the quit. strange :D
Forum: C++ Mar 25th, 2004
Replies: 5
Views: 4,210
Posted By infamous
it's working fine for me, what seems to be the problem exactly?
Forum: C++ Mar 25th, 2004
Replies: 5
Views: 4,210
Posted By infamous
can u please post using code tags.

#include <iostream.h>
#include <conio.h>

const int MAX_ITEMS = 5;

typedef int InventoryArray[MAX_ITEMS];

void DisplayOpeningMessage();
Forum: C++ Mar 24th, 2004
Replies: 8
Views: 5,772
Posted By infamous
hmm yea i have always used vs6, i'm going to pursue this further and find out just what i was thinkin of and get back2u.
Forum: C++ Mar 23rd, 2004
Replies: 2
Views: 7,536
Posted By infamous
ehh, a pointer isn't gonna do much for ya d00d. whatever calls u make are going to eventually map to a device driver, so here is a place to start:

http://www-2.cs.cmu.edu/~iwan/1394/
Forum: C++ Mar 23rd, 2004
Replies: 8
Views: 5,772
Posted By infamous
look in teh folder called Debug inside ur project..
Steu << my bad i think u r correct. i havent used vc++ in ages, but i thought there was some restrictions tho..
Showing results 1 to 40 of 48

 


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

©2003 - 2009 DaniWeb® LLC