- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
13 Posted Topics
I want to write a Tcp file transfer program , the problem is that when i send the file size and file name the client doesn't receive the as two separate packages but as a package witch contains both the file name , size and the file content. This is …
It because you didnt include the cout<<city in the while loop so just outputted the end portion.
I see that your function abc locks like a event , you add a event to a control this way <control name>.event += new new EventHandler(<event function>). In your case it would be: [CODE]b[i,j].Click += new EventHandler(abc);[/CODE]
You are getting an error because at line 36 and 48 you exit the bounds of your string.In Java an array starts at position 0 to array lenght-1 the string.lenght() returns the array size starting from position 1 thats why you are getting the error.You can easly solve this by …
"Head First Java" by Kathy Sierra and Kathy Sierra is a very good book.
In your if's you need to change it to if (ch == <vowel> || ch==<capital vowel>).The "||" operator means logical or.
Its because strcpy works like this strcpy(<destination>,<source>) you reversed the destination with source that's why it didn't work.
First program recursively calculates n to the power of x. Second program recursively calculates the number of digits of n.
When you add num%10 to sum you need to test if its a even number.A number is even if the number % 2 == 0 meaning that the remainder of the number divided by 2 is 0 since all even number are divisible by 2.
I do not understand what you wanted to do with this: [CODE]for ( int i=0;i<=size;i++){ if(array[i]==array[i].length-1) System.out.print("plindrom "); else System.out.print("not plindrom "); }[/CODE] You are just comparing the number stored in array[i] with the length of the array minus one.So just to be clear a number is a palindrom if …
You forgot to add the control to the forum,you add controls with the instruction this.Controls.Add(control here). This is the corect code : [CODE] Label[] labels = new Label[10]; for (int i = 0; i < 10; i++) { labels[i] = new Label(); labels[i].Text = "0"; labels[i].Location = new System.Drawing.Point(100, i …
You could split the string by the ';' caracter and if you found the '(' caracter it means that the name before it is a nickname and the name until the ')' caracter is a email.
The End.
predator5047