Tagged Questions
0
votes
0answers
17 views
Unable to add to array from function using arguments
I have a function getPrice($_SESSION['external']);
function getPrice($position)
{
//Here I perform SQL functions using $position['arraykey']
//This works
//Here I want to ...
2
votes
2answers
69 views
Is it possible to get the length of a string including literals
For example "hello\0world" would return a length 12 because there are 12 characters in the string.
-7
votes
0answers
38 views
please help i would like to know whats wrong with this program,please ASAP [closed]
hey so in my code there's an array,in this array third of the numbers in it are divided by 3 without a remainder,the other third are numbers that have the remainder oof when divided by 3 and the last ...
-10
votes
2answers
68 views
Write a java program for a report card [closed]
Can anyone please write a java program for a report card that accepts name of students, marks of 5 subjects. Compute total percentage, highest marks, lowest marks. assume that there are 40 students in ...
1
vote
2answers
35 views
In a function prototype it shows an error
it shows cannot find symbol- class string
I am writing a program for a report card. This function is to accept names. Pls help
public static string accept_name() {
String STR[]=new String[40];
...
-10
votes
2answers
50 views
How to store a returned object from a method in a new object in the main method in JAVA [closed]
It shows array dimension missing.
new obj[] = mark_entry();
where mark_entry() is a method.
1
vote
2answers
30 views
Comparing Array Key values to determin conditional statements the OOP way?
I have been looking at this problem for quite sometime and finally created my answer.
I have three array keys that will output different values. The condition of each key will either be true or NULL ...
0
votes
1answer
32 views
Wrong dataype for in_array
Good morning.
I'm currently trying to build a very basic caching system for one of my scripts. The cache is JSON data and contains only 1 key and it's value, but many individual fields, something ...
-3
votes
1answer
67 views
Using If/Then with Arrays
Hi I'm trying to prepare an if/then statement for my program using arrays. However, I am receiving an error, below is my function definition.
Error: ISO C++ forbids comparison between pointer and ...
0
votes
1answer
29 views
Will not display in list box VB
So, I'm trying to display the statistics for a soccer teams points scored.
At the time this is being executed, the arrays have been already filled and what not.
When this form opens, I'd like it to ...
2
votes
1answer
74 views
Implementing the [B,C]=f(A) syntax (function f acting on an array with two or more output arrays)
I have a question which is an extension of other two questions I have recently posted:
Implementing B=f(A), with B and A arrays and B already defined
and
Implementing the B=f(A) syntax by move ...
0
votes
1answer
39 views
Populating an array with values that fall below the averange and calculating the variance
I am trying to select those values from a one-dimensional range of data that fall below the average.
Would this code be right? I think there is a problem with how I place them into the array ...
0
votes
0answers
10 views
how can I make a generic function for pushing a class object into an array?
this is my first time asking a question on this form so please go easy on me if I say something stupid!
I'm trying to make a tower defense game in actionscript 3 that has enemies and power ups as ...
3
votes
1answer
83 views
How to pass two dimensional array to a function in F#?
I am trying to create a function in F# that takes as input a two dimensional array of integers (9 by 9), and prints its content afterwards. The following code shows what I have done :
let printMatrix ...
0
votes
1answer
21 views
AS3 - Functions in Arrays
I've recently started using AS3, and I've ran into a little problem.
I want to store some functions into an array like so:
testArray:Array = [testfunction(), testfunction2()];
But when I start it ...