Well part of it is correct anyways, not bad I think...
I have a habit of quickly reading trough messages, so I usually end up doing something like this...Bummer:p
Type: Posts; User: Vinterwolf
Well part of it is correct anyways, not bad I think...
I have a habit of quickly reading trough messages, so I usually end up doing something like this...Bummer:p
I forgot the code tags!!
#include <iostream>
using namespace std;
int main()
{
const int uc_start = 65; // upper case chars starts at this (int) value
*********************
Thanks Barjor and Elad!!
*********************
Most things that gets into my mind the first time usually donīt work, so here is some code that actually works!!
Eaven though it may not be the best example..
#include <iostream>
using...
--------------------------------------------------------------
Sorry about that, but I am fairly new to the language...
and I have no patience..
*About my description of what I wanted, as I see...
I have not tried this myself, but in my mind this would work...
Otherwise we will see some complaints below wont we!!
something like this...
for (i = 0;textArray[i] != '\0';i++)
{
if (...
I have only one thing to say..
vbworld forums, here I come....:p
Are everyone beginners at this board.. Isnīt there anyone who could help me with this problem???
Hmm what can I say...
This was not really what I was looking for... what ever it is
The part that is letting the user, edit the text that is stored in the textBuffer[] array, after they have done this I will save it to the file, that they shoosed to edit, and the text in that file...
I hope that someone can help me with this.
Lets say that I want to let the user of a program edit the text in a file..
Then of course he must be able to print text, and remove text.
I dont...
Please use a switch case, I really seeing so many if statements..
Switch (choice)
{
case 1:
cout << "Something" << endl;
break;
case 2:
cout << "Something" << endl;...
I think that it would be better to take the whole file content, and put it in a char array buffer..
Then you can search the array, as you like, may be something like this:
const int tb_size =...
Thanks, It was really nice of you taking the time to show me how to do this. I am rather sure that I will have more questions soon though, I really dont get far in my coding before they come
:D
in the adventure class
void Adventure::walking()
{
// I need to have an object of character
Character c;
int x,y;
x = c.getXcoord();
y = c.getYcoord();
}
Ok, I am a bit confused myselfe for the moment on what I am doing, because I am testing what can be done, and what canīt, and what the best way of doing what I am doing is, but This is the problem:
...
Yes I think I got it now Thanx, though I have a nother question, they never stop comming do they :D
Im trying to do this project that Im working on with classes and everything that comes with...
You are so right, this is absolutely a book you should consider buying if you want to get a good start in how to program C++.
But be sure to get the newest one :)
Sorry, for I didnt really understand what you meant. I will try to explain what I want to do again, and maybe you could help me with it.
I have a function:
void Monster::createMonster()
{
...
Nice of you taking the time to write code and explaining it to me Thanx, I have another problem though with my array of objects.
ex.
const int size = 5;
Monster monsterArray[sise];
I declare...
Im really tankful about your offer, but I fixed it, thanx for all the information though.
It was the Constructor, and Destructor that was wrong...
Donīt know why they hade to be:
Monster(){}...
void setDamage(int d);
Jumped wrong when I printed it here!!! and it lost a space, not in the real code though..
Here I will print the header, but all the variables and methods should be ok, for if I dont use the array of objects it compiles without a problem..
class Monster
{
public:
Monster();...
In your main() function you have a line that starts with 'end' that should be endl, and in your switch, you havent got a break; after default: I dont know if it have to be that but I know that you...
I have tested some more, and I made a temp.cpp file
I included the Monster.h file, and added the Monster.cpp file to the project.
In the temp.cpp file I made a function called createMonster(), in...