Search:

Type: Posts; User: fallenangel

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,192

    Even that is proving difficult for me..numerous...

    Even that is proving difficult for me..numerous errors
  2. Replies
    20
    Views
    3,106

    Yip,thats fair enough

    Yip,thats fair enough
  3. Replies
    20
    Views
    3,106

    I love bad ideas:biggrin:

    I love bad ideas:biggrin:
  4. Replies
    20
    Views
    3,106

    Easily frustrated I guess So on my orginal code...

    Easily frustrated I guess
    So on my orginal code if I were to replace the key word Cash with
    int *ptr;
    ptr = new int;
    *ptr = 100;
    so would replacing cash with *ptr work?
  5. Replies
    20
    Views
    3,106

    Ack I give up,I just don't know enough about...

    Ack I give up,I just don't know enough about class's and setters and getters.Gonna try and re-write my orginal code using dynamic memory
  6. Replies
    20
    Views
    3,106

    Ya I know I'm just not that familiar with...

    Ya I know I'm just not that familiar with classes,I find it easier it just write the program in one big main even though that completely backwards.
    Anyway I'm having problems with my for loop now...
  7. Replies
    20
    Views
    3,106

    Fixed it int cash = 100 should be just cash...

    Fixed it
    int cash = 100 should be just cash =100;
    and my cout should read
    cout << "You have " << ob.getCash() << " to spend. \n \n" ;
    Silly mistakes really....can't wait to make some ore in the...
  8. Replies
    20
    Views
    3,106

    So I started off it very basic,just trying to...

    So I started off it very basic,just trying to output my cash value in my main.cpp.I know I'm doing something very stupid below but I'm not sure.


    #ifndef RACE_H
    #define RACE_H

    class race
    {
    ...
  9. Replies
    20
    Views
    3,106

    Well I'm meant to do is write a program using OOP...

    Well I'm meant to do is write a program using OOP principles and dynamic
    memory allocation.I thought it would be easier to write the program first,then bring in classes and then use memort...
  10. Replies
    20
    Views
    3,106

    Changing from basic to class structure

    Basically I did some code for betting on horses here
    here the header with the function prototypes


    int assignOdds (int horse) ; // function to assign odds
    int whichHorseToBetOn (void) ; //...
  11. Replies
    2
    Views
    889

    Ya your right in your assumption #include...

    Ya your right in your assumption


    #include <stdio.h>
    #include <math.h>

    int total;
    int numbers;
    int calculate(x,y);
    int amount;
  12. Replies
    2
    Views
    889

    Simple program

    Hey guys just trying to write a simple program where I ask the user to in 2 number.
    So if the user puts the 8 first and then let say 2
    i print back the result 1 and 7,2 and 6,3 and 5,basically what...
Results 1 to 12 of 12