Search:

Type: Posts; User: kdun

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,017

    files fstream function iin c++

    i have the following code and im trying the following: i need to clear the file data and insert data in the cleared file on the other hand i need to read the file information the following is the...
  2. these are erros that im facing and could not...

    these are erros that im facing and could not correct
  3. im trying to pass an object to an inherited class

    im trying to pass an object to an inherited clas by a construcotr however im facing some probelms can someone tell me what im doing wrong. im HAving Cboard my board and i need to pass it to the...
  4. Replies
    10
    Views
    1,812

    im trying to make this but its not working ...

    im trying to make this but its not working


    col= board[1][1]->getcolor;

    char Cponn::getcolor(){ return col;
    }
  5. Replies
    10
    Views
    1,812

    i need to pass it so that i could read the info...

    i need to pass it so that i could read the info of the board if i dont pass it it is all null
  6. Replies
    10
    Views
    1,812

    i need to pass it as a pointer

    i need to pass it as a pointer
  7. Replies
    10
    Views
    1,812

    i need to pass board to function validate what i...

    i need to pass board to function validate what i need to do
  8. Replies
    10
    Views
    1,812

    trying to pass an array of object

    im trying to pass an array of objects however i m finding some problems. any help is much appriciated thanks
    pieces.h

    class Cpiece{
    public:

    Cpiece* board[8][8];// array of objects...
  9. Replies
    3
    Views
    1,008

    Cboard::Cboard(){ for (int i = 0; i < 8; ++i) {...

    Cboard::Cboard(){ for (int i = 0; i < 8; ++i) {
    for (int j = 0; j < 8; ++j) {
    (*ppiece).board[i][j] = NULL;
    }
    }
    for (int j = 0; j < 8; ++j) {
    (*ppiece).board[1][j] = new Cponn;...
  10. Replies
    3
    Views
    1,008

    attaching a char to each object

    hi im trying to make a game in c++,i have an array of object however i m facing a problem to see which player is playing. i need to attach a value to each object such as 'w' can some tell me what...
  11. Replies
    7
    Views
    1,267

    need to pass an object as a pointer in function

    im new to c++ and i need to pass myboard.board (board is in the class Cboard and it is an array of int) to a function in a class called piece however this is troubling . i need to pass it as pointer...
  12. if using the following to set the new values of...

    if using the following to set the new values of the array

    board[old1][old]= 0;
    board[new2][new1] = 2;
    however the previous values remain there
  13. i need to set values in the array and then get...

    i need to set values in the array and then get those values
  14. class Cboard{ private : int i,j; int...

    class Cboard{


    private :
    int i,j;
    int ans,mod;
    int name;


    char locations[5];
  15. ok im trying to change the content of the array....

    ok im trying to change the content of the array. i first made a constructor setting my first values however i need to change then during program execution however i cant make this . the porgram is...
  16. Problems when trying to change values in an array

    im trying to change the values of my array which is filled first by a constructor now i need to change this values however i cant can someone tell me what i doing wrong
    board cpp
    ...
  17. Thread: trying to inherit

    by kdun
    Replies
    2
    Views
    848

    trying to inherit

    hi, im trying to inherit from class but the same error is appearing

    1>c:\users\kthdu_000\documents\visual studio 2010\projects\rectangle\rectangle1\crectangle.h(1): error C2011: 'Crectangle' :...
  18. Thread: question

    by kdun
    Replies
    5
    Views
    961

    so taht if i enter 56 % the percentage sign is...

    so taht if i enter 56 % the percentage sign is stored or removed ?
  19. Thread: question

    by kdun
    Replies
    5
    Views
    961

    question

    scanf(“%f%%”, &percent);

    what is the %% used for ?
  20. Replies
    2
    Views
    721

    linked list problem

    im making this linked (code above) and i need that when the information (country) is the same as the previous information the linked list update only the count and the information is not stored...
  21. Thread: intialising

    by kdun
    Replies
    9
    Views
    1,165

    i made this code to make it in alphabetiucal...

    i made this code to make it in alphabetiucal order howerver the count is not updating
  22. Thread: intialising

    by kdun
    Replies
    9
    Views
    1,165

    thanks alot can you help me in another pronblem i...

    thanks alot can you help me in another pronblem i need to arrange my code. that when the info is stored in a alphabetical in the linked list and when the info is the same only the counter will be...
  23. Thread: intialising

    by kdun
    Replies
    9
    Views
    1,165

    i did this howvere the count is not intilisied ...

    i did this howvere the count is not intilisied


    void insertitem(ListNode **startPtr,booking_type* bookings){
    ListNode listNode = {"", "", 0, NULL};
    int ans=0;
    ListNode *prevNode =NULL...
  24. Thread: intialising

    by kdun
    Replies
    9
    Views
    1,165

    what is the x used for

    what is the x used for
  25. Thread: intialising

    by kdun
    Replies
    9
    Views
    1,165

    intialising

    i'm working with this struct and i need to intialise the count to 0 what should i do


    typedef struct listNode{

    char data[100];
    char save [100];
    int count;
    struct listNode *nextPtr;...
Results 1 to 25 of 39
Page 1 of 2 1 2