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,...
Type: Posts; User: fero45
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,...
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
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
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;
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;
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++...
Yes, you can have pointers to strings and put tghem in an 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...