- Upvotes Received
- 4
- Posts with Upvotes
- 3
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
15 Posted Topics
[code] main() { double **vals = NULL; function(vals); } [/code] prototype : [code] //some other dll void function(const double**); [/code] it gives me error : cannot convert double ** to const double **. and yes i dont want to put extra burden on the user side(in main function) to const …
look it depends on the kind of polynomial and the coeff u r taking.. ax2+bx+c=0 will be increasing function for most value of x if a, b and c are all positive. so you will never get its value less than 0 for most values of x and f(x) will …
[QUOTE=illIAm;1175592]Hi have done the whole program but now am stuck at what initially seemed like a simple thing a repitation loop the program is supposed to ask the user if he/ she wants to continue with adding more data - if no exit and continue with the other stuff. [CODE]char …
use rand() function to generate the the index of the Srting array and get that string..
log file is for the sake of ur convinence .. it helps u figure out where actually u r doing wrong.. one cant waste his/her time investigetting the whole code in case the program is tooo large to figure out his mistake. looking at the log file it is easy …
didnt see you logic but i guess here is the problem while(i!='\0') while(j!='\0') it should have been str[i] and atr[j] insteed
Q > why "*p_updates" is needed when you already have "updates' since aren't they the same thing (same value). Ans : yes they r same , this program demonstrate u how may ways u can access the value.. now if u have some variable say int a = 5; what …
when u start doing any project in VS u have specify what kind of project u r going to do. so if you want to make a DLL ther is an option to do that.. only extra thing u need to do in your code is exporting the symbols which …
you are makin the object of derived class (car) using base class(vehicle) pointer.. thats correct.. but there should be a pure virtual funtion showType or show in base class which should be overridden in every derived class. now when u call the show function it will autometically call ur derived …
look there are 3 ways a function can be written first the declaration or prototype eg return type function(data type identifier); this is generally used as forward declaration. [code] int function(int a,......); [/code] second actuall definition of function [code] int function(int a,float b) { .. .. .. } [/code] third …
you want to separate string "12345" to int 1 2 3 4 5 right? try this [code] string numStr = "12345"; // this is ur input; int num = atoi(numStr.c_str()); int seperatedNum; while(num > 0) { seperatedNum = num%10; // ptint or stroe seperatedNum whatevr u want seperatedNum = num/10; …
u r coding in c++.. thare is standard string template class.. try [code] string temp; string finalstring; int a = 65; char buff[5]; temp = itoa(a,buff,10); //calcualte the length of temp and append 0 or what ever u want like temp.length() ; //will give u length of string; finalstring.append(temp); finalstring.append("0");//u …
hi guys, i found this site very usefull... thanks every one for their support
Try this [code] #include<iostream> #include<map> using namespace std; typedef void (*pt2Function)(void); void hello(void){ cout << "hello world\n"; } int main() { void (*myPointer)(void) = NULL; myPointer = &hello; // then map <char *,pt2Function> tempMap; tempMap["hello"] = myPointer; . . . return 0; } [/code] you can access map using itterator; …
if i pass vectors of vector by reference then internal vectors also get passed by reference? eg function (vector<vector <int> > &a);
The End.
kunal kislay