Search:

Type: Posts; User: fero45

Search: Search took 0.01 seconds.

  1. Thread: Not decimal

    by fero45
    Replies
    3
    Views
    869

    Not decimal

    Hello!

    Can I work with less numbers than ten? For example 5 numbers (2, 4, 6, 7, 8) where the lowest five-digit number, using all the selected numbers, would be 24678. If I increased this number,...
  2. Replies
    4
    Views
    2,176

    Factorial

    Thanks for the solutions. Is it possible to get a solution so I don't have to specify in advance the number of elements in the array.
    Fero
  3. Replies
    4
    Views
    2,176

    Combinations with factorial

    Would somebody help me with this.

    Let's take 4! (4 times 3 times 2 times 1 time = 24). This is easy to do but I want to have all 24 combinations on the screen.

    Thanks
  4. Thread: Sorting arrays

    by fero45
    Replies
    3
    Views
    1,243

    oleHl - Hello

    This should solve the problem of a word of any length.
    #include <iostream>
    #include <stdlib.h>
    using namespace std;

    void main() {
    char word[10];
    int numbers[10];
    int i, length, a=1, b;
  5. Thread: Sorting arrays

    by fero45
    Replies
    3
    Views
    1,243

    oleHl - Hello

    This should solve the problem of a word of any length.
    #include <iostream>
    #include <stdlib.h>
    using namespace std;

    void main() {
    char word[10];
    int numbers[10];
    int i, length, a=1, b;
  6. Replies
    2
    Views
    2,050

    Yes, array of pointers

    Thanks for the reply.

    I think it is the best way. Unfortunately I have to specify the number of pointers in advance and if I happen to have a very large sentence, this will not work.

    I wish C++...
  7. Replies
    4
    Views
    1,922

    Arrays of pointers to strings

    Yes, you can have pointers to strings and put tghem in an array.
  8. Replies
    2
    Views
    2,050

    How to randomize words in a char array?

    Hi,
    I have a char array, eg.

    char sentence[100] = "They would come on time if you told them";

    How can I pick up individual words and display them in different order? Will this work if I have...
Results 1 to 8 of 8