Complete Beginner Basic Strings Array

Hi. Thanks for helping me in advance! I am used to Java and C# but C++ is completely different. I am trying to do part B of this lab: http://cs.binghamton.edu/~sgreene/cs240-2010f/labs/lab2.html

I am stuck on it completely. First I dont know where to create the new data strings, whether it should be in my header class or tenstrings.cpp? Also I am confused on what the question is asking me? Should I create an array of empty strings? or an array of String1, string2, string3, etc? Please help clear this up as much as you can. Or even post the Part B ONLY solution if you can since im completely lost. Here is my code so far from Part A:


1
2
3
4
5
6
7
8
9
10
11
12
13
tenstrings.h 
#define TENSTRNGS
#include <string>

using namespace std;

class TenStrings
{
public: 
	// Default Constructor
	TenStrings();
};

#endif


1
2
3
4
5
6
7
8
9
10
11
/*-------------------------
tenstrings.cpp
--------------------------*/
#include "TenStrings.h"
#include <string>

//Default Constructor
TenStrings::TenStrings()
{
}
;


1
2
3
4
5
6
7
8
9
10
/*-----------------
main.cpp
--------------------------*/
#include "TenStrings.h"

int main()
{
	TenStrings varTen;
	return 0; 
}


Thanks again. Please understand me as a beginner and try to post as much detail to part B question as possible. I dont quite understand what the question wants me to do.

Last edited on
Please edit your post and put the source inside code tags. It will make your post a lot more legible and folks here will be more likely to look at it.
no one can help me?
Topic archived. No new replies allowed.