Tagged Questions
1
vote
2answers
36 views
C - Trying to find a char[] in a charArray[n][] and record the value of n
I'm trying to loop through fooArray search each entry for foo and increment fooCount in the appropriate entry. As it stands the string: H A P Y \0 is successfully input into both foo and fooArray[2] ...
0
votes
4answers
96 views
How to input a string in a 2d array in C?
If i want to take an input in a 2d array with each string in one row, and the next in the other(i.e. change the row on pressing enter). How can i do that in C. C doesnt seem to have convenient ...
0
votes
1answer
60 views
AS3: How can you get an Array name from string
I am trying to copy a 2D array in a temporary array to a permanent one. The problem is that the array it's trying to copy to is dynamic.
I was looking for a way to get string (the new arrays name) to ...
0
votes
1answer
230 views
Choose random String from two dimensional array?
So what I have is a 2d array with the name of the drink, and the price Test[Name][Price]:
public static final String[][] Test = ...
0
votes
1answer
186 views
C: Passing pointers: incompatible pointer type warning
I'm trying to pass a 2d-array (array of strings) to a function in C, but am running into an "incompatible pointer type" warning.
In function ‘main’:
warning: passing argument 1 of ‘addCodonstoHash’ ...
0
votes
1answer
228 views
Java - 2D String Arrays, Dynamic Table, & Null Pointer Exceptions
I am working on a Chomsky Normal Form(CNF) dynamic programming assignment which consists of
two parts(I,II): (I). having the user enter a grammar and (checking, accepting) if it is in
valid CNF form ...
0
votes
3answers
492 views
Converting ArrayList Strings of to Characters?
So I have an arrayList of Strings imputed by the user.I also have a 2d array of chars : private char[][] puzzle ; I need help changing the Strings to characters so I can enter them into the 2d array ...
0
votes
2answers
628 views
Writing a string and 2D Array to a .txt file - Java
I am trying to output a single string and 2D array into a .txt file and am running into issues and this is the last part of my project. The program should output a single line, comma-delimited, ...
0
votes
2answers
387 views
storing a string(char*) in 2d array
Say I have declared a 2d array like
char* array[30][30];
and what I am putting into it are strings, not all of length 30, like
char* string="test string";
I want to put each char of string into ...
1
vote
1answer
499 views
How to convert a 2d array in String to int?
My program is to input a txt file into a 2d array use to calculate and present some data.
my input file look like:
[Student], Exam1, Exam2, Exam3
may, 100, 100, 100
peter, 99, 60, 80
john, 100, ...
-2
votes
2answers
579 views
2d char array to string
I want to use a 2d char array and have more than one string:
char[,] str = new char[9,1000];
int i=0;
while (i < 9)
{
last[i] = str[i].ToString();
...
0
votes
3answers
711 views
How to use String arrays in 2D (String[][]) and to parse data in each space (specified element spot)?
I want to get a proxy list and parse it into an array of strings, txt is the proxy list, tmp[] is an array that has element in the form "ipaddr:port". ie. (tmp[] = {"i.p.i.p:port", "i.p.i.p:port", ...
0
votes
4answers
822 views
Concatenating 2 2D arrays in java?
I've got 2 2D arrays, one int and one String, and I want them to appear one next to the other since they have the same number of rows. Is there a way to do this? I've thought about concatenating but ...