Daved, I think I know why something was wrong...
It must have had to do with you prefixing std:: before the string declaration and before the string::npos and the cout...because that's the only...
Type: Posts; User: Athildur
Daved, I think I know why something was wrong...
It must have had to do with you prefixing std:: before the string declaration and before the string::npos and the cout...because that's the only...
Hrm, how strange...well, I will just have to tinker with it until it comes out right for me :-P.
Thank you for your help, you've made life a lot easier for me :).
actually, I have news.
I decided I was being utterly silly...I actually made my own code more efficient! :P.
You can remember the following code and it's cousin for the other colors, right?
...
Update:
Erm...ok, so Dev-C++ has a debugger...I couldn't tell you what it told me because It's just a heap of confusing mumbo-jumbo to me...
this is what I got:
Starting Program: (address)...
Update2:
Just added the same cout line for all color testers. They all output.
One slight problem (duh): The code I implemented makes it so that the .find loops don't actually count the amount of...
Update:
Okay, so I just did this one simple thing to test:
I entered 'Lantern' as a name, then 'W' as cost.
For the code, I updated it with a simple cout line after the 'W' counting loop, and...
Erm, I entered Spiritmonger the first time, for the Spellname.
The other times, I just gave it some random letters out of frustration :-p. Like xy, fh, or things like that.
Oh, the cout thing...
The cin line at the query for a casting cost stores the string given as the string CastingCost, which is then used for the '.find' lines.
I have tried to enter several mana costs, such as:
3BG...
Hello again.
So far, my ventures have been productive, also thanks to some excellent support I got here. My thanks for that :).
Now, however, I have a new problem >.<.
Since I am planning on...
Alright, I'll have a check on that. Thanks for the link :).
Okay, I see what you mean now, Salem.
But that's not what I was aiming for. I mean, my program outputs text into a file, but I want it to output pictures into the same file as well.
So far,...
I've never tried...I'm not that much of a wiz -_-
But thank you. I'll get it to work now that I know I can...
wiiire: How would I go about doing that? (loop via pointer, checking chars)
higher level library?
Thanks for your suggestions :).
Salem: Ah, thank you. I think I saw those wandering around...
Hiya, sorry for posting *again*, but the previous topic title was full >.<
I want to know, is it possible for me to either:
- Output an image to a file in between text outputs (I suppose this...
Okay, once again I am in need of some help. Nothing critical, but I'm trying to puzzle together small programs to make my life easier :P. Any help or comment would be very much appreciated :).
...
Not that I'd understand what prog-bman is saying, so if he's fixed it all, never mind me, but:
Is there reasoning behind putting the new value into a different file?
The 'main problem' I'd...
Okay, I may be a total noob here, but nonetheless:
To use it in a single function, you'd have to do the following:
Assuming your Addmember function is triggered when you enter a '1' when you...
UPDATE
Oh my gosh, I am so sorry for bothering you people with my stupid problems.
I fixed the problem.
Thank you to indigo for giving me the int y = 0 and int z = 0 ideas :).
My current...
Edit: Check the first post for an updated status. This is how most of my programming experiences have fared, by the way...I solve one problem and get two in return -_-'.
I2u: Thanks for your...
NEW UPDATE - I've got the code working now. Check the latest post. Thanks to everyone for your help. I'm sorry to have bothered you with my ignorance -_-'.
Okay, small update...the new code I have...