hi all..........one question
having declared a string like:
#include<string>
using namespace std;
Type: Posts; User: matheo917
hi all..........one question
having declared a string like:
#include<string>
using namespace std;
yep.......thanx all..........my eyes must be tired.....that's a sign that I must rest now....
Regards,
.......................
matheo917
Hi all....
To make the long story short I have the following function declaration in my program:
bool examine_string(int array[][ASCII_INDEX], char string[], int accepting_states[], int...
Thanx for the reply..........that's exactly what I intend to do
I'm not sure if it makes much difference (in this case) but you might want to save it as a (.c) file, rather than the (.cpp) file
Hi all, I've recently made a transition to WIN32 API, that is I started studying Charles Petzold's "Programming Windows", so far I must say it's a great book, considering that I have studied many...
thanx for replies and don't worry it's not that easy to insult my intelligence....
anyway, putting your example in my Microsoft Visual .NET and working a bit with the MSDN library and its...
what do you mean by "static storage duration"???
Hi, all I just picked up Charles Petzold's Programming Windows book and I'm slowly studying it --- so far it seems to be a great book, but anyway...
In the third chapter I have a simple (sample)...
nice.........
thanks for help it seems to work properly now...
interesting how the "this" pointer gets used here,
i must read up on the uses of (->*) operator and study a bit your line of...
i see................
but what about if (in your example) speak() function needs to take a Function_Type (pointer to a function) as a parameter???
in other words, what i mean is: since (in my...
thank you for the reply...
you see, actually i think i'm supposed to use an "address operator" when i call the "traverse" function, i.e:
traverse(&display);
Hi all, i have a certain certain command code that seems ambigues to me and I'm forced to use it. Can anyone explain the meaning of this particular line of code: ???
typedef void...
to respond to Jamsan's post:
that's one way of going about learning to program in "Windowed Environmnet" however you don't really learn the inner workings with just MFC as you would if you...
i would recommand getting (at first) a different compiler, for instance Microsoft Visual C++ (.NET or 6.0) but that's not a necessity...
anyway, ideally it would be best to fairly efficient with...
I must definately recommand the book by Charles Petzold "Programming Windows" and I'm sure a lot of people would as well ---> Petzold is the man and he knows how to pass on info about Win API
oh yeah,,,,,,,,,, and if it does exist then it will get opened so you must close it after, that is if you don't intend on using it
fin.close();
#include<fstream.h> // include on top of program
ifstream fin("C:\\ONEDIR\\SECOND\\FILE.TXT");
if(fin.fail())
cout << "Can't open the file or it doesn't exist!";
glad i was able to help
keep up the good work
.......................
matheo917
... bit ambigous but let's see if can make anything out of it
at first you write:
that (;) semicolon is not really helping you, b/c it will loop and will never let you get to (cnode->next =...
if pName is a pointer you can for instance do 2 things:
first, if pName has already been declared before somewhere in the code, you can do the following:
if(pName == NULL)
...
what are the errors that your compiler is flaggin??
Thank you very much, it works properly now.
ps. I see now why I was frequently getting name clashes with STL when i was including my files the way i always was...
........................
This has been on my mind for a while and finally it caught up to me by not working ....meaning:
Can anyone explain and provide a best way of placing and especiall a way of including (.h) and...
most likely....................
in reality when you utilize a (string) data type, that is defined in a <string> library, that string will have \0 as its last character