112 Posted Topics
Re: u are doing fine, as far as i can see, just declare test as static, next while passing a function u need not give &, and pass test like Class2::test in the callback funtion.... function | |
Re: your code is too long, better if u mark in ur code the problem area. | |
Re: when we write [CODE]while(x=x->next)[/CODE] what happens x starts pointing to what x->next was pointing after that it is checked wheather while(x) is a true conition , it is true if x is not pointing to null, this is how it traverse the list. | |
Re: strange and interesting question meena..!! C++ is bone of almost every structure, well wat i feel is these days c++ is mostly used for system level development. | |
Re: hope this can help. float bmiCalculator(float lbs,float ft) { return ((lbs * .454) /(ft * ft * .3046 * .3046 )) ; } | |
Re: u cant use a claas without declareing it, if u will try to use it will generate a compile time error "missing storage-class type spacifiers" however u can use a pointer of undeclareed class by giving a forward reference of undeclared class. this problem arise because when we try to … | |
Re: hi Low-thee-a i think u do not have complete image files required for your code to run, find them and copy them to your project folder then try building it again... and mejaour difference between console and window application is, windows application is a message driven application. | |
Re: Look at following code, ExtractNumbers has a out parameter that is int* ExtractedNumbers, this contains extracted numbers, and this function returns total number of numbers found in the string. i have tryied to keep code as simple as possible(sorry for not documenting it, due to lack of time), if u … | |
Re: i hope this can help u a little.... [CODE]#include<iostream> using namespace std ; class DynamecArray2D ; class DynamecArray2D { char **pArray ; public: DynamecArray2D() ; DynamecArray2D(int iRow, int iColumn) ; DynamecArray2D(DynamecArray2D &) ; //copy constructor ~DynamecArray2D() ; }; DynamecArray2D::DynamecArray2D() { pArray = NULL; } DynamecArray2D::DynamecArray2D(int iRow, int iColumn) { pArray … | |
Re: @Duke_0064 try with this code, hope your problem is solved. [CODE]// #include <iostream> #include <cstdlib> #include <cmath> #include <ctime> using namespace std; int main ( ) { unsigned int bestscore = 0xffffffff; int games = 0; int guess; int score = 0; char answer; srand (time (0)); do { score … | |
Re: its strange, amazing, how can u do this many syntactical erros?? well i m trying my best to correct your "checkDate" function.... | |
Re: hi please try with this code, if it can serve your perpose. hope u will not have any problem now.... [CODE]#include<iostream> using namespace std ; class Day{ private: int day,month,year;//Date bool schedule[9];//Hours 9am-6pm public: Day(int,int,int);//Constructor ~Day();//Destructor void setTime(int); bool checkTime(int); void display(); bool IfAnyTimeAvailable() { for(int i=0;i<9;++i) { if(!schedule[i]) { … |