Search:

Type: Posts; User: Ene Dene

Search: Search took 0.00 seconds.

  1. Ok, thank you both.

    Ok, thank you both.
  2. Multiple command line arguments with switches

    Is it possible to have more than just one type of command line arguments? What I mean by that is, for example: If I wanted to make a program that replaces words in some files, input in command line...
  3. Replies
    8
    Views
    1,823

    Thanks!

    Thanks!
  4. Replies
    8
    Views
    1,823

    lowest spacing between numbers

    I was woundering if there is some kind of function that returns what is the lowest posible spacing for some variable.
    For example, in Fortran you can use function "spacing". Lets say that a variable...
  5. Replies
    6
    Views
    1,291

    Thank you both.

    Thank you both.
  6. Replies
    6
    Views
    1,291

    new for 2D array

    Lets say that I want a dynamic 2D array, I would do it in following way:


    double (*koordinates)[3] = new double [number_of_points][3]

    where number_of_points variable is inputed while program...
  7. Replies
    2
    Views
    2,852

    next_permutation on 2D array

    If I want all permutations of 1D array I have:


    #include <iostream>
    #include <algorithm>

    using namespace std;

    main() {
    int arr[4]={1,2,3,4};
  8. Replies
    5
    Views
    2,123

    Thank you very much, this works! :)

    Thank you very much, this works! :)
  9. Replies
    5
    Views
    2,123

    Of course, vector is better, I said array for...

    Of course, vector is better, I said array for simplicity. I can't use a loop, becoase I don't know the basis of reading from files. I'm not asking for algoritam (although I would not mind :) ), just...
  10. Replies
    5
    Views
    2,123

    Reading numbers from txt file

    For example, this is a content of some txt file:
    0.2 0.3 0.1 1.6
    I'd like to load these numbers in some array and use them in a program. How do I do that?
  11. Thanks!

    Thanks!
  12. Of course that I didn't mean PI with infinite...

    Of course that I didn't mean PI with infinite number of digits (as I stated by "I know that computer calculated pi with much higher PRECISION, so how do I get, I don't know... 15 digits on the output...
  13. More digits in output, particular digits output, output in *.txt

    I've started programming 1 week ago and I use win32 console for an output.

    In program which calculates pi:
    Code:


    #include <iostream>
    #include <math.h>
    using namespace std;
Results 1 to 13 of 13