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: *

  • Users: ToddT
  • Order by date
  1. ToddT

    More help struct arrays

    when I say struct some_struct{ string Name; int Count; }; some_struct MyStruct[5]; it is okay, but when I say MyStruct[3].Name="Todd"; I recieve a cannot allocate 0 sized constant array does anyone know why, I've include just about every library there is just to be safe, and I am...
  2. ToddT

    line parsing

    I just fixed my own code, thanks for the suggestions but none would work. I needed a function that would distinguish the words when seperated by punctuation, like word1,word2;word3 ;done
  3. ToddT

    struct arrays in headers--- Please help

    I am getting a zero sized array constant. The rest of the errors are just do to the array being unrecognized. The header file is included. Here's some code: struct op_table{ string Name; string OpCode; string Rs; string Rt; string Rd; string Shamt; string Funct; }; op_table OPTAB[31]...
  4. ToddT

    struct arrays in headers--- Please help

    I made an array of struct and put it in a header file in visual c++. it gave me 300 errors. I couldn't find anything wrong with code, so I pasted into a stump main file. then I had no errors. does anyone know how I cain remove the table from the main program without recieveing errors?
  5. ToddT

    line parsing

    I am writing an assembler and my getWord function is not working too well. Does any one know of a function that can be used to parse a string for individual words or am I just stuck with fixing my code?
  6. ToddT

    Help on my hash table

    Thanks to any would be helpers, but I figured it out. I had an array domain error from failing to initialize a counter.
  7. ToddT

    Help on my hash table

    I have this simple hash table but I am getting an access error, the code is // Include Directives // ------------------ #include <cmath> #include <iostream> #include <string> #include <fstream> using namespace std; const int MAX_KEYS=1000; const string...
  8. ToddT

    Command Line in Unix

    Can anyone tell me how to pass a certain range of command line arguments in the csh
  9. ToddT

    How system() works?

    Does anybody know if the system( ) function will use the same command line arguments as the program that the function is in? Ex. void main(int argc, char *argv){ ... system( program arg1 arg2 arg3); } Am I correct in thinking that arg1, arg2, and arg3 are totally independent of main's...
  10. ToddT

    Linking multiple programs

    Yes, my goal is to have one executable that feeds from the command line. This program interprets the command line and look for tokens that activate the other programs. Ex. A program right.exe that checks if a triangle is a right triangle, Count.exe that counts words in a file, and Search.exe...
  11. ToddT

    Linking multiple programs

    Can anyone tell me how to link multiple programs? I'm using this void main(int argc, char argv){ ... if(...) system(&quot;program1&quot;); else if(...) system(&quot;program2&quot;); else if(...) system(&quot;program3&quot;); exit(0); But this is giving me core dumps, which I do not...
  12. ToddT

    Linking multiple executables in C++ (Unix)

    That's what the program looks like, believe it or not. Does system() call the object or executable file? And if it is executable, with function calls object files?
  13. ToddT

    Linking multiple executables in C++ (Unix)

    Can anyone tell me how to link multiple .exe files. I wrote a program that called to three different executables given certain situations. The three programs run fine, but in when I linked them, I get a multiple main() error message. I am using system() to call the other programs. Any help...
  14. ToddT

    Counting was easy in 3rd grade, but not access---please help

    Hi. I'm trying to do something that I thought would be simple: For a given record in a form (Job Entry Form), I would like to count the total number of stores assigned to that job. The stores are assigned through the use of a subform (Store Assignment Subform) on the Job entry form. One the...

Part and Inventory Search

Back
Top