Thx man :)
I used casting as
int x;
double approx_x;
approx_x=double(x);
Thanks :)
Type: Posts; User: Cockney
Thx man :)
I used casting as
int x;
double approx_x;
approx_x=double(x);
Thanks :)
I want to use math functions as pow and sqrt.
When i try to do that (including math.h) I get an error msg saying that these operator are double and i'm performing a calculation with integers :(
...
How can I implement power and square root to my program? provided that i include math.h?
I did it like this
double pow(double x,double y);
double sqrt(double z);
but when compiling i got...
Forget what i asked above i found the solution to that :)
New question :
How can find the summation of the contents of an array ?
I have a axb array and its contents are numbers ,how can i add...
hi again :)
I want to know how can I make my program to run with flags under windows?
example: prog [-h] [-run]
-h help flag
-run run prog flag
I know how I can do that to linux systems...
Yeap it did work. All that time i wasn't setting the counterarray to zero in the beggining of the program :)
Thanks a lot you guys :)
You know how it goes now that i solved that problem a new...
Thanks a lot guys :)
I think this might work afterall I'll get back to you shortly.
thanks
This is what i have done so far but does not work i don't get values of counterarray[m] :(
#include <iostream.h>
main()
{
int i,m;
int j;
int array[4][2]={{1,2},{2,4},{3,6},{4,8}};
const int...
I just want to count how many times a number of the array occurs. I do not want to add 1 to the number in the array. I just want to o........ the occurences of the contents of the array.
Thanks
Hi all,
I am new to this world :)
I want to make a simple program that will compare the contents of a 2d array. Let's say array[a][b] have some integers in it. All I want to do is to make a...