Hello
I am using Microsoft Visual C# 2010 Express and a Form that i use to design disappears, so I can not continue designing in it, when I double click Form3.cs, the Fom3.cs [Design] appears blank, anyone can tell me, how to fix this problem, Thanks"
User Profile
Collapse
-
A design form disappears
-
Thanks Falkeli for everything, you helped me a lot, thanks again -
Compare 4 arrays for equality
Hello C++, C Sharp
Is there anybody can tell me if this condition is correct to compare 4 arrays for equality:
if (A != B || B != C || C != D)
return false;
Thanks -
Thanks Rabbit, i will try it that.
My requirement are:
1) Using 5 for() loops to output the first string array.
2) Using another 5 for() loops to output the second string array.
3) When they are recorded into different int[,] arrays, check if there are equal rows between both array.Leave a comment:
-
Hello Rabbit,
I need 5 for() loops because i want to output all possibles combinations creating a matrix of size (rows x 5 columns)from each string arrays.
In your second question, if you scroll the horizontal scrollbar or expand the text you will see the number 20.Leave a comment:
-
Hello Rabbit,
The output that i try to create is:
1) Print a first string array using 5 for() loops
2) Print a second string array using 5 for() loops
3) Print the equals rows between both arrays
Data:
...Code:string[] firstArray = { "3", "5", "8", "14", "17", "18", "20", "21", "23", "25", "26", "27",Leave a comment:
-
...Code:This is the code: // Print string[] firstArray. for (int i = 0; i < firstArray.Length - 4; i++) { for (int j = i + 1; j < firstArray.Length - 3; j++) { for (int k = j + 1; k < firstArray.Length - 2; k++) { for (int l = k + 1; l < firstArray.Length - 1; l++)Leave a comment:
-
Thanks Rabbit for being interested in helping me, well the question i posted is because i created a program that does the following:
1) Print a first string array using 5 for() loops
2) Print a second string array using 5 for() loops
3) Print the equals rows between both arrays
The program runs fine, but its running time is about 8 minutes, is for this reason i posted my question to get a way to save running...Leave a comment:
-
Printing combinations
Hello: C Sharp, C++
My question is:
Is it possible to print two string arrays with different lengths inside of the same for()loops, i tried to do, but so far without any positive result. Thanks -
How to record a string from a label to an array string
Hello, I just i would like to know how to record a string from a label to an array string, if anybody can show me an example, thanks.
?
string[] stringArray = labelone.Text -
Hi donbock, thanks for your question.
What I want is the set of 5 numbers entered by the user be appended to the beginning of the array and therefore this is going to change the array dimension from [5][5] to [6][5]
Tell me if I wrong, because the size of the array is going to change is desirable the user determine at runtime the size of the array. To accomplish this I need to declare the array using dynamic memory allocation,...Leave a comment:
-
Is there anybody can help me out to understand what is wrong in my program. ThanksLeave a comment:
-
I am not sure if you understood my problem. This is my output from the last code:
ROWS (0) (1) (2) (3) (4)
-----------------------------------------------------
0) 2 13 23 45 50
1) 5 12 34 36 51
...Leave a comment:
-
Hi whodgson, I think I did what you told me and it works, but not the way I want because the five numbers I entered replaced the first row of the array data and what I want is add it to the array data. This is what I got so far:
...Code:#include <iostream> #include <iomanip> const int rows=5; const int columns=5; using namespace std; void printHeading(); int main()
Leave a comment:
-
array inside an array in C++
Hi, what I am trying to do in this program is to save the numbers enter by the user into the array data but with any positive result. This is what I got so far. Thanks for any help.
...Code:#include <iostream> #include <iomanip> using namespace std; void printHeading(); int main() { cout<<endl; char choice; int rows=5; -
Hi Junjie
The program works Thanks
Can you explain a little bit how the for loops works, once again Thanks...Leave a comment:
-
Hi
Is there somebody can help me with my program of how to create combinations numbers without repeating in C++ using iteration (loops), not a recursive function. ThanksLeave a comment:
-
Hi donbock
This is not an assignment. I have 6 months learning C++ by myself
This is what I have created so far:
...Code:#include <iostream> #include <iomanip> using namespace std; int main() { int x=0 ; int array[10]; cout<<"\n Enter 10 numbers differents: "; for(int i=0; i<10; i++) {Leave a comment:
-
Hi newb16
I appreciate you are trying to help me but I do not get what you reply me can you give me an example in c++. Thanks...Leave a comment:
-
Hi donbock
This is the formula for combination:
c = n!/(r! * (n - r)!)
c = 10!/(5! * (10 - 5)!)
c = 252 COMBINATIONS WITHOUT REPETITION
I think I do not need to use the formula for permutation. Thanks...Leave a comment:
No activity results to display
Show More
Leave a comment: