How can I add an integer value to the end of a string? Is there a way to convert the integer to a string and then add it on?
Example:
// using free Borland C++ Compiler v5.5
// using...
Type: Posts; User: Kyoto Oshiro
How can I add an integer value to the end of a string? Is there a way to convert the integer to a string and then add it on?
Example:
// using free Borland C++ Compiler v5.5
// using...
Works like a charm, thanks a bunch!
What does the system(); command take as an argument? I tried string, but that doesn't exactly work. An array maybe?
Well, here is how it went.
I did in fact save the File Recovery program to the same drive I was trying to restore...um...oops. So, I will move it and try again.
I don't know if it still applies,...
Well, I had done a brief search before but I will go more in depth now.
Anyways, currently I am trying a file recovery program from download.com, and it seems to be working okay. I used FAT32 to...
I didn't know where else to turn. I reformatted C: after thinking I had backed up the important files to a CD. However, the CD keeps giving me errors and the files come off it empty. So, is there a...
I know Sebastiani, but I was just wondering if I could do it this other way, instead of multithreading.
Thanks.
I was just wondering, for doing two things at once, if the following was possible...
while (doing something)
do something else
I was thinking like running a function in the ( ) of the...
How would this be done? Also, what is 'Alt', if I was to compare it to a value (likely the user input).
if (Userinput == 'Alt')
{
// Bla
}
Thanks, that was the code I was looking for.
Okay, I want to be able to do two or more things at once, and so far all I could find on the topic was multiprocessing. The problem is, I don't know how the heck to do this.
The easiest example of...
Hi!
Thanks for the comments. deleeuw, I am happy you like the game. "No bells and whistles" is my middle name :) As for the Readme, it is right on the main menu, option number 3. When you choose it,...
http://www.angelfire.com/empire/mightyant/hive.html
Please try out this latest program I was working on. You take control of an Ant Hive, and try to achieve various goals. I thought it was pretty...
Okay, that sounds like a good idea. I will try that Innosetup out, thanks for the link.
Okay, sorry to ask another question (at the time of writing this I had just posted), but anyhow.
I was just starting to have one of my games create all of its files in a folder. Now, is there a way...
Great, thanks tons. That will help me out alot.
How would I get the square root in C++, do I have to use a function or something? I am using it for A*A + B*B = C*C, but I want to square root C so it is just C (this is the Pythagoreum Therom if I...
Smashing, that would be the bee's knees! I look forward to your arrival, my friend.
Yes, I will be your friend. Let us indulge in cookies, milk, and a rousing game of Scrabble!
Um...I thought the whole idea of posting the character was so I could see if it went along with the stats and was thus a comparable arguement concerning the Dragon. Level 300 sort of defeats the...
Post the Character.hcs and we will see if the statistics follow what a Level 500 character would have. If they don't, then a comparision cannot be made when fighting the Dragon.
I have poor logic skills and making people feel bad makes me feel better about myself.
Everyone else, I think maybe it is because the planet's are aligned, or because NWN and Warcraft 3 came out...
You must put an <<endl; after each line in the saving part. Otherwise it will output a line of variables (so yourHP and enemyHP will mould together). You don't need to put any endl's when loading the...
Courtney Cox used to be hot, now she is a skinny wisp of a lady. Jennifer Aniston is pretty hot, but overall I would have to say the model Josie Maran. Even though that wasn't an option, and no one...
You use getline so that they can enter spaces into the filename. Below is an example of how it could be implemented.
char Filename[50];
cout<< "Enter filename: ";
cin.getline(Filename, 50);
...