ProgScripting Languages
Hello,
I have a small question about OOP. Let me explain:
I have a Grid object:
Code :
1.import java.util.*;
2.import java.io.*;
3.import java.lang.Math;
4.public class Grid {
5.private static Cell[][] grid;
6.private int sizeOfGrid;
7.public Grid(int size) { // Déclaration d'un tableau de cellules
8.sizeOfGrid = size;
9.grid = new Cell[size][size];
10.}
The grid object is an array of subject Cell:
Code :
- 1054 views
- 1 answers
- 0 votes
Hi all
I want to develop a program in c++ that will take input from the user about the employee record. And will print the record as well. But the issue is this that I want to define the functions outside the class. Whenever I try to define function outside the class, many errors appears. Can any one help me to find out the solution?
I am waiting.
- 2200 views
- 6 answers
- 2 votes
Printing problem on applications that prints directly on LPT1
I have a Visual Basic program that prints directly on LPT1. I use the method “Open LPT1 for output” in my visual basic code to print directly on LPT1. When printing on to a local printer, the program prints, but when printing on Network shared printer, the print doesn’t work. How should I redirect the printer command to the network printer?
- 1531 views
- 2 answers
- 0 votes
I created a plugin that can read the length property of elements. How can I return back to the old line on which the program always points to a certain line where it cannot convert the variable and returns a null variable when I attempt to computer for the length
This is the error that I get
Uncaught TypeError: Cannot read property 'length' of undefined
- 1084 views
- 2 answers
- 0 votes
Why is that when I make a <div> in html the output sometimes changes and separates too far from where I declared it. It is around 50 pixels away from the other div but I didn't add any margin or padding.
How can I fix it to make it stick to the div on top of it.
- 999 views
- 2 answers
- 0 votes
Hello Everybody,
Why is it that I keep getting this error:
Error: missing ')' in parameter list for main
int main ( {
I am very sure that I have closed the declaration. I re-checked everything and the missing “)” is there. But when I compile the program it keeps on returning the same error. I really need some help on this please help me with this.
Thanks.
- 1013 views
- 2 answers
- 0 votes
Good day!
I have a problem with my program in turbo C.
I created a simple division program but it keeps giving this error:
‘Undefined Symbol’
I already declared it, but it still returns the same error.
I don’t know how to fix this anymore; I keep trying to change the variable but it still doesn’t work.
- 2292 views
- 3 answers
- 0 votes
Hello,
I created two fields for me to able to calculate the grades of the students. Why do I get this error in MS Access?
“Syntax error (missing operator) in query expression”
My query is Select [Quiz], [Homework] from Student Where [Average] = ([Quiz] + [Homework]);
Is there any other way to compute the average in another type of query? And do you experts have any suggestions on how to do it?
- 1697 views
- 1 answers
- 1 votes
I am making a hotel reservation form with a dropdown menu for the room type and price of the room per night.
I keep getting this error in Visual Basic when I click the button to compute for the total price:
"Error 13: Type mismatch"
I tried to take the value of a textbox and a drop down menu.
I want to get the total when the user selects the room and multiply it with the number of nights they input in the textbox.
- 1798 views
- 2 answers
- 0 votes
Hello All!
I recently got an error while programming in VB. What does it mean when I get this error?
"Ambiguous name detected"
I already used another name but with different capitalization. I used the variables phonenumber and PhoneNumber. I thought VB was not a case sensitive programming language.
How do I fix this problem?
- 1349 views
- 2 answers
- 0 votes