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...
Type: Posts; User: kdun
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...
these are erros that im facing and could not correct
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...
im trying to make this but its not working
col= board[1][1]->getcolor;
char Cponn::getcolor(){ return col;
}
i need to pass it so that i could read the info of the board if i dont pass it it is all null
i need to pass it as a pointer
i need to pass board to function validate what i need to do
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...
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;...
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...
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...
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
i need to set values in the array and then get those values
class Cboard{
private :
int i,j;
int ans,mod;
int name;
char locations[5];
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...
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
...
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' :...
so taht if i enter 56 % the percentage sign is stored or removed ?
scanf(“%f%%”, &percent);
what is the %% used for ?
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...
i made this code to make it in alphabetiucal order howerver the count is not updating
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...
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...
what is the x used for
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;...