Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jyrixx

    Stack that can handle both strings and floats in the same class??

    what about implementing a stack with a node type like this struct nodetype { float blah; int blah; string blah; int flag; nodetype *back; nodetype *forward; } so essentially build a doublylinked list, and call functions with a pointer to the type you want to get, and a flag...
  2. jyrixx

    Stack that can handle both strings and floats in the same class??

    in other words struct node { int flag; float a; int b; string c; }; void stack::pop() { int temp = data[sp]->flag; switch (temp) { case 1: popfloat(); break; case 2: popstring(); break; case 3: popstring()...
  3. jyrixx

    Stack that can handle both strings and floats in the same class??

    when pushing the element, use a flag in the struct and set it when inside the pop function for float, use 1, for string use 2, for int is 3. then when poping, check the flag, and pop accordingly
  4. jyrixx

    force log out??

    why couldn't you just pipe logout, or a script that logs out? just act as a shell.
  5. jyrixx

    Hard disk Space

    using /proc in linux, you could probably obtain this. my only thought would be to fopen the root directory, and maybe use the sizeof operator... i don't know for sure, but, it's my guess.
  6. jyrixx

    Convert Hex to binary

    hmm... i think you could do this.. first of all if you encounter an A, it's gonna be a 10, and so on. theres an alogorithm that basically says, take the remainder when you divide by the base you are converting to. so if you have the number 4. 4%2 = 0 4/2 = 2, 2 goes down. 2%2 = 0 2/2 = 1, 1...
  7. jyrixx

    generating c++ code from c++ code ???

    you could write a c++ program to build another peice of source code based on input. to run it and then compile the new code, you could use shell scripting. a shell script works very much like a c++ program. but, using main function return values, you can test to see that things went ok, and you...
  8. jyrixx

    getting mac-address of networkcard

    if by any chance you are using linux... the proc filesystem probably has the mac address in it somewhere.. i'm not sure where, but that might be a way to do it. also pipe ifconfig which i think someone suggested already
  9. jyrixx

    help with command line input ....(unix)csh

    also, if you're using g++ to compile... compile with: g++ -g <the rest> then type gdb a.out while in gdb type run it'll tell you where it fails.. wait.. with command line input... it might work..
  10. jyrixx

    help with command line input ....(unix)csh

    in main(int argc,char *argv[]) it is correct that argc will always equal at least 1. if you wanted to find a certain character from argv you could use argv[0][0] which would give you the first character of the command line. if you called ./a.out and used printf (&quot;%c&quot;,argv[0][0]); you...
  11. jyrixx

    using streams.

    ok, let's say i have a function call it foo. foo wants to be able to look like this: void foo (<output stream> s, int o) { s << &quot;blah blah blah\n&quot;; } however, i would like to be able to use cout as one of those streams, so that with this function i could print to a file, cerr, or...
  12. jyrixx

    Printing to a particular spot on a line in C++

    well, if you use the iomanip library setw(30) will work just fine.
  13. jyrixx

    HP Ominbook 2000, Son changed BIOS password, now I am screwed!!!

    there should be a way to flash the bios, which would take care of your problems. call hp's tech help and see if there is. this is another stab in the dark, but if you have a little reset button did you try that? (probably won't do anything though) GOOD LUCK!
  14. jyrixx

    Alienware systems?

    hey i've heard nothing but GREAT things about alienware. those rusty is right, building your system is the bestest way, since you can put whatever you want into it, customize the case if in deed you want to, and you'll be accomplishing something GREAT if you've never done it before. If you do...
  15. jyrixx

    Easy question, how do I format a hard drive?

    there is another way. say you had a virus or something and just wanted to wipe EVERYTHING off the disk. you could do what's called low-level format. what it does is set all the bits to 0. usually a hard drive will come with a disk to do so.. but if not just search the web for a utility. in...
  16. jyrixx

    searching and viewing records in forms and maybe updating them?

    hey, thanks yeah.. i've realized the planning. it is a single user system, so i'll try that. thanks for the help
  17. jyrixx

    searching and viewing records in forms and maybe updating them?

    here's my question. i'm making a patient database for a doctor. I want to be able to type a social security number into a text box and be able to view all of the information about that person. how can i do this? i have a form setup and can input information into it. and would also like to be...

Part and Inventory Search

Back
Top