test
This commit is contained in:
parent
37776af5db
commit
ab03d5f10c
4045 changed files with 286212 additions and 3 deletions
42
.config/Code/User/History/-6707eb3c/qBwq.cpp
Normal file
42
.config/Code/User/History/-6707eb3c/qBwq.cpp
Normal file
|
@ -0,0 +1,42 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class MatrixManipulator{
|
||||
char **matrix; // Pointer to a 2D character array
|
||||
int numRows; // Number of rows in the array
|
||||
int numColumns; // Number of columns in the array
|
||||
string dictionary[109] = { // Array of strings containing words to be searched for
|
||||
"cat", "dog", "bat", "hat", "run", "sun", "red", "blue", "pen", "cup",
|
||||
"fish", "bird", "rose", "tree", "lake", "moon", "star", "fork", "lamp", "book",
|
||||
"play", "pool", "rose", "silk", "soft", "ship", "tile", "vest", "wish", "zoom",
|
||||
"case", "drop", "face", "gold", "jump", "kick", "lime", "nose", "ring", "tail",
|
||||
"cloud", "crawl", "dream", "fresh", "grain", "happy", "juice", "lucky", "music", "piano",
|
||||
"queen", "quick", "smile", "storm", "toast", "umbra", "video", "wrist", "zebra", "world",
|
||||
"apple", "brave", "chess", "drink", "flame", "grape", "jazz", "lemon", "novel", "pride",
|
||||
"quest", "route", "shoe", "trace", "unity", "vivid", "water", "xerox", "yellow", "zesty",
|
||||
"silver", "orange", "camera", "travel", "window", "floral", "banana", "purple", "turkey",
|
||||
"magnet", "branch", "guitar", "impact", "castle", "pickle", "forest", "oliver", "planet", "summer",
|
||||
"a", "i", "on", "up", "by", "go", "no", "eat", "it", "as"
|
||||
};
|
||||
|
||||
public:
|
||||
|
||||
MatrixManipulator(int numRows, int numColumns) : numRows(numRows), numColumns(numColumns){
|
||||
|
||||
}
|
||||
|
||||
void allocateMemory(){
|
||||
matrix = new char*[numRows];
|
||||
for(int i=0;i<numRows;i++) matrix[i] = new char[numColumns];
|
||||
}
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
int main() {
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue