Search:

Type: Posts; User: Cockney

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,039

    Thx man :) I used casting as int x;...

    Thx man :)

    I used casting as

    int x;
    double approx_x;
    approx_x=double(x);

    Thanks :)
  2. Replies
    2
    Views
    1,039

    How do I use mathematical operators?

    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 :(
    ...
  3. Replies
    12
    Views
    1,951

    How can I implement power and square root to my...

    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...
  4. Replies
    12
    Views
    1,951

    Forget what i asked above i found the solution to...

    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...
  5. Replies
    12
    Views
    1,951

    hi again :) I want to know how can I make my...

    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...
  6. Replies
    12
    Views
    1,951

    Yeap it did work. All that time i wasn't setting...

    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...
  7. Replies
    12
    Views
    1,951

    Thanks a lot guys :) I think this might work...

    Thanks a lot guys :)

    I think this might work afterall I'll get back to you shortly.

    thanks
  8. Replies
    12
    Views
    1,951

    source code

    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...
  9. Replies
    12
    Views
    1,951

    I just want to count how many times a number of...

    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
  10. Replies
    12
    Views
    1,951

    Comparing a 2d Array (newbie)

    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...
Results 1 to 10 of 10