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 SkipVought 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. johndw

    Using polymorphism.

    I thought if I posted this mess, someone might be able to help me put this together. It's new to me, so I'm looking for an assist. It will step through a file now and display the contents of the buffer. Reworking it into a polymorphic app shouldn't be so tough. Can anyone help ? #include...
  2. johndw

    Rewrite of srcat()/

    I think I figured out on my own. But if anyone wants to try this, I'd enjoy seeing what comes of it. -john
  3. johndw

    Using polymorphism.

    What ever is a Finite State machine ? I was invisioning a base class with a virtual function and a couple of derived classes, with main() opening up the file and stepping though it a line at a time. Each time the character read matches a specified type, the counter from that class would...
  4. johndw

    Using polymorphism.

    I want to read a file (ie: C++ source code file or other) and count the characters that are used in pairs including ( ), [ ] and { }. The program must read all the lines of the file and count all occurrences of these characters. As its output, the program should summarize these counts and it...
  5. johndw

    Rewrite of srcat()/

    I wrote this little program that mimics strcat() - it works ok. But now I need to rewrite it to use pointers instead of passing (by reference)or indexing. Can you guys help with this one ? #include #include //for console i/o #include //for getch() #include //for string manipulation...
  6. johndw

    Need the function of strcat using pointers??

    Hello Jude, I tried your srtcat function. It compiles fine but creates problems during runtime. With two strings ("strings" and "have been concatenated"), I got the following. " strings have been concatenated¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ 8_e &quot...
  7. johndw

    need help with boolean operator

    Thanks for the idea Matt. I tried it but now I receive a different Microsoft error: &quot;microsoft visual studio\vc98\include\functional(86) : error C2678: binary '<' : no operator defined which takes a left-hand operand of type 'const class person' (or there is no acceptable conversion)&quot...
  8. johndw

    need help with boolean operator

    // Can anyone help solve this ??? I tried to use this example as the basis for training... however ... // I receive the following errors at complie time : /* --------------------Configuration: person set 1 - Win32 Debug-------------------- Compiling... person set 1.cpp C:\j\hwc2\New...

Part and Inventory Search

Back
Top