- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 3
- Posts with Downvotes
- 1
- Downvoting Members
- 3
18 Posted Topics
I am trying to implement Connect 4 game using Min-Max as utility to find best possible move.<br><br> The game is played on a 6x7 grid, with six rows and seven columns. . The two players take turns placing pieces on the board: the red player can only place red pieces, … | |
I am trying to execute the query on server side and send the result to the client but at the time of returning the value to the client the error occurs Am trying to achieve this using RPC Protocol but i could not find out how to send back the … | |
Here is the simple program for addition when running in tasm it gives some garbage value and I cannot figure out what is the error hi Please any help will be apperetated Thank you .model small .data opr1 dw 1234h opr2 dw 0100h result dw 001 dup(?),'$' .code mov ax,@data … | |
I having trouble with this query it is executing quit well but I cannot make out how is this select statement working. Any help or explaination on this problem will be appereciated .. thank you select * from emp where eid IN (select eid from works where cid=(select cid from … | |
How can I dynamically allocate the size of an arry at runtime When I am doing this am getting an error.. #include<conio.h> #include<stdio.h> void main() { int n; a[n]; clrscr(); printf("Enter no of your array\n"); scanf("%d",&n); printf("Enter your array"); for(int i=0;i<n;i++) { scanf("%d",&a[i]); } for(i=0;i<n;i++) { printf("%d\n",a[i]); } } | |
Whenever I try to run this code in turbo c++ 4.5 I recieve an error "General Protection Exception List.c 60 List(2) 0x24DF:0x0157 processor Fault" whereas when the same Program is run in Turbo c++ 3 Dos version It Compiles and Runs Propely without any error. Please Help. #include <stdio.h> #include … | |
Re: Try This.. import java.io.*; public class frequency_of_char { public static void main(String args[])throws IOException { BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); int ci,i,j,k,l;l=0; String str,str1; char c,ch; System.out.println("Enter your String"); str=in.readLine(); i=str.length(); for(c='A';c<='z';c++) { k=0; for(j=0;j<i;j++) { ch=str.charAt(j); if(ch==c) k++; } if(k>0) System.out.println("The character "+c+" has occured for "+k+" times"); } } … | |
I am a beginner in java does not know much about it. But to practise it I have tried to simulate the popular game Hangman using simple methods.Please Guide me with the code In this program the words are given by the user and then they are converted in to … | |
How can I write a program to find the sum of the series given below:- ((1)/(2))+((3)/(4))+((5)/(6))+((7)/(8))+((9)/(10))......n I have written a code but it is not giving the desired result... #include<stdio.h> #include<conio.h> void main() { int n; float sum=0,i; printf("Enter nthe term"); scanf("%d",&n); for(i=0;i<n;i++) { sum=sum+((i+1)/(i+2)); } printf("sum=%f",sum); getch(); } Please … | |
I want to designe a code at display a perticular data Example a time table of the week For instance if someone view a page on monday so it show display result of the table or data which is set to display on monday or if some one view same … | |
Re: This program runs great Just by making some changes #include <stdio.h> #include <conio.h> int main() { int x,i; x=0; i=0; for(;;) // an infinite loop { printf("Press x to stop this\n"); for(i = 0; i < 5; i++) //5 loops { ++x; printf("\r%d", x); if( kbhit() ) { getch(); //Use … | |
<% @ language="VBScript" %> <% Option Explicit %> <html> <body> <% Dim I,j For I = 1 to 4 For j = 1 to i Response.write i Next Response.write "<br>" Next </body> </html> Output: 1 22 333 4444 Please explain me how this output is formed. One bellow the other … | |
My Program contains 4 arrays and I want to sort the array in such a way that if one array is sorted the other array should follow it Example: unsorted array name code salary date John 52 6500 15 Suzzy 10 1500 20 Mike 20 1451 16 Sorted array(according to … | |
I want to designe a code at display a perticular data Example a time table of the week For instance if someone view a page on monday so it show display result of the table or data which is set to display on monday or if some one view same … | |
As for my assignment I had to write a program to swap 2 digit number Example:- If user input 12 the swaped number Would be 21. Along with ALgorithm, and a short description on this program(As how will you solve this program or what measure you'll take to get desired … | |
**Algorithm** step1: display 3 choices step2: user inputs one choice step3: Choice is store in one variable step4: selected choice is transfered to switch function step5: choice is compare to cases step6: a text document is created stating you choice. **This is layout of the code:** #include<stdio.h> void main() { … | |
How can I transfer the values inserted in <input type="text" name="num1"> to radio button <input type="radio" name="rep_num1" value="">On submit of form. Actuall when user insert the value or text in the textbox the value of the text box should replace or transfer to the value in radio button when user … | |
I had a given a assignment of java script as to form a script that changes the background image of the document after equal interval of time.as i am a beginner to programming I had formed a script that should change background and a loop stated for image name to … |
The End.