Yeah its a boolean value. in c++ a boolean value is defined by the keyword bool. it can be represented as zero and non-zero, or better yet, using TRUE and FALSE.
It is used in the bubble sort to know when to exit.
Hope this helps,
Chi Happens
Chi Happens
"When you know and respect your...
Just use c_str() on the ansistring, that converts it to a basic string.
String MyAnsiString = "This is my string";
string MyBasicString;
MyBasicString = MyAnsiString.c_str();
Caption = MyBasicString.c_str();
Chi Happens
"When you know and respect your own inner...
lionelhill
understood. thanks for the additional info.
Chi Happens
"When you know and respect your own inner nature, you know where you belong. You also know where you don't belong" - Benjamin Hoff
lionelhill,
Certainly there are other, and more effecient sorting techniques like Radix Sort, but that isn't what was asked for.
Here is a simple chart to compare the sorts:
SORT WORST CASE AVERAGE
Selection Sort n^2 n^2
Bubble Sort n^2 n^2
Insertion Sort...
2ffat,
Excellent. I have used c_str to convert ansistring for use with api calls, but it didn't even occur to me to convert the standard string to a c_string.
lol, that ROCKS!!!
Chi Happens
"When you know and respect your own inner nature, you know where you belong. You also know where...
std::string mybasic;
String myansi;
mybasic = "this";
for(int t=0;t<mybasic.length();t++)
myansi += mybasic.at(t);
Chi Happens
Chi Happens
"When you know and respect your own inner nature, you know where you belong. You also know where you don't...
ah, it's pretty simple to open a file and read the contents. not much to that algorithm. i think i'll let you figure that out on your own.
hint: use fstream
Chi Happens
Chi Happens
"When you know and respect your own inner nature, you know where you belong. You also know where you...
Kewl, let me know how it works out, or if you need some help.
Chi Happens
Chi Happens
"When you know and respect your own inner nature, you know where you belong. You also know where you don't belong" - Benjamin Hoff
try
#pragma resource "hammer.res"
Chi Happens
"When you know and respect your own inner nature, you know where you belong. You also know where you don't belong" - Benjamin Hoff
you should be able to use LoadImage to access the resouce images.
you need to have
#pragma resouce "filename.res"
at the top of the code (replace filename with the name of your resource file)
Then you can do this (if the bitmap within the resource is named BITMAP1, otherwise...
Sherak,
Well if I were creating a client-server flat-file database system, I would have the server application control the read/write operations. That way only ONE application is actually opening the file.
The client programs could send the data requests and updates through a port or the could...
CCLINT,
Right you can use NEW keyword to instatiate a COM object.
However, some COM objects do not recognize the new keyword and MUST be instatiated using the CreateObject method.
Since I am a contract programmer, I tend to use the lowest common denominator and create all my object using...
Jeezus I'm full of mistakes tonight.
Always remember, and never forget to delete your objects you create.
So when you type
Set objThis = CreateObject("whatever")
you need to type
Set objThis = Nothing
when you no longer need it.
Therefore, you need to include one last line...
One last thing...i made a typo:
The line that reads:
Dim CD as ADODB.Connection
Should say
Dim CN As ADODB.Connection.
Chi Happens
"When you know and respect your own inner nature, you know where you belong. You also know where you don't belong" - Benjamin Hoff
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.