Here is a snippet of the code
int ln;
srand(time(0));
ln = rand()%100+200;
goto ln;
I think thats right.
Just try it, you never know.
Type: Posts; User: tudehopet
Here is a snippet of the code
int ln;
srand(time(0));
ln = rand()%100+200;
goto ln;
I think thats right.
Just try it, you never know.
Firstly, there is an error in your code, a tip: it is to do with something that you did which uses the StdAfx library. Secondly, Im not going to read through all that code to find it. Just look in...
For the part in your main function where you try to cin a users name, use a character array, and to cin in the whole thing just type this: cin.getline(myarray, '\n');
Is loop1 a global?
If it...
An less longer way:
strstr(string1, string2);
you could also look at how the function is set up in the string.h file.
That is the easiest method of figuring out how functions work and to learn...
It is a good idea to overload the constructor, because if you create an instance of the class that doesn't need any arguments then there will be not constructor. Another way if you don't overload it...
Does anyone known any free COM guides or sites that deal with COM programming.
Thankyou
If you dont know how to use an MSG box then here is the solution:
AfxMessageBox("string goes here");
make sure StdAfx.h is include in the .cpp file.
i think it is the same as an SDI, similar procedures.
You could alternatively try the File I/O functions provided by MFC
You could use the file in and out functions provided by MFC. Read up on it, I dont have my notes with me so I cant give you a detailed description on how to do that.
Hope this helped you.
Thanks for the help guys.;)
try giving this limitation:
min: 10000
max: 99999
How would I go about turning caps lock on or off in a dos program?
Please help.
Nooitus my brueky
try this:
ifstream fin("filename.nam");
for example.
It does really depend on what you want to do with the instance. If you only want to acces the memory location where an instance of the class is, then obviously you use a pointer.
The second one,...
well a version of borland which has a GUI, Borland 5.5 doesn't have that.
aihorizon.com has alot of information on linked lists, hashing (I think) and sorting, everything is there.
Hope it helps you.
Where can I get a good windows programming tutorial from?
Where can I get that version of Borland?
It is always a pleasure sharing any of my knowledge with someone.
try using a character pointer and instatiating it to NULL or '\0'
Its always a pleasure sharing some of my knowledge.
Do yourself a favor and have a look at the bubble sorting method, or another one.
Just goto aihorizon.com and then click on Basic CS, there is a whole lot of algorithms for sorting.
True, True