C++ :: Multidimensional Character Arrays?
Jan 19, 2013
I'm trying to create Minesweeper and with 2D Multidimensional character Arrays, It doesnt appear like in a grid format i want it to.
#include<iostream>
#include<conio.h>
#include<string>
#include<cstdlib>
#include<ctime>
[Code]....
View 1 Replies
Apr 10, 2014
I am trying to use multidimensional arrays. I have made a 9 by 3 array and I am trying to use it in my code. Now I am trying to print the content of a particular subscript on user demand but it is giving me some weird error. Everything seems ok to me. Heres my code
#include <stdio.h>
#include<Windows.h>
int main(void) {
double array1[9][3]={{1000.99, 2000.99, 3000.99}, {950.99, 800.99, 700.99},{850.99, 750.99, 600.99},{725.99, 625.99, 525.99},{650.99, 550.99, 450.99},{655.99,555.99,455.99},{350.99, 250.99,200.99},{325.99,225.99,175.99}, {300.99,150.99,100.99}};
[Code] ......
View 6 Replies
View Related
Aug 6, 2014
I have used strcmp before on one dimensional arrays but not 2 dimensional arrays.The problem is that I have one 2d array that has text with some misspelled words and I have to compare it to another 2d array and if the word from the first array (misspelled word) is not in the 2nd array then I print it to the screen instead of correcting the spelling. Here is what I have so far:
Code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int read_dic(char [], char [][20]);
int read_words(char [], char [][20]);
void typo_check(char *, char *);
}
[code]...
View 5 Replies
View Related
Oct 30, 2013
I'm trying to get a full understanding of multidimensional arrays. When I try to initialize the array I get an error.
Code:
int Pick2(void) {
int pick = 2;
int limit = 0;
[Code].....
The error I get is "variable-sized object maybe not be initialized" with warnings messages pertaining the that Error message.
View 12 Replies
View Related
Sep 8, 2014
Write a program to enter data into a table and display on the screen in tabular form. I want to know where are the errors.
#include<iostream>
using namespace std;
int main() {
int table[3][4];
int r,c,i;
r=c=0;
while(r<=2)
[Code] .....
View 3 Replies
View Related
Apr 14, 2013
Here is my program to look up words. How do I use character pointers instead of using arrays?
Code:
#include <stdio.h>
struct entry
{
[Code].....
View 2 Replies
View Related
Apr 1, 2014
According to [URL] ....
" char myword[] = { 'H', 'e', 'l', 'l', 'o', '