Search:

Type: Posts; User: LAURENT*

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    573

    thank you, this was just what I needed.

    thank you, this was just what I needed.
  2. Replies
    15
    Views
    3,304

    const int itemNumber = 8; cin >>...

    const int itemNumber = 8;

    cin >> quantity[itemNumber

    What you're telling the computer to do is access the 9 th element of the array, but the array only has 8 members. Array start their count at...
  3. Replies
    3
    Views
    573

    Abstract base class

    Hello, I want to use abstract base classes in my code but I'm having trouble doing this. I keep getting an error that say my derive constructor already has a body. I need to initialize the variables...
  4. Replies
    15
    Views
    3,304

    Why didn't you define the quantity elements like...

    Why didn't you define the quantity elements like you did the price? Also weren't they arrays? You're not specifying which element in the arrays your multiplying.
  5. Replies
    19
    Views
    1,855

    Well personally the 2 main things I use are...

    Well personally the 2 main things I use are struts and classes. I know their pretty much the same but I like use them for conceptual naming convinces.
  6. Replies
    2
    Views
    548

    Class each object

    I want to have a class for each enemy in my game but I do not want to create an array of pointers for each enemy class to spawn them. How can I use only one class to use multiple classes?
  7. Replies
    8
    Views
    874

    Yeah, you should upgrade. Nobody uses that...

    Yeah, you should upgrade. Nobody uses that anymore. I think you should try to learn c++ directly and use this site's tutorial to cover the basics of c++.

    I highly recommend not practicing...
  8. Replies
    13
    Views
    2,262

    It's int to a string. meh, I tried kinda..... I...

    It's int to a string. meh, I tried kinda..... I was a bit too quick and dirty with this.
  9. Replies
    13
    Views
    2,262

    Like this. The functions only goes up to the...

    Like this. The functions only goes up to the hundreds because that's all I need for now. If I needed to go higher, all I would need to do is add a bit more to the function and Walla, I can convert...
  10. Replies
    13
    Views
    2,262

    Too late, I already coded up the function and it...

    Too late, I already coded up the function and it works..... well only up to the hundreds digits, can't go pass thousand. I only need to convert every number between zero and twohundred. I'll don't...
  11. Replies
    13
    Views
    2,262

    blaaaaaaa...... I don't want to upgrade yet, I...

    blaaaaaaa......

    I don't want to upgrade yet, I suppose it wouldn't be too hard to write a string reading function that uses number scale logic. All I would need to do is add the number the string...
  12. Replies
    13
    Views
    2,262

    I don't think I have this, but I really don't...

    I don't think I have this, but I really don't know c++11 is either. If it helps I use visual studios 2010
  13. Replies
    13
    Views
    2,262

    Convert int to string

    I need to convert an int to a string. I'm not sure how to do this. I was thinking to just print a string base on value of a int variable but I knew there was a better way...... I hope.

    Any tips?
  14. Replies
    2
    Views
    1,172

    Sonic Character popularity poll

    Vote for this thing below please
    http://vignette3.wikia.nocookie.net/archiecomicssonicfanon/images/b/be/Blaze235345.png/revision/latest?cb=20120713210026


    SEGA Blog | The Sonic Showdown heats up!
  15. Replies
    2
    Views
    822

    Writing to a file and skipping line

    I know how to skip lines whiles reading from a file but I don't know how to skip during the writing. Can lines in a file be skipped while writing to them or would I need to rewrite exactly what I...
  16. Replies
    3
    Views
    804

    I just noticed the real problem. It was a problem...

    I just noticed the real problem. It was a problem with a function argument. Apparently I wrote something like this.



    Void function (Class *square)
    {
    //Stuff goes here
    }
    Instead of
  17. Replies
    3
    Views
    804

    Can a pointer to a class be null?

    I want some of my pointer to point to NULL but I'm not sure if this is possible. Does anyone know how I can define a pointer to NULL? I kept getting this error somewhere else in my code when I...
  18. Replies
    3
    Views
    557

    All of the art is mines. During my high school...

    All of the art is mines. During my high school days I was artist but that craft started to bore me.


    Nope, not giving those away. I made an exception with the resources thought.
  19. Replies
    3
    Views
    557

    Game in Progress Demonstration

    Hi.

    I've been making a game but school isn't starting now. I decided to show what I got.

    INSTRUCTIONS
    Step 1: open prototype file
    Step 2: open second prototype file
    Step 3: Open...
  20. Replies
    6
    Views
    818

    One last question before more testing. I...

    One last question before more testing.

    I heard virtual function might be a bit slow, is there anyway to tell the compiler to only check for certain functions. Only groups of virtual functions...
  21. Replies
    6
    Views
    818

    Do you define virtual functions in the base class...

    Do you define virtual functions in the base class or simply just declare them and let it be defined in the derive class?
  22. Replies
    6
    Views
    818

    How to select the right derive class

    I plan to create a base class for multiple similar classes to derive from it. What I'm trying to do is have multiple playable characters but I don't know how to approach this in c++.

    Here is a...
  23. Replies
    9
    Views
    1,135

    The goal was to replace the dynamic array with a...

    The goal was to replace the dynamic array with a vector and to create a vector of class objects. This statement below is the sole cause of me wanting to use a vector with the belief I'll get the...
  24. Replies
    9
    Views
    1,135

    I don't think I'm trying to do polymorphism....

    I don't think I'm trying to do polymorphism. Aren't dynamic arrays suppose to be similar to vectors? Well I had a problem a while ago with a dynamic array only applying the results of a conditional...
  25. Replies
    9
    Views
    1,135

    The proper way to do a vector of objects

    I've been really busy but managed to get in enough down time to learn somewhat decent info about vectors. Anyways originally my program created a dynamic array of pointers to class objects and I came...
Results 1 to 25 of 69
Page 1 of 3 1 2 3