Search:

Type: Posts; User: Vinterwolf

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,421

    Well...

    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
  2. Replies
    7
    Views
    1,421

    I remembered that I forgot!!

    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
  3. Replies
    12
    Views
    1,285

    Thanx!!

    *********************
    Thanks Barjor and Elad!!
    *********************
  4. Replies
    7
    Views
    1,421

    Sorry about my last post!!!

    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...
  5. Replies
    12
    Views
    1,285

    --------------------------------------------------...

    --------------------------------------------------------------
    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...
  6. Replies
    7
    Views
    1,421

    I am not totally sure!!!

    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 (...
  7. Replies
    12
    Views
    1,285

    Oh well...

    I have only one thing to say..
    vbworld forums, here I come....:p
  8. Replies
    12
    Views
    1,285

    Hmm Beginners, only Beginners

    Are everyone beginners at this board.. Isnīt there anyone who could help me with this problem???
  9. Replies
    12
    Views
    1,285

    Hmm...

    Hmm what can I say...
    This was not really what I was looking for... what ever it is
  10. Replies
    12
    Views
    1,285

    This!!

    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...
  11. Replies
    12
    Views
    1,285

    Hello!! need help with a problem plz!!

    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...
  12. Switch!!

    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;...
  13. Better to use a char array as a buffer!!

    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 =...
  14. Replies
    36
    Views
    4,127

    Thanx I understand..

    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
  15. Replies
    36
    Views
    4,127

    in the adventure class void Adventure::walking()...

    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();
    }
  16. Replies
    36
    Views
    4,127

    Something like this...

    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:
    ...
  17. Replies
    36
    Views
    4,127

    Thanx...

    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...
  18. Replies
    9
    Views
    2,041

    No book is perfect, but this one is close..

    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 :)
  19. Replies
    36
    Views
    4,127

    Hmm...

    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()
    {
    ...
  20. Replies
    36
    Views
    4,127

    I really apriciate..

    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...
  21. Replies
    36
    Views
    4,127

    Re: Ok...

    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(){}...
  22. Replies
    36
    Views
    4,127

    Ops..

    void setDamage(int d);
    Jumped wrong when I printed it here!!! and it lost a space, not in the real code though..
  23. Replies
    36
    Views
    4,127

    Thanx, but...

    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();...
  24. Hmm, somthing here maybe!!

    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...
  25. Replies
    36
    Views
    4,127

    I really donīt know..

    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...
Results 1 to 25 of 32
Page 1 of 2 1 2