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...
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...
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...
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...
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 "...
Thanks for the idea Matt.
I tried it but now I receive a different Microsoft error:
"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)"...
// 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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.